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

ibm.getIamTrustedProfiles

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 iam_trusted_profiles. 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 iamTrustedProfiles = ibm.getIamTrustedProfiles({
        accountId: "account_id",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    iam_trusted_profiles = ibm.get_iam_trusted_profiles(account_id="account_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.GetIamTrustedProfiles(ctx, &ibm.GetIamTrustedProfilesArgs{
    			AccountId: "account_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 iamTrustedProfiles = Ibm.GetIamTrustedProfiles.Invoke(new()
        {
            AccountId = "account_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.GetIamTrustedProfilesArgs;
    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 iamTrustedProfiles = IbmFunctions.getIamTrustedProfiles(GetIamTrustedProfilesArgs.builder()
                .accountId("account_id")
                .build());
    
        }
    }
    
    variables:
      iamTrustedProfiles:
        fn::invoke:
          function: ibm:getIamTrustedProfiles
          arguments:
            accountId: account_id
    

    Using getIamTrustedProfiles

    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 getIamTrustedProfiles(args: GetIamTrustedProfilesArgs, opts?: InvokeOptions): Promise<GetIamTrustedProfilesResult>
    function getIamTrustedProfilesOutput(args: GetIamTrustedProfilesOutputArgs, opts?: InvokeOptions): Output<GetIamTrustedProfilesResult>
    def get_iam_trusted_profiles(account_id: Optional[str] = None,
                                 id: Optional[str] = None,
                                 include_history: Optional[bool] = None,
                                 name: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetIamTrustedProfilesResult
    def get_iam_trusted_profiles_output(account_id: Optional[pulumi.Input[str]] = None,
                                 id: Optional[pulumi.Input[str]] = None,
                                 include_history: Optional[pulumi.Input[bool]] = None,
                                 name: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetIamTrustedProfilesResult]
    func GetIamTrustedProfiles(ctx *Context, args *GetIamTrustedProfilesArgs, opts ...InvokeOption) (*GetIamTrustedProfilesResult, error)
    func GetIamTrustedProfilesOutput(ctx *Context, args *GetIamTrustedProfilesOutputArgs, opts ...InvokeOption) GetIamTrustedProfilesResultOutput

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

    public static class GetIamTrustedProfiles 
    {
        public static Task<GetIamTrustedProfilesResult> InvokeAsync(GetIamTrustedProfilesArgs args, InvokeOptions? opts = null)
        public static Output<GetIamTrustedProfilesResult> Invoke(GetIamTrustedProfilesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIamTrustedProfilesResult> getIamTrustedProfiles(GetIamTrustedProfilesArgs args, InvokeOptions options)
    public static Output<GetIamTrustedProfilesResult> getIamTrustedProfiles(GetIamTrustedProfilesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getIamTrustedProfiles:getIamTrustedProfiles
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    Account ID to query for trusted profiles.
    Id string
    (String) the unique identifier of the trusted profile. Example:'Profile-94497d0d-2ac3-41bf-a993-a49d1b14627c'.
    IncludeHistory bool
    Defines if the entity history is included in the response.

    • Constraints: The default value is false.
    Name string
    Name of the trusted profile to query.
    AccountId string
    Account ID to query for trusted profiles.
    Id string
    (String) the unique identifier of the trusted profile. Example:'Profile-94497d0d-2ac3-41bf-a993-a49d1b14627c'.
    IncludeHistory bool
    Defines if the entity history is included in the response.

    • Constraints: The default value is false.
    Name string
    Name of the trusted profile to query.
    accountId String
    Account ID to query for trusted profiles.
    id String
    (String) the unique identifier of the trusted profile. Example:'Profile-94497d0d-2ac3-41bf-a993-a49d1b14627c'.
    includeHistory Boolean
    Defines if the entity history is included in the response.

    • Constraints: The default value is false.
    name String
    Name of the trusted profile to query.
    accountId string
    Account ID to query for trusted profiles.
    id string
    (String) the unique identifier of the trusted profile. Example:'Profile-94497d0d-2ac3-41bf-a993-a49d1b14627c'.
    includeHistory boolean
    Defines if the entity history is included in the response.

    • Constraints: The default value is false.
    name string
    Name of the trusted profile to query.
    account_id str
    Account ID to query for trusted profiles.
    id str
    (String) the unique identifier of the trusted profile. Example:'Profile-94497d0d-2ac3-41bf-a993-a49d1b14627c'.
    include_history bool
    Defines if the entity history is included in the response.

    • Constraints: The default value is false.
    name str
    Name of the trusted profile to query.
    accountId String
    Account ID to query for trusted profiles.
    id String
    (String) the unique identifier of the trusted profile. Example:'Profile-94497d0d-2ac3-41bf-a993-a49d1b14627c'.
    includeHistory Boolean
    Defines if the entity history is included in the response.

    • Constraints: The default value is false.
    name String
    Name of the trusted profile to query.

    getIamTrustedProfiles Result

    The following output properties are available:

    AccountId string
    (String) ID of the account that this trusted profile belong to.
    Id string
    (String) the unique identifier of the trusted profile. Example:'Profile-94497d0d-2ac3-41bf-a993-a49d1b14627c'.
    Profiles List<GetIamTrustedProfilesProfile>
    (List) List of trusted profiles. Nested schema for profiles:
    IncludeHistory bool
    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.
    AccountId string
    (String) ID of the account that this trusted profile belong to.
    Id string
    (String) the unique identifier of the trusted profile. Example:'Profile-94497d0d-2ac3-41bf-a993-a49d1b14627c'.
    Profiles []GetIamTrustedProfilesProfile
    (List) List of trusted profiles. Nested schema for profiles:
    IncludeHistory bool
    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.
    accountId String
    (String) ID of the account that this trusted profile belong to.
    id String
    (String) the unique identifier of the trusted profile. Example:'Profile-94497d0d-2ac3-41bf-a993-a49d1b14627c'.
    profiles List<GetIamTrustedProfilesProfile>
    (List) List of trusted profiles. Nested schema for profiles:
    includeHistory Boolean
    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.
    accountId string
    (String) ID of the account that this trusted profile belong to.
    id string
    (String) the unique identifier of the trusted profile. Example:'Profile-94497d0d-2ac3-41bf-a993-a49d1b14627c'.
    profiles GetIamTrustedProfilesProfile[]
    (List) List of trusted profiles. Nested schema for profiles:
    includeHistory boolean
    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.
    account_id str
    (String) ID of the account that this trusted profile belong to.
    id str
    (String) the unique identifier of the trusted profile. Example:'Profile-94497d0d-2ac3-41bf-a993-a49d1b14627c'.
    profiles Sequence[GetIamTrustedProfilesProfile]
    (List) List of trusted profiles. Nested schema for profiles:
    include_history bool
    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.
    accountId String
    (String) ID of the account that this trusted profile belong to.
    id String
    (String) the unique identifier of the trusted profile. Example:'Profile-94497d0d-2ac3-41bf-a993-a49d1b14627c'.
    profiles List<Property Map>
    (List) List of trusted profiles. Nested schema for profiles:
    includeHistory Boolean
    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.

    Supporting Types

    GetIamTrustedProfilesProfile

    AccountId string
    Account ID to query for trusted profiles.
    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<GetIamTrustedProfilesProfileHistory>
    (List) History of the trusted profile. Nested schema for history:
    IamId string
    (String) The iam_id of this trusted profile.
    Id string
    (String) the unique identifier of the trusted profile. Example:'Profile-94497d0d-2ac3-41bf-a993-a49d1b14627c'.
    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
    Name of the trusted profile to query.
    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
    Account ID to query for trusted profiles.
    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 []GetIamTrustedProfilesProfileHistory
    (List) History of the trusted profile. Nested schema for history:
    IamId string
    (String) The iam_id of this trusted profile.
    Id string
    (String) the unique identifier of the trusted profile. Example:'Profile-94497d0d-2ac3-41bf-a993-a49d1b14627c'.
    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
    Name of the trusted profile to query.
    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
    Account ID to query for trusted profiles.
    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<GetIamTrustedProfilesProfileHistory>
    (List) History of the trusted profile. Nested schema for history:
    iamId String
    (String) The iam_id of this trusted profile.
    id String
    (String) the unique identifier of the trusted profile. Example:'Profile-94497d0d-2ac3-41bf-a993-a49d1b14627c'.
    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
    Name of the trusted profile to query.
    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
    Account ID to query for trusted profiles.
    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 GetIamTrustedProfilesProfileHistory[]
    (List) History of the trusted profile. Nested schema for history:
    iamId string
    (String) The iam_id of this trusted profile.
    id string
    (String) the unique identifier of the trusted profile. Example:'Profile-94497d0d-2ac3-41bf-a993-a49d1b14627c'.
    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
    Name of the trusted profile to query.
    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
    Account ID to query for trusted profiles.
    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[GetIamTrustedProfilesProfileHistory]
    (List) History of the trusted profile. Nested schema for history:
    iam_id str
    (String) The iam_id of this trusted profile.
    id str
    (String) the unique identifier of the trusted profile. Example:'Profile-94497d0d-2ac3-41bf-a993-a49d1b14627c'.
    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
    Name of the trusted profile to query.
    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
    Account ID to query for trusted profiles.
    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
    (String) the unique identifier of the trusted profile. Example:'Profile-94497d0d-2ac3-41bf-a993-a49d1b14627c'.
    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
    Name of the trusted profile to query.
    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.

    GetIamTrustedProfilesProfileHistory

    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