ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getIamTrustedProfile
Explore with Pulumi AI
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:
- profile_
id str - ID of the trusted profile to get.
- id str
- The unique identifier of the iam_trusted_profile.
getIamTrustedProfile Result
The following output properties are available:
- Account
Id string - (String) ID of the account that this trusted profile belong to.
- 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 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
- The unique identifier of the iam_trusted_profile.
- 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
- (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 string - 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 - (String) ID of the account that this trusted profile belong to.
- 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 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
- The unique identifier of the iam_trusted_profile.
- 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
- (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 string - 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 - (String) ID of the account that this trusted profile belong to.
- 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 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
- The unique identifier of the iam_trusted_profile.
- 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
- (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 String - 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 - (String) ID of the account that this trusted profile belong to.
- 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 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
- The unique identifier of the iam_trusted_profile.
- 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
- (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 string - 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 - (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[Get
Iam Trusted 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
- The unique identifier of the iam_trusted_profile.
- 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
- (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.
- account
Id String - (String) ID of the account that this trusted profile belong to.
- 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
- The unique identifier of the iam_trusted_profile.
- 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
- (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 String - 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.
Supporting Types
GetIamTrustedProfileHistory
- 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.