ibm.getSccScope
Explore with Pulumi AI
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:
- Instance
Id string - The ID of the SCC instance in a particular region.
- Scope
Id 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 is36
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- Instance
Id string - The ID of the SCC instance in a particular region.
- Scope
Id 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 is36
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- instance
Id String - The ID of the SCC instance in a particular region.
- scope
Id 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 is36
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- instance
Id string - The ID of the SCC instance in a particular region.
- scope
Id 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 is36
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- 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 is36
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- instance
Id String - The ID of the SCC instance in a particular region.
- scope
Id 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 is36
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
getSccScope Result
The following output properties are available:
- Account
Id string - (String) The ID of the account.
- Attachment
Count double - (Integer) The number of
scc_profile_attachment
using the scope. - Created
By string - (String) The user who created the scope.
- Constraints: The maximum length is
255
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-\\.:,_\\s]*$/
.
- Constraints: The maximum length is
- Created
On string - (String) The date when the scope was created.
- Description string
- (String) The details of the scope
- Environment string
- Exclusions
List<Get
Scc Scope Exclusion> - (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 is36
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- Instance
Id string - Name string
- (String) The name of the scope.
- Properties Dictionary<string, string>
- (List) The properties of the scope. Nested schema for properties:
- Scope
Id string - Updated
By string - (String) The user who updated the control library.
- Constraints: The maximum length is
255
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-\\.:,_\\s]*$/
.
- Constraints: The maximum length is
- Updated
On string - (String) The date when the control library was updated.
- Account
Id string - (String) The ID of the account.
- Attachment
Count float64 - (Integer) The number of
scc_profile_attachment
using the scope. - Created
By string - (String) The user who created the scope.
- Constraints: The maximum length is
255
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-\\.:,_\\s]*$/
.
- Constraints: The maximum length is
- Created
On string - (String) The date when the scope was created.
- Description string
- (String) The details of the scope
- Environment string
- Exclusions
[]Get
Scc Scope Exclusion - (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 is36
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- Instance
Id string - Name string
- (String) The name of the scope.
- Properties map[string]string
- (List) The properties of the scope. Nested schema for properties:
- Scope
Id string - Updated
By string - (String) The user who updated the control library.
- Constraints: The maximum length is
255
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-\\.:,_\\s]*$/
.
- Constraints: The maximum length is
- Updated
On string - (String) The date when the control library was updated.
- account
Id String - (String) The ID of the account.
- attachment
Count Double - (Integer) The number of
scc_profile_attachment
using the scope. - created
By String - (String) The user who created the scope.
- Constraints: The maximum length is
255
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-\\.:,_\\s]*$/
.
- Constraints: The maximum length is
- created
On String - (String) The date when the scope was created.
- description String
- (String) The details of the scope
- environment String
- exclusions
List<Get
Scc Scope Exclusion> - (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 is36
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- instance
Id String - name String
- (String) The name of the scope.
- properties Map<String,String>
- (List) The properties of the scope. Nested schema for properties:
- scope
Id String - updated
By String - (String) The user who updated the control library.
- Constraints: The maximum length is
255
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-\\.:,_\\s]*$/
.
- Constraints: The maximum length is
- updated
On String - (String) The date when the control library was updated.
- account
Id string - (String) The ID of the account.
- attachment
Count number - (Integer) The number of
scc_profile_attachment
using the scope. - created
By string - (String) The user who created the scope.
- Constraints: The maximum length is
255
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-\\.:,_\\s]*$/
.
- Constraints: The maximum length is
- created
On string - (String) The date when the scope was created.
- description string
- (String) The details of the scope
- environment string
- exclusions
Get
Scc Scope Exclusion[] - (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 is36
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- instance
Id string - name string
- (String) The name of the scope.
- properties {[key: string]: string}
- (List) The properties of the scope. Nested schema for properties:
- scope
Id string - updated
By string - (String) The user who updated the control library.
- Constraints: The maximum length is
255
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-\\.:,_\\s]*$/
.
- Constraints: The maximum length is
- updated
On 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 is1
character. The value must match regular expression/^[a-zA-Z0-9-\\.:,_\\s]*$/
.
- Constraints: The maximum length is
- created_
on str - (String) The date when the scope was created.
- description str
- (String) The details of the scope
- environment str
- exclusions
Sequence[Get
Scc Scope Exclusion] - (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 is36
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- 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 is1
character. The value must match regular expression/^[a-zA-Z0-9-\\.:,_\\s]*$/
.
- Constraints: The maximum length is
- updated_
on str - (String) The date when the control library was updated.
- account
Id String - (String) The ID of the account.
- attachment
Count Number - (Integer) The number of
scc_profile_attachment
using the scope. - created
By String - (String) The user who created the scope.
- Constraints: The maximum length is
255
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-\\.:,_\\s]*$/
.
- Constraints: The maximum length is
- created
On 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 is36
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- instance
Id String - name String
- (String) The name of the scope.
- properties Map<String>
- (List) The properties of the scope. Nested schema for properties:
- scope
Id String - updated
By String - (String) The user who updated the control library.
- Constraints: The maximum length is
255
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-\\.:,_\\s]*$/
.
- Constraints: The maximum length is
- updated
On String - (String) The date when the control library was updated.
Supporting Types
GetSccScopeExclusion
- scope_
id str - THe ID of the SCC instance scope in a particular region.
- scope_
type str
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.