ibm.getSccScopeCollection
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 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:
- Instance
Id string - The ID of the SCC instance in a particular region.
- Id string
- (String) The scope ID.
- Instance
Id string - The ID of the SCC instance in a particular region.
- Id string
- (String) The scope ID.
- instance
Id String - The ID of the SCC instance in a particular region.
- id String
- (String) The scope ID.
- instance
Id 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.
- instance
Id 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.
- Instance
Id string - (String) The ID of the SCC instance tied to the scope.
- Scopes
List<Get
Scc Scope Collection Scope> - (List) A list of scope that accessible to the user. Nested schema for scopes:
- Id string
- (String) The scope ID.
- Instance
Id string - (String) The ID of the SCC instance tied to the scope.
- Scopes
[]Get
Scc Scope Collection Scope - (List) A list of scope that accessible to the user. Nested schema for scopes:
- id String
- (String) The scope ID.
- instance
Id String - (String) The ID of the SCC instance tied to the scope.
- scopes
List<Get
Scc Scope Collection Scope> - (List) A list of scope that accessible to the user. Nested schema for scopes:
- id string
- (String) The scope ID.
- instance
Id string - (String) The ID of the SCC instance tied to the scope.
- scopes
Get
Scc Scope Collection Scope[] - (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[Get
Scc Scope Collection Scope] - (List) A list of scope that accessible to the user. Nested schema for scopes:
- id String
- (String) The scope ID.
- instance
Id 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
- Account
Id string - (String) The ID of the IBM account associated with the scope.
- 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
- Id string
- (String) The scope ID.
- Instance
Id string - The ID of the SCC instance in a particular region.
- Name string
- (String) The name of property.
- Properties
List<Get
Scc Scope Collection Scope Property> - (List) The properties of the scope. Nested schema for properties:
- 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 IBM account associated with the scope.
- 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
- Id string
- (String) The scope ID.
- Instance
Id string - The ID of the SCC instance in a particular region.
- Name string
- (String) The name of property.
- Properties
[]Get
Scc Scope Collection Scope Property - (List) The properties of the scope. Nested schema for properties:
- 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 IBM account associated with the scope.
- 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
- id String
- (String) The scope ID.
- instance
Id String - The ID of the SCC instance in a particular region.
- name String
- (String) The name of property.
- properties
List<Get
Scc Scope Collection Scope Property> - (List) The properties of the scope. Nested schema for properties:
- 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 IBM account associated with the scope.
- 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
- id string
- (String) The scope ID.
- instance
Id string - The ID of the SCC instance in a particular region.
- name string
- (String) The name of property.
- properties
Get
Scc Scope Collection Scope Property[] - (List) The properties of the scope. Nested schema for properties:
- 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 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 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
- 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[Get
Scc Scope Collection Scope Property] - (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 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 IBM account associated with the scope.
- 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
- id String
- (String) The scope ID.
- instance
Id 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:
- 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.
GetSccScopeCollectionScopeProperty
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.