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,
});
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:
- Instance
Id This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 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
.
- Constraints: Allowable values are:
- instance
Id This property is required. 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 This property is required. double - (Integer) The number of attachments related to this profile.
- Control
Parents Count This property is required. double - (Integer) The number of parent controls for the profile.
- Controls
Count This property is required. double - (Integer) The number of controls for the profile.
- Created
By This property is required. string - (String) The user who created the profile.
- Created
On This property is required. string - (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. string - 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. string - (String) The profile description.
- Constraints: The maximum length is
256
characters. The minimum length is2
characters. The value must match regular expression/[A-Za-z0-9]+/
.
- Constraints: The maximum length is
- Profile
Name This property is required. string - (String) The profile name.
- Profile
Type This property is required. string - The type of profiles to query.
- Constraints: Allowable values are:
predefined
,custom
.
- Constraints: Allowable values are:
- Profile
Version This property is required. string - (String) The version status of the profile.
- Updated
By This property is required. string - Updated
On This property is required. string - Version
Group Label This property is required. string - (String) The version group label of the profile.
- Attachments
Count This property is required. float64 - (Integer) The number of attachments related to this profile.
- Control
Parents Count This property is required. float64 - (Integer) The number of parent controls for the profile.
- Controls
Count This property is required. float64 - (Integer) The number of controls for the profile.
- Created
By This property is required. string - (String) The user who created the profile.
- Created
On This property is required. string - (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. string - 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. string - (String) The profile description.
- Constraints: The maximum length is
256
characters. The minimum length is2
characters. The value must match regular expression/[A-Za-z0-9]+/
.
- Constraints: The maximum length is
- Profile
Name This property is required. string - (String) The profile name.
- Profile
Type This property is required. string - The type of profiles to query.
- Constraints: Allowable values are:
predefined
,custom
.
- Constraints: Allowable values are:
- Profile
Version This property is required. string - (String) The version status of the profile.
- Updated
By This property is required. string - Updated
On This property is required. string - Version
Group Label This property is required. string - (String) The version group label of the profile.
- attachments
Count This property is required. Double - (Integer) The number of attachments related to this profile.
- control
Parents Count This property is required. Double - (Integer) The number of parent controls for the profile.
- controls
Count This property is required. Double - (Integer) The number of controls for the profile.
- created
By This property is required. String - (String) The user who created the profile.
- created
On This property is required. String - (String) The date when the profile was created.
- hierarchy
Enabled 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.
- profile
Description This property is required. String - (String) The profile description.
- Constraints: The maximum length is
256
characters. The minimum length is2
characters. The value must match regular expression/[A-Za-z0-9]+/
.
- Constraints: The maximum length is
- profile
Name This property is required. String - (String) The profile name.
- profile
Type This property is required. String - The type of profiles to query.
- Constraints: Allowable values are:
predefined
,custom
.
- Constraints: Allowable values are:
- profile
Version This property is required. String - (String) The version status of the profile.
- updated
By This property is required. String - updated
On This property is required. String - version
Group Label This property is required. String - (String) The version group label of the profile.
- attachments
Count This property is required. number - (Integer) The number of attachments related to this profile.
- control
Parents Count This property is required. number - (Integer) The number of parent controls for the profile.
- controls
Count This property is required. number - (Integer) The number of controls for the profile.
- created
By This property is required. string - (String) The user who created the profile.
- created
On This property is required. string - (String) The date when the profile was created.
- hierarchy
Enabled 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.
- profile
Description This property is required. string - (String) The profile description.
- Constraints: The maximum length is
256
characters. The minimum length is2
characters. The value must match regular expression/[A-Za-z0-9]+/
.
- Constraints: The maximum length is
- profile
Name This property is required. string - (String) The profile name.
- profile
Type This property is required. string - The type of profiles to query.
- Constraints: Allowable values are:
predefined
,custom
.
- Constraints: Allowable values are:
- profile
Version This property is required. string - (String) The version status of the profile.
- updated
By This property is required. string - updated
On This property is required. string - version
Group Label 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 is2
characters. The value must match regular expression/[A-Za-z0-9]+/
.
- Constraints: The maximum length is
- 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
.
- Constraints: Allowable values are:
- 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.
- attachments
Count This property is required. Number - (Integer) The number of attachments related to this profile.
- control
Parents Count This property is required. Number - (Integer) The number of parent controls for the profile.
- controls
Count This property is required. Number - (Integer) The number of controls for the profile.
- created
By This property is required. String - (String) The user who created the profile.
- created
On This property is required. String - (String) The date when the profile was created.
- hierarchy
Enabled 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.
- profile
Description This property is required. String - (String) The profile description.
- Constraints: The maximum length is
256
characters. The minimum length is2
characters. The value must match regular expression/[A-Za-z0-9]+/
.
- Constraints: The maximum length is
- profile
Name This property is required. String - (String) The profile name.
- profile
Type This property is required. String - The type of profiles to query.
- Constraints: Allowable values are:
predefined
,custom
.
- Constraints: Allowable values are:
- profile
Version This property is required. String - (String) The version status of the profile.
- updated
By This property is required. String - updated
On This property is required. String - version
Group Label 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.