ibm 1.83.2 published on Tuesday, Oct 7, 2025 by ibm-cloud
ibm.getIamTrustedProfileLink
Explore with Pulumi AI
Provides a read-only data source to retrieve information about an iam_trusted_profile_link. 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 iamTrustedProfileLink = ibm.getIamTrustedProfileLink({
linkId: ibm_iam_trusted_profile_link.iam_trusted_profile_link_instance.link_id,
profileId: ibm_iam_trusted_profile_link.iam_trusted_profile_link_instance.profile_id,
});
import pulumi
import pulumi_ibm as ibm
iam_trusted_profile_link = ibm.get_iam_trusted_profile_link(link_id=ibm_iam_trusted_profile_link["iam_trusted_profile_link_instance"]["link_id"],
profile_id=ibm_iam_trusted_profile_link["iam_trusted_profile_link_instance"]["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.LookupIamTrustedProfileLink(ctx, &ibm.LookupIamTrustedProfileLinkArgs{
LinkId: ibm_iam_trusted_profile_link.Iam_trusted_profile_link_instance.Link_id,
ProfileId: ibm_iam_trusted_profile_link.Iam_trusted_profile_link_instance.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 iamTrustedProfileLink = Ibm.GetIamTrustedProfileLink.Invoke(new()
{
LinkId = ibm_iam_trusted_profile_link.Iam_trusted_profile_link_instance.Link_id,
ProfileId = ibm_iam_trusted_profile_link.Iam_trusted_profile_link_instance.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.GetIamTrustedProfileLinkArgs;
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 iamTrustedProfileLink = IbmFunctions.getIamTrustedProfileLink(GetIamTrustedProfileLinkArgs.builder()
.linkId(ibm_iam_trusted_profile_link.iam_trusted_profile_link_instance().link_id())
.profileId(ibm_iam_trusted_profile_link.iam_trusted_profile_link_instance().profile_id())
.build());
}
}
variables:
iamTrustedProfileLink:
fn::invoke:
function: ibm:getIamTrustedProfileLink
arguments:
linkId: ${ibm_iam_trusted_profile_link.iam_trusted_profile_link_instance.link_id}
profileId: ${ibm_iam_trusted_profile_link.iam_trusted_profile_link_instance.profile_id}
Using getIamTrustedProfileLink
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 getIamTrustedProfileLink(args: GetIamTrustedProfileLinkArgs, opts?: InvokeOptions): Promise<GetIamTrustedProfileLinkResult>
function getIamTrustedProfileLinkOutput(args: GetIamTrustedProfileLinkOutputArgs, opts?: InvokeOptions): Output<GetIamTrustedProfileLinkResult>
def get_iam_trusted_profile_link(id: Optional[str] = None,
link_id: Optional[str] = None,
profile_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIamTrustedProfileLinkResult
def get_iam_trusted_profile_link_output(id: Optional[pulumi.Input[str]] = None,
link_id: Optional[pulumi.Input[str]] = None,
profile_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIamTrustedProfileLinkResult]
func LookupIamTrustedProfileLink(ctx *Context, args *LookupIamTrustedProfileLinkArgs, opts ...InvokeOption) (*LookupIamTrustedProfileLinkResult, error)
func LookupIamTrustedProfileLinkOutput(ctx *Context, args *LookupIamTrustedProfileLinkOutputArgs, opts ...InvokeOption) LookupIamTrustedProfileLinkResultOutput
> Note: This function is named LookupIamTrustedProfileLink
in the Go SDK.
public static class GetIamTrustedProfileLink
{
public static Task<GetIamTrustedProfileLinkResult> InvokeAsync(GetIamTrustedProfileLinkArgs args, InvokeOptions? opts = null)
public static Output<GetIamTrustedProfileLinkResult> Invoke(GetIamTrustedProfileLinkInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIamTrustedProfileLinkResult> getIamTrustedProfileLink(GetIamTrustedProfileLinkArgs args, InvokeOptions options)
public static Output<GetIamTrustedProfileLinkResult> getIamTrustedProfileLink(GetIamTrustedProfileLinkArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getIamTrustedProfileLink:getIamTrustedProfileLink
arguments:
# arguments dictionary
The following arguments are supported:
- link_
id str - ID of the link.
- profile_
id str - ID of the trusted profile.
- id str
- The unique identifier of the iam_trusted_profile_link.
getIamTrustedProfileLink Result
The following output properties are available:
- Cr
Type string - (String) The compute resource type. Valid values are VSI, BMS, IKS_SA, ROKS_SA, CE.
- Created
At string - (String) If set contains a date time string of the creation date in ISO format.
- Entity
Tag string - (String) version of the link.
- Id string
- The unique identifier of the iam_trusted_profile_link.
- Link
Id string - Links
List<Get
Iam Trusted Profile Link Link> - (List) Nested schema for link:
- Modified
At string - (String) If set contains a date time string of the last modification date in ISO format.
- Name string
- (String) Optional name of the Link.
- Profile
Id string
- Cr
Type string - (String) The compute resource type. Valid values are VSI, BMS, IKS_SA, ROKS_SA, CE.
- Created
At string - (String) If set contains a date time string of the creation date in ISO format.
- Entity
Tag string - (String) version of the link.
- Id string
- The unique identifier of the iam_trusted_profile_link.
- Link
Id string - Links
[]Get
Iam Trusted Profile Link Link - (List) Nested schema for link:
- Modified
At string - (String) If set contains a date time string of the last modification date in ISO format.
- Name string
- (String) Optional name of the Link.
- Profile
Id string
- cr
Type String - (String) The compute resource type. Valid values are VSI, BMS, IKS_SA, ROKS_SA, CE.
- created
At String - (String) If set contains a date time string of the creation date in ISO format.
- entity
Tag String - (String) version of the link.
- id String
- The unique identifier of the iam_trusted_profile_link.
- link
Id String - links
List<Get
Iam Trusted Profile Link Link> - (List) Nested schema for link:
- modified
At String - (String) If set contains a date time string of the last modification date in ISO format.
- name String
- (String) Optional name of the Link.
- profile
Id String
- cr
Type string - (String) The compute resource type. Valid values are VSI, BMS, IKS_SA, ROKS_SA, CE.
- created
At string - (String) If set contains a date time string of the creation date in ISO format.
- entity
Tag string - (String) version of the link.
- id string
- The unique identifier of the iam_trusted_profile_link.
- link
Id string - links
Get
Iam Trusted Profile Link Link[] - (List) Nested schema for link:
- modified
At string - (String) If set contains a date time string of the last modification date in ISO format.
- name string
- (String) Optional name of the Link.
- profile
Id string
- cr_
type str - (String) The compute resource type. Valid values are VSI, BMS, IKS_SA, ROKS_SA, CE.
- created_
at str - (String) If set contains a date time string of the creation date in ISO format.
- entity_
tag str - (String) version of the link.
- id str
- The unique identifier of the iam_trusted_profile_link.
- link_
id str - links
Sequence[Get
Iam Trusted Profile Link Link] - (List) Nested schema for link:
- modified_
at str - (String) If set contains a date time string of the last modification date in ISO format.
- name str
- (String) Optional name of the Link.
- profile_
id str
- cr
Type String - (String) The compute resource type. Valid values are VSI, BMS, IKS_SA, ROKS_SA, CE.
- created
At String - (String) If set contains a date time string of the creation date in ISO format.
- entity
Tag String - (String) version of the link.
- id String
- The unique identifier of the iam_trusted_profile_link.
- link
Id String - links List<Property Map>
- (List) Nested schema for link:
- modified
At String - (String) If set contains a date time string of the last modification date in ISO format.
- name String
- (String) Optional name of the Link.
- profile
Id String
Supporting Types
GetIamTrustedProfileLinkLink
- Component
Name string - (String) Component name of the compute resource, only required if cr_type is CE.
- Component
Type string - (String) Component type of the compute resource, only required if cr_type is CE.
- Crn string
- (String) The CRN of the compute resource.
- Name string
- (String) Optional name of the Link.
- Namespace string
- (String) The compute resource namespace, only required if cr_type is IKS_SA or ROKS_SA.
- Component
Name string - (String) Component name of the compute resource, only required if cr_type is CE.
- Component
Type string - (String) Component type of the compute resource, only required if cr_type is CE.
- Crn string
- (String) The CRN of the compute resource.
- Name string
- (String) Optional name of the Link.
- Namespace string
- (String) The compute resource namespace, only required if cr_type is IKS_SA or ROKS_SA.
- component
Name String - (String) Component name of the compute resource, only required if cr_type is CE.
- component
Type String - (String) Component type of the compute resource, only required if cr_type is CE.
- crn String
- (String) The CRN of the compute resource.
- name String
- (String) Optional name of the Link.
- namespace String
- (String) The compute resource namespace, only required if cr_type is IKS_SA or ROKS_SA.
- component
Name string - (String) Component name of the compute resource, only required if cr_type is CE.
- component
Type string - (String) Component type of the compute resource, only required if cr_type is CE.
- crn string
- (String) The CRN of the compute resource.
- name string
- (String) Optional name of the Link.
- namespace string
- (String) The compute resource namespace, only required if cr_type is IKS_SA or ROKS_SA.
- component_
name str - (String) Component name of the compute resource, only required if cr_type is CE.
- component_
type str - (String) Component type of the compute resource, only required if cr_type is CE.
- crn str
- (String) The CRN of the compute resource.
- name str
- (String) Optional name of the Link.
- namespace str
- (String) The compute resource namespace, only required if cr_type is IKS_SA or ROKS_SA.
- component
Name String - (String) Component name of the compute resource, only required if cr_type is CE.
- component
Type String - (String) Component type of the compute resource, only required if cr_type is CE.
- crn String
- (String) The CRN of the compute resource.
- name String
- (String) Optional name of the Link.
- namespace String
- (String) The compute resource namespace, only required if cr_type is IKS_SA or ROKS_SA.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.