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

ibm.getIamTrustedProfileIdentities

Explore with Pulumi AI

Provides a read-only data source for iam_trusted_profile_identities. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";

const iamTrustedProfile = new ibm.IamTrustedProfile("iamTrustedProfile", {});
const iamTrustedProfileIdentities = ibm.getIamTrustedProfileIdentitiesOutput({
    profileId: iamTrustedProfile.iamTrustedProfileId,
});
Copy
import pulumi
import pulumi_ibm as ibm

iam_trusted_profile = ibm.IamTrustedProfile("iamTrustedProfile")
iam_trusted_profile_identities = ibm.get_iam_trusted_profile_identities_output(profile_id=iam_trusted_profile.iam_trusted_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 {
		iamTrustedProfile, err := ibm.NewIamTrustedProfile(ctx, "iamTrustedProfile", nil)
		if err != nil {
			return err
		}
		_ = ibm.GetIamTrustedProfileIdentitiesOutput(ctx, ibm.GetIamTrustedProfileIdentitiesOutputArgs{
			ProfileId: iamTrustedProfile.IamTrustedProfileId,
		}, nil)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;

return await Deployment.RunAsync(() => 
{
    var iamTrustedProfile = new Ibm.IamTrustedProfile("iamTrustedProfile");

    var iamTrustedProfileIdentities = Ibm.GetIamTrustedProfileIdentities.Invoke(new()
    {
        ProfileId = iamTrustedProfile.IamTrustedProfileId,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IamTrustedProfile;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetIamTrustedProfileIdentitiesArgs;
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) {
        var iamTrustedProfile = new IamTrustedProfile("iamTrustedProfile");

        final var iamTrustedProfileIdentities = IbmFunctions.getIamTrustedProfileIdentities(GetIamTrustedProfileIdentitiesArgs.builder()
            .profileId(iamTrustedProfile.iamTrustedProfileId())
            .build());

    }
}
Copy
resources:
  iamTrustedProfile:
    type: ibm:IamTrustedProfile
variables:
  iamTrustedProfileIdentities:
    fn::invoke:
      function: ibm:getIamTrustedProfileIdentities
      arguments:
        profileId: ${iamTrustedProfile.iamTrustedProfileId}
Copy

Using getIamTrustedProfileIdentities

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 getIamTrustedProfileIdentities(args: GetIamTrustedProfileIdentitiesArgs, opts?: InvokeOptions): Promise<GetIamTrustedProfileIdentitiesResult>
function getIamTrustedProfileIdentitiesOutput(args: GetIamTrustedProfileIdentitiesOutputArgs, opts?: InvokeOptions): Output<GetIamTrustedProfileIdentitiesResult>
Copy
def get_iam_trusted_profile_identities(id: Optional[str] = None,
                                       profile_id: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetIamTrustedProfileIdentitiesResult
def get_iam_trusted_profile_identities_output(id: Optional[pulumi.Input[str]] = None,
                                       profile_id: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetIamTrustedProfileIdentitiesResult]
Copy
func GetIamTrustedProfileIdentities(ctx *Context, args *GetIamTrustedProfileIdentitiesArgs, opts ...InvokeOption) (*GetIamTrustedProfileIdentitiesResult, error)
func GetIamTrustedProfileIdentitiesOutput(ctx *Context, args *GetIamTrustedProfileIdentitiesOutputArgs, opts ...InvokeOption) GetIamTrustedProfileIdentitiesResultOutput
Copy

> Note: This function is named GetIamTrustedProfileIdentities in the Go SDK.

public static class GetIamTrustedProfileIdentities 
{
    public static Task<GetIamTrustedProfileIdentitiesResult> InvokeAsync(GetIamTrustedProfileIdentitiesArgs args, InvokeOptions? opts = null)
    public static Output<GetIamTrustedProfileIdentitiesResult> Invoke(GetIamTrustedProfileIdentitiesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetIamTrustedProfileIdentitiesResult> getIamTrustedProfileIdentities(GetIamTrustedProfileIdentitiesArgs args, InvokeOptions options)
public static Output<GetIamTrustedProfileIdentitiesResult> getIamTrustedProfileIdentities(GetIamTrustedProfileIdentitiesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: ibm:index/getIamTrustedProfileIdentities:getIamTrustedProfileIdentities
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ProfileId This property is required. string
ID of the trusted profile.
Id string
The unique identifier of the iam_trusted_profile_identities.
ProfileId This property is required. string
ID of the trusted profile.
Id string
The unique identifier of the iam_trusted_profile_identities.
profileId This property is required. String
ID of the trusted profile.
id String
The unique identifier of the iam_trusted_profile_identities.
profileId This property is required. string
ID of the trusted profile.
id string
The unique identifier of the iam_trusted_profile_identities.
profile_id This property is required. str
ID of the trusted profile.
id str
The unique identifier of the iam_trusted_profile_identities.
profileId This property is required. String
ID of the trusted profile.
id String
The unique identifier of the iam_trusted_profile_identities.

getIamTrustedProfileIdentities Result

The following output properties are available:

EntityTag string
(String) Entity tag of the profile identities response.
Id string
The unique identifier of the iam_trusted_profile_identities.
Identities List<GetIamTrustedProfileIdentitiesIdentity>
(List) List of identities. Nested scheme for identities:
ProfileId string
EntityTag string
(String) Entity tag of the profile identities response.
Id string
The unique identifier of the iam_trusted_profile_identities.
Identities []GetIamTrustedProfileIdentitiesIdentity
(List) List of identities. Nested scheme for identities:
ProfileId string
entityTag String
(String) Entity tag of the profile identities response.
id String
The unique identifier of the iam_trusted_profile_identities.
identities List<GetIamTrustedProfileIdentitiesIdentity>
(List) List of identities. Nested scheme for identities:
profileId String
entityTag string
(String) Entity tag of the profile identities response.
id string
The unique identifier of the iam_trusted_profile_identities.
identities GetIamTrustedProfileIdentitiesIdentity[]
(List) List of identities. Nested scheme for identities:
profileId string
entity_tag str
(String) Entity tag of the profile identities response.
id str
The unique identifier of the iam_trusted_profile_identities.
identities Sequence[GetIamTrustedProfileIdentitiesIdentity]
(List) List of identities. Nested scheme for identities:
profile_id str
entityTag String
(String) Entity tag of the profile identities response.
id String
The unique identifier of the iam_trusted_profile_identities.
identities List<Property Map>
(List) List of identities. Nested scheme for identities:
profileId String

Supporting Types

GetIamTrustedProfileIdentitiesIdentity

Accounts This property is required. List<string>
(List) Only valid for the type user. Accounts from which a user can assume the trusted profile.
Description This property is required. string
(String) Description of the identity that can assume the trusted profile. This is optional field for all the types of identities. When this field is not set for the identity type 'serviceid' then the description of the service id is used. Description is recommended for the identity type 'crn' E.g. 'Instance 1234 of IBM Cloud Service project'.
IamId This property is required. string
(String) IAM ID of the identity.
Identifier This property is required. string
(String) Identifier of the identity that can assume the trusted profiles. This can be a user identifier (IAM id), serviceid or crn. Internally it uses account id of the service id for the identifier 'serviceid' and for the identifier 'crn' it uses account id contained in the CRN.
Type This property is required. string
(String) Type of the identity.

  • Constraints: Allowable values are: user, serviceid, crn.
Accounts This property is required. []string
(List) Only valid for the type user. Accounts from which a user can assume the trusted profile.
Description This property is required. string
(String) Description of the identity that can assume the trusted profile. This is optional field for all the types of identities. When this field is not set for the identity type 'serviceid' then the description of the service id is used. Description is recommended for the identity type 'crn' E.g. 'Instance 1234 of IBM Cloud Service project'.
IamId This property is required. string
(String) IAM ID of the identity.
Identifier This property is required. string
(String) Identifier of the identity that can assume the trusted profiles. This can be a user identifier (IAM id), serviceid or crn. Internally it uses account id of the service id for the identifier 'serviceid' and for the identifier 'crn' it uses account id contained in the CRN.
Type This property is required. string
(String) Type of the identity.

  • Constraints: Allowable values are: user, serviceid, crn.
accounts This property is required. List<String>
(List) Only valid for the type user. Accounts from which a user can assume the trusted profile.
description This property is required. String
(String) Description of the identity that can assume the trusted profile. This is optional field for all the types of identities. When this field is not set for the identity type 'serviceid' then the description of the service id is used. Description is recommended for the identity type 'crn' E.g. 'Instance 1234 of IBM Cloud Service project'.
iamId This property is required. String
(String) IAM ID of the identity.
identifier This property is required. String
(String) Identifier of the identity that can assume the trusted profiles. This can be a user identifier (IAM id), serviceid or crn. Internally it uses account id of the service id for the identifier 'serviceid' and for the identifier 'crn' it uses account id contained in the CRN.
type This property is required. String
(String) Type of the identity.

  • Constraints: Allowable values are: user, serviceid, crn.
accounts This property is required. string[]
(List) Only valid for the type user. Accounts from which a user can assume the trusted profile.
description This property is required. string
(String) Description of the identity that can assume the trusted profile. This is optional field for all the types of identities. When this field is not set for the identity type 'serviceid' then the description of the service id is used. Description is recommended for the identity type 'crn' E.g. 'Instance 1234 of IBM Cloud Service project'.
iamId This property is required. string
(String) IAM ID of the identity.
identifier This property is required. string
(String) Identifier of the identity that can assume the trusted profiles. This can be a user identifier (IAM id), serviceid or crn. Internally it uses account id of the service id for the identifier 'serviceid' and for the identifier 'crn' it uses account id contained in the CRN.
type This property is required. string
(String) Type of the identity.

  • Constraints: Allowable values are: user, serviceid, crn.
accounts This property is required. Sequence[str]
(List) Only valid for the type user. Accounts from which a user can assume the trusted profile.
description This property is required. str
(String) Description of the identity that can assume the trusted profile. This is optional field for all the types of identities. When this field is not set for the identity type 'serviceid' then the description of the service id is used. Description is recommended for the identity type 'crn' E.g. 'Instance 1234 of IBM Cloud Service project'.
iam_id This property is required. str
(String) IAM ID of the identity.
identifier This property is required. str
(String) Identifier of the identity that can assume the trusted profiles. This can be a user identifier (IAM id), serviceid or crn. Internally it uses account id of the service id for the identifier 'serviceid' and for the identifier 'crn' it uses account id contained in the CRN.
type This property is required. str
(String) Type of the identity.

  • Constraints: Allowable values are: user, serviceid, crn.
accounts This property is required. List<String>
(List) Only valid for the type user. Accounts from which a user can assume the trusted profile.
description This property is required. String
(String) Description of the identity that can assume the trusted profile. This is optional field for all the types of identities. When this field is not set for the identity type 'serviceid' then the description of the service id is used. Description is recommended for the identity type 'crn' E.g. 'Instance 1234 of IBM Cloud Service project'.
iamId This property is required. String
(String) IAM ID of the identity.
identifier This property is required. String
(String) Identifier of the identity that can assume the trusted profiles. This can be a user identifier (IAM id), serviceid or crn. Internally it uses account id of the service id for the identifier 'serviceid' and for the identifier 'crn' it uses account id contained in the CRN.
type This property is required. String
(String) Type of the identity.

  • Constraints: Allowable values are: user, serviceid, crn.

Package Details

Repository
ibm ibm-cloud/terraform-provider-ibm
License
Notes
This Pulumi package is based on the ibm Terraform Provider.