1. Packages
  2. Ibm Provider
  3. API Docs
  4. SccScope
ibm 1.87.0-beta1 published on Monday, Dec 22, 2025 by ibm-cloud
ibm logo
ibm 1.87.0-beta1 published on Monday, Dec 22, 2025 by ibm-cloud

    Create SccScope Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SccScope(name: string, args: SccScopeArgs, opts?: CustomResourceOptions);
    @overload
    def SccScope(resource_name: str,
                 args: SccScopeArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def SccScope(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 environment: Optional[str] = None,
                 instance_id: Optional[str] = None,
                 properties: Optional[Mapping[str, str]] = None,
                 description: Optional[str] = None,
                 exclusions: Optional[Sequence[SccScopeExclusionArgs]] = None,
                 name: Optional[str] = None,
                 scc_scope_id: Optional[str] = None)
    func NewSccScope(ctx *Context, name string, args SccScopeArgs, opts ...ResourceOption) (*SccScope, error)
    public SccScope(string name, SccScopeArgs args, CustomResourceOptions? opts = null)
    public SccScope(String name, SccScopeArgs args)
    public SccScope(String name, SccScopeArgs args, CustomResourceOptions options)
    
    type: ibm:SccScope
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args SccScopeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args SccScopeArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args SccScopeArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SccScopeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SccScopeArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var sccScopeResource = new Ibm.SccScope("sccScopeResource", new()
    {
        Environment = "string",
        InstanceId = "string",
        Properties = 
        {
            { "string", "string" },
        },
        Description = "string",
        Exclusions = new[]
        {
            new Ibm.Inputs.SccScopeExclusionArgs
            {
                ScopeId = "string",
                ScopeType = "string",
            },
        },
        Name = "string",
        SccScopeId = "string",
    });
    
    example, err := ibm.NewSccScope(ctx, "sccScopeResource", &ibm.SccScopeArgs{
    	Environment: pulumi.String("string"),
    	InstanceId:  pulumi.String("string"),
    	Properties: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Description: pulumi.String("string"),
    	Exclusions: ibm.SccScopeExclusionArray{
    		&ibm.SccScopeExclusionArgs{
    			ScopeId:   pulumi.String("string"),
    			ScopeType: pulumi.String("string"),
    		},
    	},
    	Name:       pulumi.String("string"),
    	SccScopeId: pulumi.String("string"),
    })
    
    var sccScopeResource = new SccScope("sccScopeResource", SccScopeArgs.builder()
        .environment("string")
        .instanceId("string")
        .properties(Map.of("string", "string"))
        .description("string")
        .exclusions(SccScopeExclusionArgs.builder()
            .scopeId("string")
            .scopeType("string")
            .build())
        .name("string")
        .sccScopeId("string")
        .build());
    
    scc_scope_resource = ibm.SccScope("sccScopeResource",
        environment="string",
        instance_id="string",
        properties={
            "string": "string",
        },
        description="string",
        exclusions=[{
            "scope_id": "string",
            "scope_type": "string",
        }],
        name="string",
        scc_scope_id="string")
    
    const sccScopeResource = new ibm.SccScope("sccScopeResource", {
        environment: "string",
        instanceId: "string",
        properties: {
            string: "string",
        },
        description: "string",
        exclusions: [{
            scopeId: "string",
            scopeType: "string",
        }],
        name: "string",
        sccScopeId: "string",
    });
    
    type: ibm:SccScope
    properties:
        description: string
        environment: string
        exclusions:
            - scopeId: string
              scopeType: string
        instanceId: string
        name: string
        properties:
            string: string
        sccScopeId: string
    

    SccScope Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The SccScope resource accepts the following input properties:

    Environment string
    The scope environment. This value details what cloud provider the scope targets.
    InstanceId string
    The ID of the Security and Compliance Center instance.
    Properties Dictionary<string, string>
    The properties to define the depth of the scope.
    Description string
    The scope description.
    Exclusions List<SccScopeExclusion>
    A list of scopes/targets to exclude from a scope.
    Name string
    The scope name.
    SccScopeId string
    Environment string
    The scope environment. This value details what cloud provider the scope targets.
    InstanceId string
    The ID of the Security and Compliance Center instance.
    Properties map[string]string
    The properties to define the depth of the scope.
    Description string
    The scope description.
    Exclusions []SccScopeExclusionArgs
    A list of scopes/targets to exclude from a scope.
    Name string
    The scope name.
    SccScopeId string
    environment String
    The scope environment. This value details what cloud provider the scope targets.
    instanceId String
    The ID of the Security and Compliance Center instance.
    properties Map<String,String>
    The properties to define the depth of the scope.
    description String
    The scope description.
    exclusions List<SccScopeExclusion>
    A list of scopes/targets to exclude from a scope.
    name String
    The scope name.
    sccScopeId String
    environment string
    The scope environment. This value details what cloud provider the scope targets.
    instanceId string
    The ID of the Security and Compliance Center instance.
    properties {[key: string]: string}
    The properties to define the depth of the scope.
    description string
    The scope description.
    exclusions SccScopeExclusion[]
    A list of scopes/targets to exclude from a scope.
    name string
    The scope name.
    sccScopeId string
    environment str
    The scope environment. This value details what cloud provider the scope targets.
    instance_id str
    The ID of the Security and Compliance Center instance.
    properties Mapping[str, str]
    The properties to define the depth of the scope.
    description str
    The scope description.
    exclusions Sequence[SccScopeExclusionArgs]
    A list of scopes/targets to exclude from a scope.
    name str
    The scope name.
    scc_scope_id str
    environment String
    The scope environment. This value details what cloud provider the scope targets.
    instanceId String
    The ID of the Security and Compliance Center instance.
    properties Map<String>
    The properties to define the depth of the scope.
    description String
    The scope description.
    exclusions List<Property Map>
    A list of scopes/targets to exclude from a scope.
    name String
    The scope name.
    sccScopeId String

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SccScope resource produces the following output properties:

    AccountId string
    The ID of the account associated with the scope.
    AttachmentCount double
    The number of attachments tied to the scope.
    CreatedBy string
    The identifier of the account or service ID who created the scope.
    CreatedOn string
    The date when the scope was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    ScopeId string
    The ID of the scope.
    UpdatedBy string
    The ID of the user or service ID who updated the scope.
    UpdatedOn string
    The date when the scope was updated.
    AccountId string
    The ID of the account associated with the scope.
    AttachmentCount float64
    The number of attachments tied to the scope.
    CreatedBy string
    The identifier of the account or service ID who created the scope.
    CreatedOn string
    The date when the scope was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    ScopeId string
    The ID of the scope.
    UpdatedBy string
    The ID of the user or service ID who updated the scope.
    UpdatedOn string
    The date when the scope was updated.
    accountId String
    The ID of the account associated with the scope.
    attachmentCount Double
    The number of attachments tied to the scope.
    createdBy String
    The identifier of the account or service ID who created the scope.
    createdOn String
    The date when the scope was created.
    id String
    The provider-assigned unique ID for this managed resource.
    scopeId String
    The ID of the scope.
    updatedBy String
    The ID of the user or service ID who updated the scope.
    updatedOn String
    The date when the scope was updated.
    accountId string
    The ID of the account associated with the scope.
    attachmentCount number
    The number of attachments tied to the scope.
    createdBy string
    The identifier of the account or service ID who created the scope.
    createdOn string
    The date when the scope was created.
    id string
    The provider-assigned unique ID for this managed resource.
    scopeId string
    The ID of the scope.
    updatedBy string
    The ID of the user or service ID who updated the scope.
    updatedOn string
    The date when the scope was updated.
    account_id str
    The ID of the account associated with the scope.
    attachment_count float
    The number of attachments tied to the scope.
    created_by str
    The identifier of the account or service ID who created the scope.
    created_on str
    The date when the scope was created.
    id str
    The provider-assigned unique ID for this managed resource.
    scope_id str
    The ID of the scope.
    updated_by str
    The ID of the user or service ID who updated the scope.
    updated_on str
    The date when the scope was updated.
    accountId String
    The ID of the account associated with the scope.
    attachmentCount Number
    The number of attachments tied to the scope.
    createdBy String
    The identifier of the account or service ID who created the scope.
    createdOn String
    The date when the scope was created.
    id String
    The provider-assigned unique ID for this managed resource.
    scopeId String
    The ID of the scope.
    updatedBy String
    The ID of the user or service ID who updated the scope.
    updatedOn String
    The date when the scope was updated.

    Look up Existing SccScope Resource

    Get an existing SccScope resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: SccScopeState, opts?: CustomResourceOptions): SccScope
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            attachment_count: Optional[float] = None,
            created_by: Optional[str] = None,
            created_on: Optional[str] = None,
            description: Optional[str] = None,
            environment: Optional[str] = None,
            exclusions: Optional[Sequence[SccScopeExclusionArgs]] = None,
            instance_id: Optional[str] = None,
            name: Optional[str] = None,
            properties: Optional[Mapping[str, str]] = None,
            scc_scope_id: Optional[str] = None,
            scope_id: Optional[str] = None,
            updated_by: Optional[str] = None,
            updated_on: Optional[str] = None) -> SccScope
    func GetSccScope(ctx *Context, name string, id IDInput, state *SccScopeState, opts ...ResourceOption) (*SccScope, error)
    public static SccScope Get(string name, Input<string> id, SccScopeState? state, CustomResourceOptions? opts = null)
    public static SccScope get(String name, Output<String> id, SccScopeState state, CustomResourceOptions options)
    resources:  _:    type: ibm:SccScope    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AccountId string
    The ID of the account associated with the scope.
    AttachmentCount double
    The number of attachments tied to the scope.
    CreatedBy string
    The identifier of the account or service ID who created the scope.
    CreatedOn string
    The date when the scope was created.
    Description string
    The scope description.
    Environment string
    The scope environment. This value details what cloud provider the scope targets.
    Exclusions List<SccScopeExclusion>
    A list of scopes/targets to exclude from a scope.
    InstanceId string
    The ID of the Security and Compliance Center instance.
    Name string
    The scope name.
    Properties Dictionary<string, string>
    The properties to define the depth of the scope.
    SccScopeId string
    ScopeId string
    The ID of the scope.
    UpdatedBy string
    The ID of the user or service ID who updated the scope.
    UpdatedOn string
    The date when the scope was updated.
    AccountId string
    The ID of the account associated with the scope.
    AttachmentCount float64
    The number of attachments tied to the scope.
    CreatedBy string
    The identifier of the account or service ID who created the scope.
    CreatedOn string
    The date when the scope was created.
    Description string
    The scope description.
    Environment string
    The scope environment. This value details what cloud provider the scope targets.
    Exclusions []SccScopeExclusionArgs
    A list of scopes/targets to exclude from a scope.
    InstanceId string
    The ID of the Security and Compliance Center instance.
    Name string
    The scope name.
    Properties map[string]string
    The properties to define the depth of the scope.
    SccScopeId string
    ScopeId string
    The ID of the scope.
    UpdatedBy string
    The ID of the user or service ID who updated the scope.
    UpdatedOn string
    The date when the scope was updated.
    accountId String
    The ID of the account associated with the scope.
    attachmentCount Double
    The number of attachments tied to the scope.
    createdBy String
    The identifier of the account or service ID who created the scope.
    createdOn String
    The date when the scope was created.
    description String
    The scope description.
    environment String
    The scope environment. This value details what cloud provider the scope targets.
    exclusions List<SccScopeExclusion>
    A list of scopes/targets to exclude from a scope.
    instanceId String
    The ID of the Security and Compliance Center instance.
    name String
    The scope name.
    properties Map<String,String>
    The properties to define the depth of the scope.
    sccScopeId String
    scopeId String
    The ID of the scope.
    updatedBy String
    The ID of the user or service ID who updated the scope.
    updatedOn String
    The date when the scope was updated.
    accountId string
    The ID of the account associated with the scope.
    attachmentCount number
    The number of attachments tied to the scope.
    createdBy string
    The identifier of the account or service ID who created the scope.
    createdOn string
    The date when the scope was created.
    description string
    The scope description.
    environment string
    The scope environment. This value details what cloud provider the scope targets.
    exclusions SccScopeExclusion[]
    A list of scopes/targets to exclude from a scope.
    instanceId string
    The ID of the Security and Compliance Center instance.
    name string
    The scope name.
    properties {[key: string]: string}
    The properties to define the depth of the scope.
    sccScopeId string
    scopeId string
    The ID of the scope.
    updatedBy string
    The ID of the user or service ID who updated the scope.
    updatedOn string
    The date when the scope was updated.
    account_id str
    The ID of the account associated with the scope.
    attachment_count float
    The number of attachments tied to the scope.
    created_by str
    The identifier of the account or service ID who created the scope.
    created_on str
    The date when the scope was created.
    description str
    The scope description.
    environment str
    The scope environment. This value details what cloud provider the scope targets.
    exclusions Sequence[SccScopeExclusionArgs]
    A list of scopes/targets to exclude from a scope.
    instance_id str
    The ID of the Security and Compliance Center instance.
    name str
    The scope name.
    properties Mapping[str, str]
    The properties to define the depth of the scope.
    scc_scope_id str
    scope_id str
    The ID of the scope.
    updated_by str
    The ID of the user or service ID who updated the scope.
    updated_on str
    The date when the scope was updated.
    accountId String
    The ID of the account associated with the scope.
    attachmentCount Number
    The number of attachments tied to the scope.
    createdBy String
    The identifier of the account or service ID who created the scope.
    createdOn String
    The date when the scope was created.
    description String
    The scope description.
    environment String
    The scope environment. This value details what cloud provider the scope targets.
    exclusions List<Property Map>
    A list of scopes/targets to exclude from a scope.
    instanceId String
    The ID of the Security and Compliance Center instance.
    name String
    The scope name.
    properties Map<String>
    The properties to define the depth of the scope.
    sccScopeId String
    scopeId String
    The ID of the scope.
    updatedBy String
    The ID of the user or service ID who updated the scope.
    updatedOn String
    The date when the scope was updated.

    Supporting Types

    SccScopeExclusion, SccScopeExclusionArgs

    ScopeId string
    The ID of the target.
    ScopeType string
    A target to exclude from the ibm_scc_scope.
    ScopeId string
    The ID of the target.
    ScopeType string
    A target to exclude from the ibm_scc_scope.
    scopeId String
    The ID of the target.
    scopeType String
    A target to exclude from the ibm_scc_scope.
    scopeId string
    The ID of the target.
    scopeType string
    A target to exclude from the ibm_scc_scope.
    scope_id str
    The ID of the target.
    scope_type str
    A target to exclude from the ibm_scc_scope.
    scopeId String
    The ID of the target.
    scopeType String
    A target to exclude from the ibm_scc_scope.

    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.87.0-beta1 published on Monday, Dec 22, 2025 by ibm-cloud
      Meet Neo: Your AI Platform Teammate