1. Packages
  2. Ibm Provider
  3. API Docs
  4. getSccControlLibraries
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.getSccControlLibraries

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    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",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    scc_control_libraries = ibm.get_scc_control_libraries(instance_id="00000000-1111-2222-3333-444444444444")
    
    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
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    variables:
      sccControlLibraries:
        fn::invoke:
          function: ibm:getSccControlLibraries
          arguments:
            instanceId: 00000000-1111-2222-3333-444444444444
    

    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>
    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]
    func GetSccControlLibraries(ctx *Context, args *GetSccControlLibrariesArgs, opts ...InvokeOption) (*GetSccControlLibrariesResult, error)
    func GetSccControlLibrariesOutput(ctx *Context, args *GetSccControlLibrariesOutputArgs, opts ...InvokeOption) GetSccControlLibrariesResultOutput

    > 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)
    }
    public static CompletableFuture<GetSccControlLibrariesResult> getSccControlLibraries(GetSccControlLibrariesArgs args, InvokeOptions options)
    public static Output<GetSccControlLibrariesResult> getSccControlLibraries(GetSccControlLibrariesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getSccControlLibraries:getSccControlLibraries
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId 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 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 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 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 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 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 string
    (String) The account ID.
    ControlLibraryDescription string
    (String) The control library description.
    ControlLibraryName string
    (String) The control library name.
    ControlLibraryType string
    The type of control library to query.

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

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

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

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

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

    • Constraints: Allowable values are: predefined, custom.
    controlLibraryVersion String
    (String) The control library version.
    controlsCount Number
    createdBy String
    (String) The user who created the control library.
    createdOn String
    (String) The date when the control library was created.
    id String
    (String) The unique identifier of the scc_control_library.
    latest Boolean
    updatedBy String
    (String) The user who updated the control library.
    updatedOn String
    (String) The date when the control library was updated.
    versionGroupLabel 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.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud