1. Packages
  2. Ibm Provider
  3. API Docs
  4. getSccProfiles
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.getSccProfiles

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    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,
    });
    
    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 dictionary

    The following arguments are supported:

    InstanceId 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 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 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 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 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 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 double
    (Integer) The number of attachments related to this profile.
    ControlParentsCount double
    (Integer) The number of parent controls for the profile.
    ControlsCount double
    (Integer) The number of controls for the profile.
    CreatedBy string
    (String) The user who created the profile.
    CreatedOn string
    (String) The date when the profile was created.
    HierarchyEnabled 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.
    ProfileDescription 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 string
    (String) The profile name.
    ProfileType string
    The type of profiles to query.

    • Constraints: Allowable values are: predefined, custom.
    ProfileVersion string
    (String) The version status of the profile.
    UpdatedBy string
    UpdatedOn string
    VersionGroupLabel string
    (String) The version group label of the profile.
    AttachmentsCount float64
    (Integer) The number of attachments related to this profile.
    ControlParentsCount float64
    (Integer) The number of parent controls for the profile.
    ControlsCount float64
    (Integer) The number of controls for the profile.
    CreatedBy string
    (String) The user who created the profile.
    CreatedOn string
    (String) The date when the profile was created.
    HierarchyEnabled 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.
    ProfileDescription 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 string
    (String) The profile name.
    ProfileType string
    The type of profiles to query.

    • Constraints: Allowable values are: predefined, custom.
    ProfileVersion string
    (String) The version status of the profile.
    UpdatedBy string
    UpdatedOn string
    VersionGroupLabel string
    (String) The version group label of the profile.
    attachmentsCount Double
    (Integer) The number of attachments related to this profile.
    controlParentsCount Double
    (Integer) The number of parent controls for the profile.
    controlsCount Double
    (Integer) The number of controls for the profile.
    createdBy String
    (String) The user who created the profile.
    createdOn String
    (String) The date when the profile was created.
    hierarchyEnabled 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.
    profileDescription 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 String
    (String) The profile name.
    profileType String
    The type of profiles to query.

    • Constraints: Allowable values are: predefined, custom.
    profileVersion String
    (String) The version status of the profile.
    updatedBy String
    updatedOn String
    versionGroupLabel String
    (String) The version group label of the profile.
    attachmentsCount number
    (Integer) The number of attachments related to this profile.
    controlParentsCount number
    (Integer) The number of parent controls for the profile.
    controlsCount number
    (Integer) The number of controls for the profile.
    createdBy string
    (String) The user who created the profile.
    createdOn string
    (String) The date when the profile was created.
    hierarchyEnabled 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.
    profileDescription 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 string
    (String) The profile name.
    profileType string
    The type of profiles to query.

    • Constraints: Allowable values are: predefined, custom.
    profileVersion string
    (String) The version status of the profile.
    updatedBy string
    updatedOn string
    versionGroupLabel string
    (String) The version group label of the profile.
    attachments_count float
    (Integer) The number of attachments related to this profile.
    control_parents_count float
    (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 256 characters. The minimum length is 2 characters. The value must match regular expression /[A-Za-z0-9]+/.
    profile_name str
    (String) The profile name.
    profile_type str
    The type of profiles to query.

    • Constraints: Allowable values are: predefined, custom.
    profile_version str
    (String) The version status of the profile.
    updated_by str
    updated_on str
    version_group_label str
    (String) The version group label of the profile.
    attachmentsCount Number
    (Integer) The number of attachments related to this profile.
    controlParentsCount Number
    (Integer) The number of parent controls for the profile.
    controlsCount Number
    (Integer) The number of controls for the profile.
    createdBy String
    (String) The user who created the profile.
    createdOn String
    (String) The date when the profile was created.
    hierarchyEnabled 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.
    profileDescription 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 String
    (String) The profile name.
    profileType String
    The type of profiles to query.

    • Constraints: Allowable values are: predefined, custom.
    profileVersion String
    (String) The version status of the profile.
    updatedBy String
    updatedOn String
    versionGroupLabel 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.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud