ibm.getSccProfiles
Explore with Pulumi AI
Retrieve information about a list of profiles from a read-only data source. Then, you can 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
regionto 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 sccProfilesInstace = ibm.getSccProfiles({
    instanceId: "00000000-1111-2222-3333-444444444444",
    profileType: ibm_scc_profile.scc_profile_instance.profile_id,
});
import pulumi
import pulumi_ibm as ibm
scc_profiles_instace = ibm.get_scc_profiles(instance_id="00000000-1111-2222-3333-444444444444",
    profile_type=ibm_scc_profile["scc_profile_instance"]["profile_id"])
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.GetSccProfiles(ctx, &ibm.GetSccProfilesArgs{
			InstanceId:  "00000000-1111-2222-3333-444444444444",
			ProfileType: pulumi.StringRef(ibm_scc_profile.Scc_profile_instance.Profile_id),
		}, 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 sccProfilesInstace = Ibm.GetSccProfiles.Invoke(new()
    {
        InstanceId = "00000000-1111-2222-3333-444444444444",
        ProfileType = ibm_scc_profile.Scc_profile_instance.Profile_id,
    });
});
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.GetSccProfilesArgs;
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 sccProfilesInstace = IbmFunctions.getSccProfiles(GetSccProfilesArgs.builder()
            .instanceId("00000000-1111-2222-3333-444444444444")
            .profileType(ibm_scc_profile.scc_profile_instance().profile_id())
            .build());
    }
}
variables:
  sccProfilesInstace:
    fn::invoke:
      function: ibm:getSccProfiles
      arguments:
        instanceId: 00000000-1111-2222-3333-444444444444
        profileType: ${ibm_scc_profile.scc_profile_instance.profile_id}
Using getSccProfiles
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 getSccProfiles(args: GetSccProfilesArgs, opts?: InvokeOptions): Promise<GetSccProfilesResult>
function getSccProfilesOutput(args: GetSccProfilesOutputArgs, opts?: InvokeOptions): Output<GetSccProfilesResult>def get_scc_profiles(id: Optional[str] = None,
                     instance_id: Optional[str] = None,
                     profile_type: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetSccProfilesResult
def get_scc_profiles_output(id: Optional[pulumi.Input[str]] = None,
                     instance_id: Optional[pulumi.Input[str]] = None,
                     profile_type: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetSccProfilesResult]func GetSccProfiles(ctx *Context, args *GetSccProfilesArgs, opts ...InvokeOption) (*GetSccProfilesResult, error)
func GetSccProfilesOutput(ctx *Context, args *GetSccProfilesOutputArgs, opts ...InvokeOption) GetSccProfilesResultOutput> Note: This function is named GetSccProfiles in the Go SDK.
public static class GetSccProfiles 
{
    public static Task<GetSccProfilesResult> InvokeAsync(GetSccProfilesArgs args, InvokeOptions? opts = null)
    public static Output<GetSccProfilesResult> Invoke(GetSccProfilesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSccProfilesResult> getSccProfiles(GetSccProfilesArgs args, InvokeOptions options)
public static Output<GetSccProfilesResult> getSccProfiles(GetSccProfilesArgs args, InvokeOptions options)
fn::invoke:
  function: ibm:index/getSccProfiles:getSccProfiles
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Instance
Id string - The ID of the SCC instance in a particular region.
 - Id string
 - The unique identifier of the scc_profile.
 - Profile
Type string - The type of profiles to query.
- Constraints: Allowable values are: 
predefined,custom. 
 - Constraints: Allowable values are: 
 
- Instance
Id string - The ID of the SCC instance in a particular region.
 - Id string
 - The unique identifier of the scc_profile.
 - Profile
Type string - The type of profiles to query.
- Constraints: Allowable values are: 
predefined,custom. 
 - Constraints: Allowable values are: 
 
- instance
Id String - The ID of the SCC instance in a particular region.
 - id String
 - The unique identifier of the scc_profile.
 - profile
Type String - The type of profiles to query.
- Constraints: Allowable values are: 
predefined,custom. 
 - Constraints: Allowable values are: 
 
- instance
Id string - The ID of the SCC instance in a particular region.
 - id string
 - The unique identifier of the scc_profile.
 - profile
Type string - The type of profiles to query.
- Constraints: Allowable values are: 
predefined,custom. 
 - Constraints: Allowable values are: 
 
- instance_
id str - The ID of the SCC instance in a particular region.
 - id str
 - The unique identifier of the scc_profile.
 - profile_
type str - The type of profiles to query.
- Constraints: Allowable values are: 
predefined,custom. 
 - Constraints: Allowable values are: 
 
- instance
Id String - The ID of the SCC instance in a particular region.
 - id String
 - The unique identifier of the scc_profile.
 - profile
Type String - The type of profiles to query.
- Constraints: Allowable values are: 
predefined,custom. 
 - Constraints: Allowable values are: 
 
getSccProfiles Result
The following output properties are available:
- Id string
 - The unique identifier of the scc_profile.
 - Instance
Id string - (String) The instance ID.
 - Profiles
List<Get
Scc Profiles Profile>  - (List) The list of profiles.
 - Profile
Type string - (String) The profile type, such as custom or predefined.
 
- Id string
 - The unique identifier of the scc_profile.
 - Instance
Id string - (String) The instance ID.
 - Profiles
[]Get
Scc Profiles Profile  - (List) The list of profiles.
 - Profile
Type string - (String) The profile type, such as custom or predefined.
 
- id String
 - The unique identifier of the scc_profile.
 - instance
Id String - (String) The instance ID.
 - profiles
List<Get
Scc Profiles Profile>  - (List) The list of profiles.
 - profile
Type String - (String) The profile type, such as custom or predefined.
 
- id string
 - The unique identifier of the scc_profile.
 - instance
Id string - (String) The instance ID.
 - profiles
Get
Scc Profiles Profile[]  - (List) The list of profiles.
 - profile
Type string - (String) The profile type, such as custom or predefined.
 
- id str
 - The unique identifier of the scc_profile.
 - instance_
id str - (String) The instance ID.
 - profiles
Sequence[Get
Scc Profiles Profile]  - (List) The list of profiles.
 - profile_
type str - (String) The profile type, such as custom or predefined.
 
- id String
 - The unique identifier of the scc_profile.
 - instance
Id String - (String) The instance ID.
 - profiles List<Property Map>
 - (List) The list of profiles.
 - profile
Type String - (String) The profile type, such as custom or predefined.
 
Supporting Types
GetSccProfilesProfile   
- Attachments
Count double - (Integer) The number of attachments related to this profile.
 - Control
Parents doubleCount  - (Integer) The number of parent controls for the profile.
 - Controls
Count double - (Integer) The number of controls for the profile.
 - Created
By string - (String) The user who created the profile.
 - Created
On string - (String) The date when the profile was created.
 - Hierarchy
Enabled bool - (Boolean) The indication of whether hierarchy is enabled for the profile.
 - Id string
 - The unique identifier of the scc_profile.
 - Latest bool
 - (Boolean) The latest version of the profile.
 - Profile
Description string - (String) The profile description.
- Constraints: The maximum length is 
256characters. The minimum length is2characters. The value must match regular expression/[A-Za-z0-9]+/. 
 - Constraints: The maximum length is 
 - Profile
Name string - (String) The profile name.
 - Profile
Type string - The type of profiles to query.
- Constraints: Allowable values are: 
predefined,custom. 
 - Constraints: Allowable values are: 
 - Profile
Version string - (String) The version status of the profile.
 - Updated
By string - Updated
On string - Version
Group stringLabel  - (String) The version group label of the profile.
 
- Attachments
Count float64 - (Integer) The number of attachments related to this profile.
 - Control
Parents float64Count  - (Integer) The number of parent controls for the profile.
 - Controls
Count float64 - (Integer) The number of controls for the profile.
 - Created
By string - (String) The user who created the profile.
 - Created
On string - (String) The date when the profile was created.
 - Hierarchy
Enabled bool - (Boolean) The indication of whether hierarchy is enabled for the profile.
 - Id string
 - The unique identifier of the scc_profile.
 - Latest bool
 - (Boolean) The latest version of the profile.
 - Profile
Description string - (String) The profile description.
- Constraints: The maximum length is 
256characters. The minimum length is2characters. The value must match regular expression/[A-Za-z0-9]+/. 
 - Constraints: The maximum length is 
 - Profile
Name string - (String) The profile name.
 - Profile
Type string - The type of profiles to query.
- Constraints: Allowable values are: 
predefined,custom. 
 - Constraints: Allowable values are: 
 - Profile
Version string - (String) The version status of the profile.
 - Updated
By string - Updated
On string - Version
Group stringLabel  - (String) The version group label of the profile.
 
- attachments
Count Double - (Integer) The number of attachments related to this profile.
 - control
Parents DoubleCount  - (Integer) The number of parent controls for the profile.
 - controls
Count Double - (Integer) The number of controls for the profile.
 - created
By String - (String) The user who created the profile.
 - created
On String - (String) The date when the profile was created.
 - hierarchy
Enabled Boolean - (Boolean) The indication of whether hierarchy is enabled for the profile.
 - id String
 - The unique identifier of the scc_profile.
 - latest Boolean
 - (Boolean) The latest version of the profile.
 - profile
Description String - (String) The profile description.
- Constraints: The maximum length is 
256characters. The minimum length is2characters. The value must match regular expression/[A-Za-z0-9]+/. 
 - Constraints: The maximum length is 
 - profile
Name String - (String) The profile name.
 - profile
Type String - The type of profiles to query.
- Constraints: Allowable values are: 
predefined,custom. 
 - Constraints: Allowable values are: 
 - profile
Version String - (String) The version status of the profile.
 - updated
By String - updated
On String - version
Group StringLabel  - (String) The version group label of the profile.
 
- attachments
Count number - (Integer) The number of attachments related to this profile.
 - control
Parents numberCount  - (Integer) The number of parent controls for the profile.
 - controls
Count number - (Integer) The number of controls for the profile.
 - created
By string - (String) The user who created the profile.
 - created
On string - (String) The date when the profile was created.
 - hierarchy
Enabled boolean - (Boolean) The indication of whether hierarchy is enabled for the profile.
 - id string
 - The unique identifier of the scc_profile.
 - latest boolean
 - (Boolean) The latest version of the profile.
 - profile
Description string - (String) The profile description.
- Constraints: The maximum length is 
256characters. The minimum length is2characters. The value must match regular expression/[A-Za-z0-9]+/. 
 - Constraints: The maximum length is 
 - profile
Name string - (String) The profile name.
 - profile
Type string - The type of profiles to query.
- Constraints: Allowable values are: 
predefined,custom. 
 - Constraints: Allowable values are: 
 - profile
Version string - (String) The version status of the profile.
 - updated
By string - updated
On string - version
Group stringLabel  - (String) The version group label of the profile.
 
- attachments_
count float - (Integer) The number of attachments related to this profile.
 - control_
parents_ floatcount  - (Integer) The number of parent controls for the profile.
 - controls_
count float - (Integer) The number of controls for the profile.
 - created_
by str - (String) The user who created the profile.
 - created_
on str - (String) The date when the profile was created.
 - hierarchy_
enabled bool - (Boolean) The indication of whether hierarchy is enabled for the profile.
 - id str
 - The unique identifier of the scc_profile.
 - latest bool
 - (Boolean) The latest version of the profile.
 - profile_
description str - (String) The profile description.
- Constraints: The maximum length is 
256characters. The minimum length is2characters. The value must match regular expression/[A-Za-z0-9]+/. 
 - Constraints: The maximum length is 
 - profile_
name str - (String) The profile name.
 - profile_
type str - The type of profiles to query.
- Constraints: Allowable values are: 
predefined,custom. 
 - Constraints: Allowable values are: 
 - profile_
version str - (String) The version status of the profile.
 - updated_
by str - updated_
on str - version_
group_ strlabel  - (String) The version group label of the profile.
 
- attachments
Count Number - (Integer) The number of attachments related to this profile.
 - control
Parents NumberCount  - (Integer) The number of parent controls for the profile.
 - controls
Count Number - (Integer) The number of controls for the profile.
 - created
By String - (String) The user who created the profile.
 - created
On String - (String) The date when the profile was created.
 - hierarchy
Enabled Boolean - (Boolean) The indication of whether hierarchy is enabled for the profile.
 - id String
 - The unique identifier of the scc_profile.
 - latest Boolean
 - (Boolean) The latest version of the profile.
 - profile
Description String - (String) The profile description.
- Constraints: The maximum length is 
256characters. The minimum length is2characters. The value must match regular expression/[A-Za-z0-9]+/. 
 - Constraints: The maximum length is 
 - profile
Name String - (String) The profile name.
 - profile
Type String - The type of profiles to query.
- Constraints: Allowable values are: 
predefined,custom. 
 - Constraints: Allowable values are: 
 - profile
Version String - (String) The version status of the profile.
 - updated
By String - updated
On String - version
Group StringLabel  - (String) The version group label of the profile.
 
Package Details
- Repository
 - ibm ibm-cloud/terraform-provider-ibm
 - License
 - Notes
 - This Pulumi package is based on the 
ibmTerraform Provider.