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

ibm.getSccScopeCollection

Explore with Pulumi AI

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

    Provides a read-only data source to retrieve information about scc_scope. You can then 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 sccScopeCollection = ibm.getSccScopeCollection({
        instanceId: "00000000-1111-2222-3333-444444444444",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    scc_scope_collection = ibm.get_scc_scope_collection(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.GetSccScopeCollection(ctx, &ibm.GetSccScopeCollectionArgs{
    			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 sccScopeCollection = Ibm.GetSccScopeCollection.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.GetSccScopeCollectionArgs;
    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 sccScopeCollection = IbmFunctions.getSccScopeCollection(GetSccScopeCollectionArgs.builder()
                .instanceId("00000000-1111-2222-3333-444444444444")
                .build());
    
        }
    }
    
    variables:
      sccScopeCollection:
        fn::invoke:
          function: ibm:getSccScopeCollection
          arguments:
            instanceId: 00000000-1111-2222-3333-444444444444
    

    Using getSccScopeCollection

    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 getSccScopeCollection(args: GetSccScopeCollectionArgs, opts?: InvokeOptions): Promise<GetSccScopeCollectionResult>
    function getSccScopeCollectionOutput(args: GetSccScopeCollectionOutputArgs, opts?: InvokeOptions): Output<GetSccScopeCollectionResult>
    def get_scc_scope_collection(id: Optional[str] = None,
                                 instance_id: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetSccScopeCollectionResult
    def get_scc_scope_collection_output(id: Optional[pulumi.Input[str]] = None,
                                 instance_id: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetSccScopeCollectionResult]
    func GetSccScopeCollection(ctx *Context, args *GetSccScopeCollectionArgs, opts ...InvokeOption) (*GetSccScopeCollectionResult, error)
    func GetSccScopeCollectionOutput(ctx *Context, args *GetSccScopeCollectionOutputArgs, opts ...InvokeOption) GetSccScopeCollectionResultOutput

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

    public static class GetSccScopeCollection 
    {
        public static Task<GetSccScopeCollectionResult> InvokeAsync(GetSccScopeCollectionArgs args, InvokeOptions? opts = null)
        public static Output<GetSccScopeCollectionResult> Invoke(GetSccScopeCollectionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSccScopeCollectionResult> getSccScopeCollection(GetSccScopeCollectionArgs args, InvokeOptions options)
    public static Output<GetSccScopeCollectionResult> getSccScopeCollection(GetSccScopeCollectionArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getSccScopeCollection:getSccScopeCollection
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    The ID of the SCC instance in a particular region.
    Id string
    (String) The scope ID.
    InstanceId string
    The ID of the SCC instance in a particular region.
    Id string
    (String) The scope ID.
    instanceId String
    The ID of the SCC instance in a particular region.
    id String
    (String) The scope ID.
    instanceId string
    The ID of the SCC instance in a particular region.
    id string
    (String) The scope ID.
    instance_id str
    The ID of the SCC instance in a particular region.
    id str
    (String) The scope ID.
    instanceId String
    The ID of the SCC instance in a particular region.
    id String
    (String) The scope ID.

    getSccScopeCollection Result

    The following output properties are available:

    Id string
    (String) The scope ID.
    InstanceId string
    (String) The ID of the SCC instance tied to the scope.
    Scopes List<GetSccScopeCollectionScope>
    (List) A list of scope that accessible to the user. Nested schema for scopes:
    Id string
    (String) The scope ID.
    InstanceId string
    (String) The ID of the SCC instance tied to the scope.
    Scopes []GetSccScopeCollectionScope
    (List) A list of scope that accessible to the user. Nested schema for scopes:
    id String
    (String) The scope ID.
    instanceId String
    (String) The ID of the SCC instance tied to the scope.
    scopes List<GetSccScopeCollectionScope>
    (List) A list of scope that accessible to the user. Nested schema for scopes:
    id string
    (String) The scope ID.
    instanceId string
    (String) The ID of the SCC instance tied to the scope.
    scopes GetSccScopeCollectionScope[]
    (List) A list of scope that accessible to the user. Nested schema for scopes:
    id str
    (String) The scope ID.
    instance_id str
    (String) The ID of the SCC instance tied to the scope.
    scopes Sequence[GetSccScopeCollectionScope]
    (List) A list of scope that accessible to the user. Nested schema for scopes:
    id String
    (String) The scope ID.
    instanceId String
    (String) The ID of the SCC instance tied to the scope.
    scopes List<Property Map>
    (List) A list of scope that accessible to the user. Nested schema for scopes:

    Supporting Types

    GetSccScopeCollectionScope

    AccountId string
    (String) The ID of the IBM account associated with the scope.
    AttachmentCount double
    (Integer) The number of scc_profile_attachment using the scope.
    CreatedBy string
    (String) The user who created the scope.

    • Constraints: The maximum length is 255 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-\\.:,_\\s]*$/.
    CreatedOn string
    (String) The date when the scope was created.
    Description string
    (String) The details of the scope.
    Environment string
    Id string
    (String) The scope ID.
    InstanceId string
    The ID of the SCC instance in a particular region.
    Name string
    (String) The name of property.
    Properties List<GetSccScopeCollectionScopeProperty>
    (List) The properties of the scope. Nested schema for properties:
    UpdatedBy string
    (String) The user who updated the control library.

    • Constraints: The maximum length is 255 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-\\.:,_\\s]*$/.
    UpdatedOn string
    (String) The date when the control library was updated.
    AccountId string
    (String) The ID of the IBM account associated with the scope.
    AttachmentCount float64
    (Integer) The number of scc_profile_attachment using the scope.
    CreatedBy string
    (String) The user who created the scope.

    • Constraints: The maximum length is 255 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-\\.:,_\\s]*$/.
    CreatedOn string
    (String) The date when the scope was created.
    Description string
    (String) The details of the scope.
    Environment string
    Id string
    (String) The scope ID.
    InstanceId string
    The ID of the SCC instance in a particular region.
    Name string
    (String) The name of property.
    Properties []GetSccScopeCollectionScopeProperty
    (List) The properties of the scope. Nested schema for properties:
    UpdatedBy string
    (String) The user who updated the control library.

    • Constraints: The maximum length is 255 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-\\.:,_\\s]*$/.
    UpdatedOn string
    (String) The date when the control library was updated.
    accountId String
    (String) The ID of the IBM account associated with the scope.
    attachmentCount Double
    (Integer) The number of scc_profile_attachment using the scope.
    createdBy String
    (String) The user who created the scope.

    • Constraints: The maximum length is 255 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-\\.:,_\\s]*$/.
    createdOn String
    (String) The date when the scope was created.
    description String
    (String) The details of the scope.
    environment String
    id String
    (String) The scope ID.
    instanceId String
    The ID of the SCC instance in a particular region.
    name String
    (String) The name of property.
    properties List<GetSccScopeCollectionScopeProperty>
    (List) The properties of the scope. Nested schema for properties:
    updatedBy String
    (String) The user who updated the control library.

    • Constraints: The maximum length is 255 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-\\.:,_\\s]*$/.
    updatedOn String
    (String) The date when the control library was updated.
    accountId string
    (String) The ID of the IBM account associated with the scope.
    attachmentCount number
    (Integer) The number of scc_profile_attachment using the scope.
    createdBy string
    (String) The user who created the scope.

    • Constraints: The maximum length is 255 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-\\.:,_\\s]*$/.
    createdOn string
    (String) The date when the scope was created.
    description string
    (String) The details of the scope.
    environment string
    id string
    (String) The scope ID.
    instanceId string
    The ID of the SCC instance in a particular region.
    name string
    (String) The name of property.
    properties GetSccScopeCollectionScopeProperty[]
    (List) The properties of the scope. Nested schema for properties:
    updatedBy string
    (String) The user who updated the control library.

    • Constraints: The maximum length is 255 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-\\.:,_\\s]*$/.
    updatedOn string
    (String) The date when the control library was updated.
    account_id str
    (String) The ID of the IBM account associated with the scope.
    attachment_count float
    (Integer) The number of scc_profile_attachment using the scope.
    created_by str
    (String) The user who created the scope.

    • Constraints: The maximum length is 255 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-\\.:,_\\s]*$/.
    created_on str
    (String) The date when the scope was created.
    description str
    (String) The details of the scope.
    environment str
    id str
    (String) The scope ID.
    instance_id str
    The ID of the SCC instance in a particular region.
    name str
    (String) The name of property.
    properties Sequence[GetSccScopeCollectionScopeProperty]
    (List) The properties of the scope. Nested schema for properties:
    updated_by str
    (String) The user who updated the control library.

    • Constraints: The maximum length is 255 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-\\.:,_\\s]*$/.
    updated_on str
    (String) The date when the control library was updated.
    accountId String
    (String) The ID of the IBM account associated with the scope.
    attachmentCount Number
    (Integer) The number of scc_profile_attachment using the scope.
    createdBy String
    (String) The user who created the scope.

    • Constraints: The maximum length is 255 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-\\.:,_\\s]*$/.
    createdOn String
    (String) The date when the scope was created.
    description String
    (String) The details of the scope.
    environment String
    id String
    (String) The scope ID.
    instanceId String
    The ID of the SCC instance in a particular region.
    name String
    (String) The name of property.
    properties List<Property Map>
    (List) The properties of the scope. Nested schema for properties:
    updatedBy String
    (String) The user who updated the control library.

    • Constraints: The maximum length is 255 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-\\.:,_\\s]*$/.
    updatedOn String
    (String) The date when the control library was updated.

    GetSccScopeCollectionScopeProperty

    Name string
    (String) The name of property.
    Value string
    (String) The value of the property in string form.
    Name string
    (String) The name of property.
    Value string
    (String) The value of the property in string form.
    name String
    (String) The name of property.
    value String
    (String) The value of the property in string form.
    name string
    (String) The name of property.
    value string
    (String) The value of the property in string form.
    name str
    (String) The name of property.
    value str
    (String) The value of the property in string form.
    name String
    (String) The name of property.
    value String
    (String) The value of the property in string form.

    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