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

ibm.getSccScope

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 sccScope = ibm.getSccScope({
        instanceId: "00000000-1111-2222-3333-444444444444",
        scopeId: "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    scc_scope = ibm.get_scc_scope(instance_id="00000000-1111-2222-3333-444444444444",
        scope_id="aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee")
    
    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.LookupSccScope(ctx, &ibm.LookupSccScopeArgs{
    			InstanceId: "00000000-1111-2222-3333-444444444444",
    			ScopeId:    "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
    		}, 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 sccScope = Ibm.GetSccScope.Invoke(new()
        {
            InstanceId = "00000000-1111-2222-3333-444444444444",
            ScopeId = "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
        });
    
    });
    
    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.GetSccScopeArgs;
    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 sccScope = IbmFunctions.getSccScope(GetSccScopeArgs.builder()
                .instanceId("00000000-1111-2222-3333-444444444444")
                .scopeId("aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee")
                .build());
    
        }
    }
    
    variables:
      sccScope:
        fn::invoke:
          function: ibm:getSccScope
          arguments:
            instanceId: 00000000-1111-2222-3333-444444444444
            scopeId: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
    

    Using getSccScope

    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 getSccScope(args: GetSccScopeArgs, opts?: InvokeOptions): Promise<GetSccScopeResult>
    function getSccScopeOutput(args: GetSccScopeOutputArgs, opts?: InvokeOptions): Output<GetSccScopeResult>
    def get_scc_scope(id: Optional[str] = None,
                      instance_id: Optional[str] = None,
                      scope_id: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetSccScopeResult
    def get_scc_scope_output(id: Optional[pulumi.Input[str]] = None,
                      instance_id: Optional[pulumi.Input[str]] = None,
                      scope_id: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetSccScopeResult]
    func LookupSccScope(ctx *Context, args *LookupSccScopeArgs, opts ...InvokeOption) (*LookupSccScopeResult, error)
    func LookupSccScopeOutput(ctx *Context, args *LookupSccScopeOutputArgs, opts ...InvokeOption) LookupSccScopeResultOutput

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

    public static class GetSccScope 
    {
        public static Task<GetSccScopeResult> InvokeAsync(GetSccScopeArgs args, InvokeOptions? opts = null)
        public static Output<GetSccScopeResult> Invoke(GetSccScopeInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSccScopeResult> getSccScope(GetSccScopeArgs args, InvokeOptions options)
    public static Output<GetSccScopeResult> getSccScope(GetSccScopeArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getSccScope:getSccScope
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    The ID of the SCC instance in a particular region.
    ScopeId string
    THe ID of the SCC instance scope in a particular region.
    Id string
    (String) The scope ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    InstanceId string
    The ID of the SCC instance in a particular region.
    ScopeId string
    THe ID of the SCC instance scope in a particular region.
    Id string
    (String) The scope ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    instanceId String
    The ID of the SCC instance in a particular region.
    scopeId String
    THe ID of the SCC instance scope in a particular region.
    id String
    (String) The scope ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    instanceId string
    The ID of the SCC instance in a particular region.
    scopeId string
    THe ID of the SCC instance scope in a particular region.
    id string
    (String) The scope ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    instance_id str
    The ID of the SCC instance in a particular region.
    scope_id str
    THe ID of the SCC instance scope in a particular region.
    id str
    (String) The scope ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    instanceId String
    The ID of the SCC instance in a particular region.
    scopeId String
    THe ID of the SCC instance scope in a particular region.
    id String
    (String) The scope ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.

    getSccScope Result

    The following output properties are available:

    AccountId string
    (String) The ID of the account.
    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
    Exclusions List<GetSccScopeExclusion>
    (List) A list of excluded targets from the scope. Nested schema for exclusions:
    Id string
    (String) The scope ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    InstanceId string
    Name string
    (String) The name of the scope.
    Properties Dictionary<string, string>
    (List) The properties of the scope. Nested schema for properties:
    ScopeId string
    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 account.
    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
    Exclusions []GetSccScopeExclusion
    (List) A list of excluded targets from the scope. Nested schema for exclusions:
    Id string
    (String) The scope ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    InstanceId string
    Name string
    (String) The name of the scope.
    Properties map[string]string
    (List) The properties of the scope. Nested schema for properties:
    ScopeId string
    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 account.
    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
    exclusions List<GetSccScopeExclusion>
    (List) A list of excluded targets from the scope. Nested schema for exclusions:
    id String
    (String) The scope ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    instanceId String
    name String
    (String) The name of the scope.
    properties Map<String,String>
    (List) The properties of the scope. Nested schema for properties:
    scopeId String
    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 account.
    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
    exclusions GetSccScopeExclusion[]
    (List) A list of excluded targets from the scope. Nested schema for exclusions:
    id string
    (String) The scope ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    instanceId string
    name string
    (String) The name of the scope.
    properties {[key: string]: string}
    (List) The properties of the scope. Nested schema for properties:
    scopeId string
    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 account.
    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
    exclusions Sequence[GetSccScopeExclusion]
    (List) A list of excluded targets from the scope. Nested schema for exclusions:
    id str
    (String) The scope ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    instance_id str
    name str
    (String) The name of the scope.
    properties Mapping[str, str]
    (List) The properties of the scope. Nested schema for properties:
    scope_id str
    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 account.
    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
    exclusions List<Property Map>
    (List) A list of excluded targets from the scope. Nested schema for exclusions:
    id String
    (String) The scope ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    instanceId String
    name String
    (String) The name of the scope.
    properties Map<String>
    (List) The properties of the scope. Nested schema for properties:
    scopeId String
    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.

    Supporting Types

    GetSccScopeExclusion

    ScopeId string
    THe ID of the SCC instance scope in a particular region.
    ScopeType string
    ScopeId string
    THe ID of the SCC instance scope in a particular region.
    ScopeType string
    scopeId String
    THe ID of the SCC instance scope in a particular region.
    scopeType String
    scopeId string
    THe ID of the SCC instance scope in a particular region.
    scopeType string
    scope_id str
    THe ID of the SCC instance scope in a particular region.
    scope_type str
    scopeId String
    THe ID of the SCC instance scope in a particular region.
    scopeType String

    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