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

ibm.getIamTrustedProfileLinks

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Retrieve list of IAM trusted profile link as a read-only data source. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax. For more information, about trusted profile link, see list link to a trusted profile

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const iamTrustedProfileLinks = ibm.getIamTrustedProfileLinks({
        profileId: "profile_id",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    iam_trusted_profile_links = ibm.get_iam_trusted_profile_links(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.GetIamTrustedProfileLinks(ctx, &ibm.GetIamTrustedProfileLinksArgs{
    			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 iamTrustedProfileLinks = Ibm.GetIamTrustedProfileLinks.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.GetIamTrustedProfileLinksArgs;
    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 iamTrustedProfileLinks = IbmFunctions.getIamTrustedProfileLinks(GetIamTrustedProfileLinksArgs.builder()
                .profileId("profile_id")
                .build());
    
        }
    }
    
    variables:
      iamTrustedProfileLinks:
        fn::invoke:
          function: ibm:getIamTrustedProfileLinks
          arguments:
            profileId: profile_id
    

    Using getIamTrustedProfileLinks

    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 getIamTrustedProfileLinks(args: GetIamTrustedProfileLinksArgs, opts?: InvokeOptions): Promise<GetIamTrustedProfileLinksResult>
    function getIamTrustedProfileLinksOutput(args: GetIamTrustedProfileLinksOutputArgs, opts?: InvokeOptions): Output<GetIamTrustedProfileLinksResult>
    def get_iam_trusted_profile_links(id: Optional[str] = None,
                                      profile_id: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetIamTrustedProfileLinksResult
    def get_iam_trusted_profile_links_output(id: Optional[pulumi.Input[str]] = None,
                                      profile_id: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetIamTrustedProfileLinksResult]
    func GetIamTrustedProfileLinks(ctx *Context, args *GetIamTrustedProfileLinksArgs, opts ...InvokeOption) (*GetIamTrustedProfileLinksResult, error)
    func GetIamTrustedProfileLinksOutput(ctx *Context, args *GetIamTrustedProfileLinksOutputArgs, opts ...InvokeOption) GetIamTrustedProfileLinksResultOutput

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

    public static class GetIamTrustedProfileLinks 
    {
        public static Task<GetIamTrustedProfileLinksResult> InvokeAsync(GetIamTrustedProfileLinksArgs args, InvokeOptions? opts = null)
        public static Output<GetIamTrustedProfileLinksResult> Invoke(GetIamTrustedProfileLinksInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIamTrustedProfileLinksResult> getIamTrustedProfileLinks(GetIamTrustedProfileLinksArgs args, InvokeOptions options)
    public static Output<GetIamTrustedProfileLinksResult> getIamTrustedProfileLinks(GetIamTrustedProfileLinksArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getIamTrustedProfileLinks:getIamTrustedProfileLinks
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ProfileId string
    ID of the trusted profile.
    Id string
    (String) the unique identifier of the claim rule.
    ProfileId string
    ID of the trusted profile.
    Id string
    (String) the unique identifier of the claim rule.
    profileId String
    ID of the trusted profile.
    id String
    (String) the unique identifier of the claim rule.
    profileId string
    ID of the trusted profile.
    id string
    (String) the unique identifier of the claim rule.
    profile_id str
    ID of the trusted profile.
    id str
    (String) the unique identifier of the claim rule.
    profileId String
    ID of the trusted profile.
    id String
    (String) the unique identifier of the claim rule.

    getIamTrustedProfileLinks Result

    The following output properties are available:

    Id string
    (String) the unique identifier of the claim rule.
    Links List<GetIamTrustedProfileLinksLink>
    (List) List of links to a trusted profile. Nested scheme for links:
    ProfileId string
    Id string
    (String) the unique identifier of the claim rule.
    Links []GetIamTrustedProfileLinksLink
    (List) List of links to a trusted profile. Nested scheme for links:
    ProfileId string
    id String
    (String) the unique identifier of the claim rule.
    links List<GetIamTrustedProfileLinksLink>
    (List) List of links to a trusted profile. Nested scheme for links:
    profileId String
    id string
    (String) the unique identifier of the claim rule.
    links GetIamTrustedProfileLinksLink[]
    (List) List of links to a trusted profile. Nested scheme for links:
    profileId string
    id str
    (String) the unique identifier of the claim rule.
    links Sequence[GetIamTrustedProfileLinksLink]
    (List) List of links to a trusted profile. Nested scheme for links:
    profile_id str
    id String
    (String) the unique identifier of the claim rule.
    links List<Property Map>
    (List) List of links to a trusted profile. Nested scheme for links:
    profileId String

    Supporting Types

    CrType string
    (String) The compute resource type. Valid values are VSI, IKS_SA, ROKS_SA.
    CreatedAt string
    (String) If set contains a date time string of the creation date in ISO format.
    EntityTag string
    (String) version of the claim rule.
    Id string
    (String) the unique identifier of the claim rule.
    Links List<GetIamTrustedProfileLinksLinkLink>
    (List) Nested scheme for link:
    ModifiedAt 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.
    CrType string
    (String) The compute resource type. Valid values are VSI, IKS_SA, ROKS_SA.
    CreatedAt string
    (String) If set contains a date time string of the creation date in ISO format.
    EntityTag string
    (String) version of the claim rule.
    Id string
    (String) the unique identifier of the claim rule.
    Links []GetIamTrustedProfileLinksLinkLink
    (List) Nested scheme for link:
    ModifiedAt 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.
    crType String
    (String) The compute resource type. Valid values are VSI, IKS_SA, ROKS_SA.
    createdAt String
    (String) If set contains a date time string of the creation date in ISO format.
    entityTag String
    (String) version of the claim rule.
    id String
    (String) the unique identifier of the claim rule.
    links List<GetIamTrustedProfileLinksLinkLink>
    (List) Nested scheme for link:
    modifiedAt 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.
    crType string
    (String) The compute resource type. Valid values are VSI, IKS_SA, ROKS_SA.
    createdAt string
    (String) If set contains a date time string of the creation date in ISO format.
    entityTag string
    (String) version of the claim rule.
    id string
    (String) the unique identifier of the claim rule.
    links GetIamTrustedProfileLinksLinkLink[]
    (List) Nested scheme for link:
    modifiedAt 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.
    cr_type str
    (String) The compute resource type. Valid values are VSI, IKS_SA, ROKS_SA.
    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 claim rule.
    id str
    (String) the unique identifier of the claim rule.
    links Sequence[GetIamTrustedProfileLinksLinkLink]
    (List) Nested scheme 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.
    crType String
    (String) The compute resource type. Valid values are VSI, IKS_SA, ROKS_SA.
    createdAt String
    (String) If set contains a date time string of the creation date in ISO format.
    entityTag String
    (String) version of the claim rule.
    id String
    (String) the unique identifier of the claim rule.
    links List<Property Map>
    (List) Nested scheme for link:
    modifiedAt 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.
    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.
    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.
    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.
    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.
    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.
    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.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud