1. Packages
  2. Ibm Provider
  3. API Docs
  4. getSccControlLibraries
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.getSccControlLibraries

Explore with Pulumi AI

Retrieve information about a list of scc_control_libraries from a read-only data source. Then, you can reference the fields of the data source in other resources within the same configuration by using interpolation syntax.

NOTE: Security Compliance Center is a regional service. Please specify the IBM Cloud Provider attribute region to target another region. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will also override which region is being targeted for all ibm providers(ex. export IBMCLOUD_SCC_API_ENDPOINT=https://eu-es.compliance.cloud.ibm.com).

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";

const sccControlLibraries = ibm.getSccControlLibraries({
    instanceId: "00000000-1111-2222-3333-444444444444",
});
Copy
import pulumi
import pulumi_ibm as ibm

scc_control_libraries = ibm.get_scc_control_libraries(instance_id="00000000-1111-2222-3333-444444444444")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ibm.GetSccControlLibraries(ctx, &ibm.GetSccControlLibrariesArgs{
			InstanceId: "00000000-1111-2222-3333-444444444444",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;

return await Deployment.RunAsync(() => 
{
    var sccControlLibraries = Ibm.GetSccControlLibraries.Invoke(new()
    {
        InstanceId = "00000000-1111-2222-3333-444444444444",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetSccControlLibrariesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var sccControlLibraries = IbmFunctions.getSccControlLibraries(GetSccControlLibrariesArgs.builder()
            .instanceId("00000000-1111-2222-3333-444444444444")
            .build());

    }
}
Copy
variables:
  sccControlLibraries:
    fn::invoke:
      function: ibm:getSccControlLibraries
      arguments:
        instanceId: 00000000-1111-2222-3333-444444444444
Copy

Using getSccControlLibraries

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getSccControlLibraries(args: GetSccControlLibrariesArgs, opts?: InvokeOptions): Promise<GetSccControlLibrariesResult>
function getSccControlLibrariesOutput(args: GetSccControlLibrariesOutputArgs, opts?: InvokeOptions): Output<GetSccControlLibrariesResult>
Copy
def get_scc_control_libraries(control_library_type: Optional[str] = None,
                              id: Optional[str] = None,
                              instance_id: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetSccControlLibrariesResult
def get_scc_control_libraries_output(control_library_type: Optional[pulumi.Input[str]] = None,
                              id: Optional[pulumi.Input[str]] = None,
                              instance_id: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetSccControlLibrariesResult]
Copy
func GetSccControlLibraries(ctx *Context, args *GetSccControlLibrariesArgs, opts ...InvokeOption) (*GetSccControlLibrariesResult, error)
func GetSccControlLibrariesOutput(ctx *Context, args *GetSccControlLibrariesOutputArgs, opts ...InvokeOption) GetSccControlLibrariesResultOutput
Copy

> Note: This function is named GetSccControlLibraries in the Go SDK.

public static class GetSccControlLibraries 
{
    public static Task<GetSccControlLibrariesResult> InvokeAsync(GetSccControlLibrariesArgs args, InvokeOptions? opts = null)
    public static Output<GetSccControlLibrariesResult> Invoke(GetSccControlLibrariesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetSccControlLibrariesResult> getSccControlLibraries(GetSccControlLibrariesArgs args, InvokeOptions options)
public static Output<GetSccControlLibrariesResult> getSccControlLibraries(GetSccControlLibrariesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: ibm:index/getSccControlLibraries:getSccControlLibraries
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

InstanceId This property is required. string
The ID of the SCC instance in a particular region.
ControlLibraryType string
The type of control library to query.

  • Constraints: Allowable values are: predefined, custom.
Id string
(String) The unique identifier of the scc_control_library.
InstanceId This property is required. string
The ID of the SCC instance in a particular region.
ControlLibraryType string
The type of control library to query.

  • Constraints: Allowable values are: predefined, custom.
Id string
(String) The unique identifier of the scc_control_library.
instanceId This property is required. String
The ID of the SCC instance in a particular region.
controlLibraryType String
The type of control library to query.

  • Constraints: Allowable values are: predefined, custom.
id String
(String) The unique identifier of the scc_control_library.
instanceId This property is required. string
The ID of the SCC instance in a particular region.
controlLibraryType string
The type of control library to query.

  • Constraints: Allowable values are: predefined, custom.
id string
(String) The unique identifier of the scc_control_library.
instance_id This property is required. str
The ID of the SCC instance in a particular region.
control_library_type str
The type of control library to query.

  • Constraints: Allowable values are: predefined, custom.
id str
(String) The unique identifier of the scc_control_library.
instanceId This property is required. String
The ID of the SCC instance in a particular region.
controlLibraryType String
The type of control library to query.

  • Constraints: Allowable values are: predefined, custom.
id String
(String) The unique identifier of the scc_control_library.

getSccControlLibraries Result

The following output properties are available:

ControlLibraries List<GetSccControlLibrariesControlLibrary>
(List) The list of control libraries.
Id string
(String) The unique identifier of the scc_control_library.
InstanceId string
ControlLibraryType string
(String) The control library type.
ControlLibraries []GetSccControlLibrariesControlLibrary
(List) The list of control libraries.
Id string
(String) The unique identifier of the scc_control_library.
InstanceId string
ControlLibraryType string
(String) The control library type.
controlLibraries List<GetSccControlLibrariesControlLibrary>
(List) The list of control libraries.
id String
(String) The unique identifier of the scc_control_library.
instanceId String
controlLibraryType String
(String) The control library type.
controlLibraries GetSccControlLibrariesControlLibrary[]
(List) The list of control libraries.
id string
(String) The unique identifier of the scc_control_library.
instanceId string
controlLibraryType string
(String) The control library type.
control_libraries Sequence[GetSccControlLibrariesControlLibrary]
(List) The list of control libraries.
id str
(String) The unique identifier of the scc_control_library.
instance_id str
control_library_type str
(String) The control library type.
controlLibraries List<Property Map>
(List) The list of control libraries.
id String
(String) The unique identifier of the scc_control_library.
instanceId String
controlLibraryType String
(String) The control library type.

Supporting Types

GetSccControlLibrariesControlLibrary

AccountId This property is required. string
(String) The account ID.
ControlLibraryDescription This property is required. string
(String) The control library description.
ControlLibraryName This property is required. string
(String) The control library name.
ControlLibraryType This property is required. string
The type of control library to query.

  • Constraints: Allowable values are: predefined, custom.
ControlLibraryVersion This property is required. string
(String) The control library version.
ControlsCount This property is required. double
CreatedBy This property is required. string
(String) The user who created the control library.
CreatedOn This property is required. string
(String) The date when the control library was created.
Id This property is required. string
(String) The unique identifier of the scc_control_library.
Latest This property is required. bool
UpdatedBy This property is required. string
(String) The user who updated the control library.
UpdatedOn This property is required. string
(String) The date when the control library was updated.
VersionGroupLabel This property is required. string
(String) The version group label.
AccountId This property is required. string
(String) The account ID.
ControlLibraryDescription This property is required. string
(String) The control library description.
ControlLibraryName This property is required. string
(String) The control library name.
ControlLibraryType This property is required. string
The type of control library to query.

  • Constraints: Allowable values are: predefined, custom.
ControlLibraryVersion This property is required. string
(String) The control library version.
ControlsCount This property is required. float64
CreatedBy This property is required. string
(String) The user who created the control library.
CreatedOn This property is required. string
(String) The date when the control library was created.
Id This property is required. string
(String) The unique identifier of the scc_control_library.
Latest This property is required. bool
UpdatedBy This property is required. string
(String) The user who updated the control library.
UpdatedOn This property is required. string
(String) The date when the control library was updated.
VersionGroupLabel This property is required. string
(String) The version group label.
accountId This property is required. String
(String) The account ID.
controlLibraryDescription This property is required. String
(String) The control library description.
controlLibraryName This property is required. String
(String) The control library name.
controlLibraryType This property is required. String
The type of control library to query.

  • Constraints: Allowable values are: predefined, custom.
controlLibraryVersion This property is required. String
(String) The control library version.
controlsCount This property is required. Double
createdBy This property is required. String
(String) The user who created the control library.
createdOn This property is required. String
(String) The date when the control library was created.
id This property is required. String
(String) The unique identifier of the scc_control_library.
latest This property is required. Boolean
updatedBy This property is required. String
(String) The user who updated the control library.
updatedOn This property is required. String
(String) The date when the control library was updated.
versionGroupLabel This property is required. String
(String) The version group label.
accountId This property is required. string
(String) The account ID.
controlLibraryDescription This property is required. string
(String) The control library description.
controlLibraryName This property is required. string
(String) The control library name.
controlLibraryType This property is required. string
The type of control library to query.

  • Constraints: Allowable values are: predefined, custom.
controlLibraryVersion This property is required. string
(String) The control library version.
controlsCount This property is required. number
createdBy This property is required. string
(String) The user who created the control library.
createdOn This property is required. string
(String) The date when the control library was created.
id This property is required. string
(String) The unique identifier of the scc_control_library.
latest This property is required. boolean
updatedBy This property is required. string
(String) The user who updated the control library.
updatedOn This property is required. string
(String) The date when the control library was updated.
versionGroupLabel This property is required. string
(String) The version group label.
account_id This property is required. str
(String) The account ID.
control_library_description This property is required. str
(String) The control library description.
control_library_name This property is required. str
(String) The control library name.
control_library_type This property is required. str
The type of control library to query.

  • Constraints: Allowable values are: predefined, custom.
control_library_version This property is required. str
(String) The control library version.
controls_count This property is required. float
created_by This property is required. str
(String) The user who created the control library.
created_on This property is required. str
(String) The date when the control library was created.
id This property is required. str
(String) The unique identifier of the scc_control_library.
latest This property is required. bool
updated_by This property is required. str
(String) The user who updated the control library.
updated_on This property is required. str
(String) The date when the control library was updated.
version_group_label This property is required. str
(String) The version group label.
accountId This property is required. String
(String) The account ID.
controlLibraryDescription This property is required. String
(String) The control library description.
controlLibraryName This property is required. String
(String) The control library name.
controlLibraryType This property is required. String
The type of control library to query.

  • Constraints: Allowable values are: predefined, custom.
controlLibraryVersion This property is required. String
(String) The control library version.
controlsCount This property is required. Number
createdBy This property is required. String
(String) The user who created the control library.
createdOn This property is required. String
(String) The date when the control library was created.
id This property is required. String
(String) The unique identifier of the scc_control_library.
latest This property is required. Boolean
updatedBy This property is required. String
(String) The user who updated the control library.
updatedOn This property is required. String
(String) The date when the control library was updated.
versionGroupLabel This property is required. String
(String) The version group label.

Package Details

Repository
ibm ibm-cloud/terraform-provider-ibm
License
Notes
This Pulumi package is based on the ibm Terraform Provider.