ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getIamTrustedProfiles
Explore with Pulumi AI
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:
- Account
Id 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'.
- Include
History bool - Defines if the entity history is included in the response.
- Constraints: The default value is
false
.
- Constraints: The default value is
- Name string
- Name of the trusted profile to query.
- Account
Id 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'.
- Include
History bool - Defines if the entity history is included in the response.
- Constraints: The default value is
false
.
- Constraints: The default value is
- Name string
- Name of the trusted profile to query.
- account
Id 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'.
- include
History Boolean - Defines if the entity history is included in the response.
- Constraints: The default value is
false
.
- Constraints: The default value is
- name String
- Name of the trusted profile to query.
- account
Id 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'.
- include
History boolean - Defines if the entity history is included in the response.
- Constraints: The default value is
false
.
- Constraints: The default value is
- 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
.
- Constraints: The default value is
- name str
- Name of the trusted profile to query.
- account
Id 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'.
- include
History Boolean - Defines if the entity history is included in the response.
- Constraints: The default value is
false
.
- Constraints: The default value is
- name String
- Name of the trusted profile to query.
getIamTrustedProfiles Result
The following output properties are available:
- Account
Id 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<Get
Iam Trusted Profiles Profile> - (List) List of trusted profiles. Nested schema for profiles:
- Include
History 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.
- Account
Id 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
[]Get
Iam Trusted Profiles Profile - (List) List of trusted profiles. Nested schema for profiles:
- Include
History 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.
- account
Id 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<Get
Iam Trusted Profiles Profile> - (List) List of trusted profiles. Nested schema for profiles:
- include
History 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 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
Get
Iam Trusted Profiles Profile[] - (List) List of trusted profiles. Nested schema for profiles:
- include
History 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[Get
Iam Trusted Profiles Profile] - (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.
- account
Id 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:
- include
History 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
- Account
Id string - Account ID to query for trusted profiles.
- Assignment
Id 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.
- Created
At 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.
- Entity
Tag 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<Get
Iam Trusted Profiles Profile History> - (List) History of the trusted profile. Nested schema for history:
- Iam
Id 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'.
- Ims
Account doubleId - (Integer) IMS acount ID of the trusted profile.
- Ims
User doubleId - (Integer) IMS user ID of the trusted profile.
- Modified
At 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.
- Template
Id 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 string - Account ID to query for trusted profiles.
- Assignment
Id 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.
- Created
At 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.
- Entity
Tag 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
[]Get
Iam Trusted Profiles Profile History - (List) History of the trusted profile. Nested schema for history:
- Iam
Id 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'.
- Ims
Account float64Id - (Integer) IMS acount ID of the trusted profile.
- Ims
User float64Id - (Integer) IMS user ID of the trusted profile.
- Modified
At 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.
- Template
Id 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 String - Account ID to query for trusted profiles.
- assignment
Id 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.
- created
At 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.
- entity
Tag 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<Get
Iam Trusted Profiles Profile History> - (List) History of the trusted profile. Nested schema for history:
- iam
Id 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'.
- ims
Account DoubleId - (Integer) IMS acount ID of the trusted profile.
- ims
User DoubleId - (Integer) IMS user ID of the trusted profile.
- modified
At 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.
- template
Id 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 string - Account ID to query for trusted profiles.
- assignment
Id 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.
- created
At 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.
- entity
Tag 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
Get
Iam Trusted Profiles Profile History[] - (List) History of the trusted profile. Nested schema for history:
- iam
Id 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'.
- ims
Account numberId - (Integer) IMS acount ID of the trusted profile.
- ims
User numberId - (Integer) IMS user ID of the trusted profile.
- modified
At 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.
- template
Id 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[Get
Iam Trusted Profiles Profile History] - (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_ floatid - (Integer) IMS acount ID of the trusted profile.
- ims_
user_ floatid - (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.
- account
Id String - Account ID to query for trusted profiles.
- assignment
Id 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.
- created
At 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.
- entity
Tag 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:
- iam
Id 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'.
- ims
Account NumberId - (Integer) IMS acount ID of the trusted profile.
- ims
User NumberId - (Integer) IMS user ID of the trusted profile.
- modified
At 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.
- template
Id 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.
- Iam
Id string - (String) The iam_id of this trusted profile.
- Iam
Id stringAccount - (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.
- Iam
Id string - (String) The iam_id of this trusted profile.
- Iam
Id stringAccount - (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.
- iam
Id String - (String) The iam_id of this trusted profile.
- iam
Id StringAccount - (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.
- iam
Id string - (String) The iam_id of this trusted profile.
- iam
Id stringAccount - (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_ straccount - (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.
- iam
Id String - (String) The iam_id of this trusted profile.
- iam
Id StringAccount - (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.