ibm 1.78.0 published on Wednesday, Apr 30, 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,
});
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:
- profile_
id str - ID of the trusted profile.
- id str
- The unique identifier of the iam_trusted_profile_identities.
getIamTrustedProfileIdentities Result
The following output properties are available:
- Entity
Tag string - (String) Entity tag of the profile identities response.
- Id string
- The unique identifier of the iam_trusted_profile_identities.
- Identities
List<Get
Iam Trusted Profile Identities Identity> - (List) List of identities. Nested scheme for identities:
- Profile
Id string
- Entity
Tag string - (String) Entity tag of the profile identities response.
- Id string
- The unique identifier of the iam_trusted_profile_identities.
- Identities
[]Get
Iam Trusted Profile Identities Identity - (List) List of identities. Nested scheme for identities:
- Profile
Id string
- entity
Tag String - (String) Entity tag of the profile identities response.
- id String
- The unique identifier of the iam_trusted_profile_identities.
- identities
List<Get
Iam Trusted Profile Identities Identity> - (List) List of identities. Nested scheme for identities:
- profile
Id String
- entity
Tag string - (String) Entity tag of the profile identities response.
- id string
- The unique identifier of the iam_trusted_profile_identities.
- identities
Get
Iam Trusted Profile Identities Identity[] - (List) List of identities. Nested scheme for identities:
- profile
Id 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[Get
Iam Trusted Profile Identities Identity] - (List) List of identities. Nested scheme for identities:
- profile_
id str
- entity
Tag 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:
- profile
Id 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'.
- Iam
Id 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
.
- Constraints: Allowable values are:
- 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'.
- Iam
Id 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
.
- Constraints: Allowable values are:
- 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'.
- iam
Id 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
.
- Constraints: Allowable values are:
- 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'.
- iam
Id 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
.
- Constraints: Allowable values are:
- 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
.
- Constraints: Allowable values are:
- 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'.
- iam
Id 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
.
- Constraints: Allowable values are:
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.