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

ibm.getIamTrustedProfile

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 to retrieve information about an iam_trusted_profile. You can then reference the fields of the data source in other resources within the same configuration by using interpolation syntax.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const iamTrustedProfile = ibm.getIamTrustedProfile({
        profileId: "profile_id",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    iam_trusted_profile = ibm.get_iam_trusted_profile(profile_id="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.LookupIamTrustedProfile(ctx, &ibm.LookupIamTrustedProfileArgs{
    			ProfileId: "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 iamTrustedProfile = Ibm.GetIamTrustedProfile.Invoke(new()
        {
            ProfileId = "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.GetIamTrustedProfileArgs;
    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 iamTrustedProfile = IbmFunctions.getIamTrustedProfile(GetIamTrustedProfileArgs.builder()
                .profileId("profile_id")
                .build());
    
        }
    }
    
    variables:
      iamTrustedProfile:
        fn::invoke:
          function: ibm:getIamTrustedProfile
          arguments:
            profileId: profile_id
    

    Using getIamTrustedProfile

    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 getIamTrustedProfile(args: GetIamTrustedProfileArgs, opts?: InvokeOptions): Promise<GetIamTrustedProfileResult>
    function getIamTrustedProfileOutput(args: GetIamTrustedProfileOutputArgs, opts?: InvokeOptions): Output<GetIamTrustedProfileResult>
    def get_iam_trusted_profile(id: Optional[str] = None,
                                profile_id: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetIamTrustedProfileResult
    def get_iam_trusted_profile_output(id: Optional[pulumi.Input[str]] = None,
                                profile_id: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetIamTrustedProfileResult]
    func LookupIamTrustedProfile(ctx *Context, args *LookupIamTrustedProfileArgs, opts ...InvokeOption) (*LookupIamTrustedProfileResult, error)
    func LookupIamTrustedProfileOutput(ctx *Context, args *LookupIamTrustedProfileOutputArgs, opts ...InvokeOption) LookupIamTrustedProfileResultOutput

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

    public static class GetIamTrustedProfile 
    {
        public static Task<GetIamTrustedProfileResult> InvokeAsync(GetIamTrustedProfileArgs args, InvokeOptions? opts = null)
        public static Output<GetIamTrustedProfileResult> Invoke(GetIamTrustedProfileInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIamTrustedProfileResult> getIamTrustedProfile(GetIamTrustedProfileArgs args, InvokeOptions options)
    public static Output<GetIamTrustedProfileResult> getIamTrustedProfile(GetIamTrustedProfileArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getIamTrustedProfile:getIamTrustedProfile
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ProfileId string
    ID of the trusted profile to get.
    Id string
    The unique identifier of the iam_trusted_profile.
    ProfileId string
    ID of the trusted profile to get.
    Id string
    The unique identifier of the iam_trusted_profile.
    profileId String
    ID of the trusted profile to get.
    id String
    The unique identifier of the iam_trusted_profile.
    profileId string
    ID of the trusted profile to get.
    id string
    The unique identifier of the iam_trusted_profile.
    profile_id str
    ID of the trusted profile to get.
    id str
    The unique identifier of the iam_trusted_profile.
    profileId String
    ID of the trusted profile to get.
    id String
    The unique identifier of the iam_trusted_profile.

    getIamTrustedProfile Result

    The following output properties are available:

    AccountId string
    (String) ID of the account that this trusted profile belong to.
    AssignmentId string
    (String) ID of the assignment that was used to create an enterprise-managed trusted profile in your account. When returned, this indicates that the trusted profile is created from and managed by a template in the root enterprise account.
    CreatedAt string
    (String) If set contains a date time string of the creation date in ISO format.
    Crn string
    (String) Cloud Resource Name of the item. Example Cloud Resource Name: 'crn:v1:bluemix:public:iam-identity:us-south:a/myaccount::profile:Profile-94497d0d-2ac3-41bf-a993-a49d1b14627c'.
    Description string
    (String) The optional description of the trusted profile. The 'description' property is only available if a description was provided during a create of a trusted profile.
    EntityTag string
    (String) Version of the trusted profile details object. You need to specify this value when updating the trusted profile to avoid stale updates.
    Histories List<GetIamTrustedProfileHistory>
    (List) History of the trusted profile. Nested schema for history:
    IamId string
    (String) The iam_id of this trusted profile.
    Id string
    The unique identifier of the iam_trusted_profile.
    ImsAccountId double
    (Integer) IMS acount ID of the trusted profile.
    ImsUserId double
    (Integer) IMS user ID of the trusted profile.
    ModifiedAt string
    (String) If set contains a date time string of the last modification date in ISO format.
    Name string
    (String) Name of the trusted profile. The name is checked for uniqueness. Therefore trusted profiles with the same names can not exist in the same account.
    ProfileId string
    TemplateId string
    (String) ID of the IAM template that was used to create an enterprise-managed trusted profile in your account. When returned, this indicates that the trusted profile is created from and managed by a template in the root enterprise account.
    AccountId string
    (String) ID of the account that this trusted profile belong to.
    AssignmentId string
    (String) ID of the assignment that was used to create an enterprise-managed trusted profile in your account. When returned, this indicates that the trusted profile is created from and managed by a template in the root enterprise account.
    CreatedAt string
    (String) If set contains a date time string of the creation date in ISO format.
    Crn string
    (String) Cloud Resource Name of the item. Example Cloud Resource Name: 'crn:v1:bluemix:public:iam-identity:us-south:a/myaccount::profile:Profile-94497d0d-2ac3-41bf-a993-a49d1b14627c'.
    Description string
    (String) The optional description of the trusted profile. The 'description' property is only available if a description was provided during a create of a trusted profile.
    EntityTag string
    (String) Version of the trusted profile details object. You need to specify this value when updating the trusted profile to avoid stale updates.
    Histories []GetIamTrustedProfileHistory
    (List) History of the trusted profile. Nested schema for history:
    IamId string
    (String) The iam_id of this trusted profile.
    Id string
    The unique identifier of the iam_trusted_profile.
    ImsAccountId float64
    (Integer) IMS acount ID of the trusted profile.
    ImsUserId float64
    (Integer) IMS user ID of the trusted profile.
    ModifiedAt string
    (String) If set contains a date time string of the last modification date in ISO format.
    Name string
    (String) Name of the trusted profile. The name is checked for uniqueness. Therefore trusted profiles with the same names can not exist in the same account.
    ProfileId string
    TemplateId string
    (String) ID of the IAM template that was used to create an enterprise-managed trusted profile in your account. When returned, this indicates that the trusted profile is created from and managed by a template in the root enterprise account.
    accountId String
    (String) ID of the account that this trusted profile belong to.
    assignmentId String
    (String) ID of the assignment that was used to create an enterprise-managed trusted profile in your account. When returned, this indicates that the trusted profile is created from and managed by a template in the root enterprise account.
    createdAt String
    (String) If set contains a date time string of the creation date in ISO format.
    crn String
    (String) Cloud Resource Name of the item. Example Cloud Resource Name: 'crn:v1:bluemix:public:iam-identity:us-south:a/myaccount::profile:Profile-94497d0d-2ac3-41bf-a993-a49d1b14627c'.
    description String
    (String) The optional description of the trusted profile. The 'description' property is only available if a description was provided during a create of a trusted profile.
    entityTag String
    (String) Version of the trusted profile details object. You need to specify this value when updating the trusted profile to avoid stale updates.
    histories List<GetIamTrustedProfileHistory>
    (List) History of the trusted profile. Nested schema for history:
    iamId String
    (String) The iam_id of this trusted profile.
    id String
    The unique identifier of the iam_trusted_profile.
    imsAccountId Double
    (Integer) IMS acount ID of the trusted profile.
    imsUserId Double
    (Integer) IMS user ID of the trusted profile.
    modifiedAt String
    (String) If set contains a date time string of the last modification date in ISO format.
    name String
    (String) Name of the trusted profile. The name is checked for uniqueness. Therefore trusted profiles with the same names can not exist in the same account.
    profileId String
    templateId String
    (String) ID of the IAM template that was used to create an enterprise-managed trusted profile in your account. When returned, this indicates that the trusted profile is created from and managed by a template in the root enterprise account.
    accountId string
    (String) ID of the account that this trusted profile belong to.
    assignmentId string
    (String) ID of the assignment that was used to create an enterprise-managed trusted profile in your account. When returned, this indicates that the trusted profile is created from and managed by a template in the root enterprise account.
    createdAt string
    (String) If set contains a date time string of the creation date in ISO format.
    crn string
    (String) Cloud Resource Name of the item. Example Cloud Resource Name: 'crn:v1:bluemix:public:iam-identity:us-south:a/myaccount::profile:Profile-94497d0d-2ac3-41bf-a993-a49d1b14627c'.
    description string
    (String) The optional description of the trusted profile. The 'description' property is only available if a description was provided during a create of a trusted profile.
    entityTag string
    (String) Version of the trusted profile details object. You need to specify this value when updating the trusted profile to avoid stale updates.
    histories GetIamTrustedProfileHistory[]
    (List) History of the trusted profile. Nested schema for history:
    iamId string
    (String) The iam_id of this trusted profile.
    id string
    The unique identifier of the iam_trusted_profile.
    imsAccountId number
    (Integer) IMS acount ID of the trusted profile.
    imsUserId number
    (Integer) IMS user ID of the trusted profile.
    modifiedAt string
    (String) If set contains a date time string of the last modification date in ISO format.
    name string
    (String) Name of the trusted profile. The name is checked for uniqueness. Therefore trusted profiles with the same names can not exist in the same account.
    profileId string
    templateId string
    (String) ID of the IAM template that was used to create an enterprise-managed trusted profile in your account. When returned, this indicates that the trusted profile is created from and managed by a template in the root enterprise account.
    account_id str
    (String) ID of the account that this trusted profile belong to.
    assignment_id str
    (String) ID of the assignment that was used to create an enterprise-managed trusted profile in your account. When returned, this indicates that the trusted profile is created from and managed by a template in the root enterprise account.
    created_at str
    (String) If set contains a date time string of the creation date in ISO format.
    crn str
    (String) Cloud Resource Name of the item. Example Cloud Resource Name: 'crn:v1:bluemix:public:iam-identity:us-south:a/myaccount::profile:Profile-94497d0d-2ac3-41bf-a993-a49d1b14627c'.
    description str
    (String) The optional description of the trusted profile. The 'description' property is only available if a description was provided during a create of a trusted profile.
    entity_tag str
    (String) Version of the trusted profile details object. You need to specify this value when updating the trusted profile to avoid stale updates.
    histories Sequence[GetIamTrustedProfileHistory]
    (List) History of the trusted profile. Nested schema for history:
    iam_id str
    (String) The iam_id of this trusted profile.
    id str
    The unique identifier of the iam_trusted_profile.
    ims_account_id float
    (Integer) IMS acount ID of the trusted profile.
    ims_user_id float
    (Integer) IMS user ID of the trusted profile.
    modified_at str
    (String) If set contains a date time string of the last modification date in ISO format.
    name str
    (String) Name of the trusted profile. The name is checked for uniqueness. Therefore trusted profiles with the same names can not exist in the same account.
    profile_id str
    template_id str
    (String) ID of the IAM template that was used to create an enterprise-managed trusted profile in your account. When returned, this indicates that the trusted profile is created from and managed by a template in the root enterprise account.
    accountId String
    (String) ID of the account that this trusted profile belong to.
    assignmentId String
    (String) ID of the assignment that was used to create an enterprise-managed trusted profile in your account. When returned, this indicates that the trusted profile is created from and managed by a template in the root enterprise account.
    createdAt String
    (String) If set contains a date time string of the creation date in ISO format.
    crn String
    (String) Cloud Resource Name of the item. Example Cloud Resource Name: 'crn:v1:bluemix:public:iam-identity:us-south:a/myaccount::profile:Profile-94497d0d-2ac3-41bf-a993-a49d1b14627c'.
    description String
    (String) The optional description of the trusted profile. The 'description' property is only available if a description was provided during a create of a trusted profile.
    entityTag String
    (String) Version of the trusted profile details object. You need to specify this value when updating the trusted profile to avoid stale updates.
    histories List<Property Map>
    (List) History of the trusted profile. Nested schema for history:
    iamId String
    (String) The iam_id of this trusted profile.
    id String
    The unique identifier of the iam_trusted_profile.
    imsAccountId Number
    (Integer) IMS acount ID of the trusted profile.
    imsUserId Number
    (Integer) IMS user ID of the trusted profile.
    modifiedAt String
    (String) If set contains a date time string of the last modification date in ISO format.
    name String
    (String) Name of the trusted profile. The name is checked for uniqueness. Therefore trusted profiles with the same names can not exist in the same account.
    profileId String
    templateId String
    (String) ID of the IAM template that was used to create an enterprise-managed trusted profile in your account. When returned, this indicates that the trusted profile is created from and managed by a template in the root enterprise account.

    Supporting Types

    GetIamTrustedProfileHistory

    Action string
    (String) Action of the history entry.
    IamId string
    (String) The iam_id of this trusted profile.
    IamIdAccount string
    (String) Account of the identity which triggered the action.
    Message string
    (String) Message which summarizes the executed action.
    Params List<string>
    (List) Params of the history entry.
    Timestamp string
    (String) Timestamp when the action was triggered.
    Action string
    (String) Action of the history entry.
    IamId string
    (String) The iam_id of this trusted profile.
    IamIdAccount string
    (String) Account of the identity which triggered the action.
    Message string
    (String) Message which summarizes the executed action.
    Params []string
    (List) Params of the history entry.
    Timestamp string
    (String) Timestamp when the action was triggered.
    action String
    (String) Action of the history entry.
    iamId String
    (String) The iam_id of this trusted profile.
    iamIdAccount String
    (String) Account of the identity which triggered the action.
    message String
    (String) Message which summarizes the executed action.
    params List<String>
    (List) Params of the history entry.
    timestamp String
    (String) Timestamp when the action was triggered.
    action string
    (String) Action of the history entry.
    iamId string
    (String) The iam_id of this trusted profile.
    iamIdAccount string
    (String) Account of the identity which triggered the action.
    message string
    (String) Message which summarizes the executed action.
    params string[]
    (List) Params of the history entry.
    timestamp string
    (String) Timestamp when the action was triggered.
    action str
    (String) Action of the history entry.
    iam_id str
    (String) The iam_id of this trusted profile.
    iam_id_account str
    (String) Account of the identity which triggered the action.
    message str
    (String) Message which summarizes the executed action.
    params Sequence[str]
    (List) Params of the history entry.
    timestamp str
    (String) Timestamp when the action was triggered.
    action String
    (String) Action of the history entry.
    iamId String
    (String) The iam_id of this trusted profile.
    iamIdAccount String
    (String) Account of the identity which triggered the action.
    message String
    (String) Message which summarizes the executed action.
    params List<String>
    (List) Params of the history entry.
    timestamp String
    (String) Timestamp when the action was triggered.

    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