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

ibm.getIamTrustedProfileIdentities

Explore with Pulumi AI

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

    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,
    });
    
    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)
    
    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
    	})
    }
    
    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,
        });
    
    });
    
    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());
    
        }
    }
    
    resources:
      iamTrustedProfile:
        type: ibm:IamTrustedProfile
    variables:
      iamTrustedProfileIdentities:
        fn::invoke:
          function: ibm:getIamTrustedProfileIdentities
          arguments:
            profileId: ${iamTrustedProfile.iamTrustedProfileId}
    

    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>
    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]
    func GetIamTrustedProfileIdentities(ctx *Context, args *GetIamTrustedProfileIdentitiesArgs, opts ...InvokeOption) (*GetIamTrustedProfileIdentitiesResult, error)
    func GetIamTrustedProfileIdentitiesOutput(ctx *Context, args *GetIamTrustedProfileIdentitiesOutputArgs, opts ...InvokeOption) GetIamTrustedProfileIdentitiesResultOutput

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

    The following arguments are supported:

    ProfileId string
    ID of the trusted profile.
    Id string
    The unique identifier of the iam_trusted_profile_identities.
    ProfileId string
    ID of the trusted profile.
    Id string
    The unique identifier of the iam_trusted_profile_identities.
    profileId String
    ID of the trusted profile.
    id String
    The unique identifier of the iam_trusted_profile_identities.
    profileId string
    ID of the trusted profile.
    id string
    The unique identifier of the iam_trusted_profile_identities.
    profile_id str
    ID of the trusted profile.
    id str
    The unique identifier of the iam_trusted_profile_identities.
    profileId 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 List<string>
    (List) Only valid for the type user. Accounts from which a user can assume the trusted profile.
    Description 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 string
    (String) IAM ID of the identity.
    Identifier 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 string
    (String) Type of the identity.

    • Constraints: Allowable values are: user, serviceid, crn.
    Accounts []string
    (List) Only valid for the type user. Accounts from which a user can assume the trusted profile.
    Description 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 string
    (String) IAM ID of the identity.
    Identifier 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 string
    (String) Type of the identity.

    • Constraints: Allowable values are: user, serviceid, crn.
    accounts List<String>
    (List) Only valid for the type user. Accounts from which a user can assume the trusted profile.
    description 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 String
    (String) IAM ID of the identity.
    identifier 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 String
    (String) Type of the identity.

    • Constraints: Allowable values are: user, serviceid, crn.
    accounts string[]
    (List) Only valid for the type user. Accounts from which a user can assume the trusted profile.
    description 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 string
    (String) IAM ID of the identity.
    identifier 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 string
    (String) Type of the identity.

    • Constraints: Allowable values are: user, serviceid, crn.
    accounts Sequence[str]
    (List) Only valid for the type user. Accounts from which a user can assume the trusted profile.
    description 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 str
    (String) IAM ID of the identity.
    identifier 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 str
    (String) Type of the identity.

    • Constraints: Allowable values are: user, serviceid, crn.
    accounts List<String>
    (List) Only valid for the type user. Accounts from which a user can assume the trusted profile.
    description 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 String
    (String) IAM ID of the identity.
    identifier 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 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.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud