1. Packages
  2. Ibm Provider
  3. API Docs
  4. getSccProfiles
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

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 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 sccProfilesInstace = ibm.getSccProfiles({
    instanceId: "00000000-1111-2222-3333-444444444444",
    profileType: ibm_scc_profile.scc_profile_instance.profile_id,
});
Copy
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"])
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
variables:
  sccProfilesInstace:
    fn::invoke:
      function: ibm:getSccProfiles
      arguments:
        instanceId: 00000000-1111-2222-3333-444444444444
        profileType: ${ibm_scc_profile.scc_profile_instance.profile_id}
Copy

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>
Copy
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]
Copy
func GetSccProfiles(ctx *Context, args *GetSccProfilesArgs, opts ...InvokeOption) (*GetSccProfilesResult, error)
func GetSccProfilesOutput(ctx *Context, args *GetSccProfilesOutputArgs, opts ...InvokeOption) GetSccProfilesResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetSccProfilesResult> getSccProfiles(GetSccProfilesArgs args, InvokeOptions options)
public static Output<GetSccProfilesResult> getSccProfiles(GetSccProfilesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: ibm:index/getSccProfiles:getSccProfiles
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

InstanceId This property is required. string
The ID of the SCC instance in a particular region.
Id string
The unique identifier of the scc_profile.
ProfileType string
The type of profiles to query.

  • Constraints: Allowable values are: predefined, custom.
InstanceId This property is required. string
The ID of the SCC instance in a particular region.
Id string
The unique identifier of the scc_profile.
ProfileType string
The type of profiles to query.

  • Constraints: Allowable values are: predefined, custom.
instanceId This property is required. String
The ID of the SCC instance in a particular region.
id String
The unique identifier of the scc_profile.
profileType String
The type of profiles to query.

  • Constraints: Allowable values are: predefined, custom.
instanceId This property is required. string
The ID of the SCC instance in a particular region.
id string
The unique identifier of the scc_profile.
profileType string
The type of profiles to query.

  • Constraints: Allowable values are: predefined, custom.
instance_id This property is required. 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.
instanceId This property is required. String
The ID of the SCC instance in a particular region.
id String
The unique identifier of the scc_profile.
profileType String
The type of profiles to query.

  • Constraints: Allowable values are: predefined, custom.

getSccProfiles Result

The following output properties are available:

Id string
The unique identifier of the scc_profile.
InstanceId string
(String) The instance ID.
Profiles List<GetSccProfilesProfile>
(List) The list of profiles.
ProfileType string
(String) The profile type, such as custom or predefined.
Id string
The unique identifier of the scc_profile.
InstanceId string
(String) The instance ID.
Profiles []GetSccProfilesProfile
(List) The list of profiles.
ProfileType string
(String) The profile type, such as custom or predefined.
id String
The unique identifier of the scc_profile.
instanceId String
(String) The instance ID.
profiles List<GetSccProfilesProfile>
(List) The list of profiles.
profileType String
(String) The profile type, such as custom or predefined.
id string
The unique identifier of the scc_profile.
instanceId string
(String) The instance ID.
profiles GetSccProfilesProfile[]
(List) The list of profiles.
profileType 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[GetSccProfilesProfile]
(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.
instanceId String
(String) The instance ID.
profiles List<Property Map>
(List) The list of profiles.
profileType String
(String) The profile type, such as custom or predefined.

Supporting Types

GetSccProfilesProfile

AttachmentsCount This property is required. double
(Integer) The number of attachments related to this profile.
ControlParentsCount This property is required. double
(Integer) The number of parent controls for the profile.
ControlsCount This property is required. double
(Integer) The number of controls for the profile.
CreatedBy This property is required. string
(String) The user who created the profile.
CreatedOn This property is required. string
(String) The date when the profile was created.
HierarchyEnabled This property is required. bool
(Boolean) The indication of whether hierarchy is enabled for the profile.
Id This property is required. string
The unique identifier of the scc_profile.
Latest This property is required. bool
(Boolean) The latest version of the profile.
ProfileDescription This property is required. string
(String) The profile description.

  • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression /[A-Za-z0-9]+/.
ProfileName This property is required. string
(String) The profile name.
ProfileType This property is required. string
The type of profiles to query.

  • Constraints: Allowable values are: predefined, custom.
ProfileVersion This property is required. string
(String) The version status of the profile.
UpdatedBy This property is required. string
UpdatedOn This property is required. string
VersionGroupLabel This property is required. string
(String) The version group label of the profile.
AttachmentsCount This property is required. float64
(Integer) The number of attachments related to this profile.
ControlParentsCount This property is required. float64
(Integer) The number of parent controls for the profile.
ControlsCount This property is required. float64
(Integer) The number of controls for the profile.
CreatedBy This property is required. string
(String) The user who created the profile.
CreatedOn This property is required. string
(String) The date when the profile was created.
HierarchyEnabled This property is required. bool
(Boolean) The indication of whether hierarchy is enabled for the profile.
Id This property is required. string
The unique identifier of the scc_profile.
Latest This property is required. bool
(Boolean) The latest version of the profile.
ProfileDescription This property is required. string
(String) The profile description.

  • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression /[A-Za-z0-9]+/.
ProfileName This property is required. string
(String) The profile name.
ProfileType This property is required. string
The type of profiles to query.

  • Constraints: Allowable values are: predefined, custom.
ProfileVersion This property is required. string
(String) The version status of the profile.
UpdatedBy This property is required. string
UpdatedOn This property is required. string
VersionGroupLabel This property is required. string
(String) The version group label of the profile.
attachmentsCount This property is required. Double
(Integer) The number of attachments related to this profile.
controlParentsCount This property is required. Double
(Integer) The number of parent controls for the profile.
controlsCount This property is required. Double
(Integer) The number of controls for the profile.
createdBy This property is required. String
(String) The user who created the profile.
createdOn This property is required. String
(String) The date when the profile was created.
hierarchyEnabled This property is required. Boolean
(Boolean) The indication of whether hierarchy is enabled for the profile.
id This property is required. String
The unique identifier of the scc_profile.
latest This property is required. Boolean
(Boolean) The latest version of the profile.
profileDescription This property is required. String
(String) The profile description.

  • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression /[A-Za-z0-9]+/.
profileName This property is required. String
(String) The profile name.
profileType This property is required. String
The type of profiles to query.

  • Constraints: Allowable values are: predefined, custom.
profileVersion This property is required. String
(String) The version status of the profile.
updatedBy This property is required. String
updatedOn This property is required. String
versionGroupLabel This property is required. String
(String) The version group label of the profile.
attachmentsCount This property is required. number
(Integer) The number of attachments related to this profile.
controlParentsCount This property is required. number
(Integer) The number of parent controls for the profile.
controlsCount This property is required. number
(Integer) The number of controls for the profile.
createdBy This property is required. string
(String) The user who created the profile.
createdOn This property is required. string
(String) The date when the profile was created.
hierarchyEnabled This property is required. boolean
(Boolean) The indication of whether hierarchy is enabled for the profile.
id This property is required. string
The unique identifier of the scc_profile.
latest This property is required. boolean
(Boolean) The latest version of the profile.
profileDescription This property is required. string
(String) The profile description.

  • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression /[A-Za-z0-9]+/.
profileName This property is required. string
(String) The profile name.
profileType This property is required. string
The type of profiles to query.

  • Constraints: Allowable values are: predefined, custom.
profileVersion This property is required. string
(String) The version status of the profile.
updatedBy This property is required. string
updatedOn This property is required. string
versionGroupLabel This property is required. string
(String) The version group label of the profile.
attachments_count This property is required. float
(Integer) The number of attachments related to this profile.
control_parents_count This property is required. float
(Integer) The number of parent controls for the profile.
controls_count This property is required. float
(Integer) The number of controls for the profile.
created_by This property is required. str
(String) The user who created the profile.
created_on This property is required. str
(String) The date when the profile was created.
hierarchy_enabled This property is required. bool
(Boolean) The indication of whether hierarchy is enabled for the profile.
id This property is required. str
The unique identifier of the scc_profile.
latest This property is required. bool
(Boolean) The latest version of the profile.
profile_description This property is required. str
(String) The profile description.

  • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression /[A-Za-z0-9]+/.
profile_name This property is required. str
(String) The profile name.
profile_type This property is required. str
The type of profiles to query.

  • Constraints: Allowable values are: predefined, custom.
profile_version This property is required. str
(String) The version status of the profile.
updated_by This property is required. str
updated_on This property is required. str
version_group_label This property is required. str
(String) The version group label of the profile.
attachmentsCount This property is required. Number
(Integer) The number of attachments related to this profile.
controlParentsCount This property is required. Number
(Integer) The number of parent controls for the profile.
controlsCount This property is required. Number
(Integer) The number of controls for the profile.
createdBy This property is required. String
(String) The user who created the profile.
createdOn This property is required. String
(String) The date when the profile was created.
hierarchyEnabled This property is required. Boolean
(Boolean) The indication of whether hierarchy is enabled for the profile.
id This property is required. String
The unique identifier of the scc_profile.
latest This property is required. Boolean
(Boolean) The latest version of the profile.
profileDescription This property is required. String
(String) The profile description.

  • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression /[A-Za-z0-9]+/.
profileName This property is required. String
(String) The profile name.
profileType This property is required. String
The type of profiles to query.

  • Constraints: Allowable values are: predefined, custom.
profileVersion This property is required. String
(String) The version status of the profile.
updatedBy This property is required. String
updatedOn This property is required. String
versionGroupLabel This property is required. String
(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 ibm Terraform Provider.