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

ibm.getIamTrustedProfileClaimRule

Explore with Pulumi AI

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

    Retrieve information about IAM trusted profile claim rule 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 claim rules, see Create claim rule for a trusted profile

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const iamTrustedProfileClaimRule = ibm.getIamTrustedProfileClaimRule({
        profileId: ibm_iam_trusted_profile_claim_rule.iam_trusted_profile_claim_rule.profile_id,
        ruleId: ibm_iam_trusted_profile_claim_rule.iam_trusted_profile_claim_rule.rule_id,
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    iam_trusted_profile_claim_rule = ibm.get_iam_trusted_profile_claim_rule(profile_id=ibm_iam_trusted_profile_claim_rule["iam_trusted_profile_claim_rule"]["profile_id"],
        rule_id=ibm_iam_trusted_profile_claim_rule["iam_trusted_profile_claim_rule"]["rule_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.LookupIamTrustedProfileClaimRule(ctx, &ibm.LookupIamTrustedProfileClaimRuleArgs{
    			ProfileId: ibm_iam_trusted_profile_claim_rule.Iam_trusted_profile_claim_rule.Profile_id,
    			RuleId:    ibm_iam_trusted_profile_claim_rule.Iam_trusted_profile_claim_rule.Rule_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 iamTrustedProfileClaimRule = Ibm.GetIamTrustedProfileClaimRule.Invoke(new()
        {
            ProfileId = ibm_iam_trusted_profile_claim_rule.Iam_trusted_profile_claim_rule.Profile_id,
            RuleId = ibm_iam_trusted_profile_claim_rule.Iam_trusted_profile_claim_rule.Rule_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.GetIamTrustedProfileClaimRuleArgs;
    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 iamTrustedProfileClaimRule = IbmFunctions.getIamTrustedProfileClaimRule(GetIamTrustedProfileClaimRuleArgs.builder()
                .profileId(ibm_iam_trusted_profile_claim_rule.iam_trusted_profile_claim_rule().profile_id())
                .ruleId(ibm_iam_trusted_profile_claim_rule.iam_trusted_profile_claim_rule().rule_id())
                .build());
    
        }
    }
    
    variables:
      iamTrustedProfileClaimRule:
        fn::invoke:
          function: ibm:getIamTrustedProfileClaimRule
          arguments:
            profileId: ${ibm_iam_trusted_profile_claim_rule.iam_trusted_profile_claim_rule.profile_id}
            ruleId: ${ibm_iam_trusted_profile_claim_rule.iam_trusted_profile_claim_rule.rule_id}
    

    Using getIamTrustedProfileClaimRule

    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 getIamTrustedProfileClaimRule(args: GetIamTrustedProfileClaimRuleArgs, opts?: InvokeOptions): Promise<GetIamTrustedProfileClaimRuleResult>
    function getIamTrustedProfileClaimRuleOutput(args: GetIamTrustedProfileClaimRuleOutputArgs, opts?: InvokeOptions): Output<GetIamTrustedProfileClaimRuleResult>
    def get_iam_trusted_profile_claim_rule(id: Optional[str] = None,
                                           profile_id: Optional[str] = None,
                                           rule_id: Optional[str] = None,
                                           opts: Optional[InvokeOptions] = None) -> GetIamTrustedProfileClaimRuleResult
    def get_iam_trusted_profile_claim_rule_output(id: Optional[pulumi.Input[str]] = None,
                                           profile_id: Optional[pulumi.Input[str]] = None,
                                           rule_id: Optional[pulumi.Input[str]] = None,
                                           opts: Optional[InvokeOptions] = None) -> Output[GetIamTrustedProfileClaimRuleResult]
    func LookupIamTrustedProfileClaimRule(ctx *Context, args *LookupIamTrustedProfileClaimRuleArgs, opts ...InvokeOption) (*LookupIamTrustedProfileClaimRuleResult, error)
    func LookupIamTrustedProfileClaimRuleOutput(ctx *Context, args *LookupIamTrustedProfileClaimRuleOutputArgs, opts ...InvokeOption) LookupIamTrustedProfileClaimRuleResultOutput

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

    public static class GetIamTrustedProfileClaimRule 
    {
        public static Task<GetIamTrustedProfileClaimRuleResult> InvokeAsync(GetIamTrustedProfileClaimRuleArgs args, InvokeOptions? opts = null)
        public static Output<GetIamTrustedProfileClaimRuleResult> Invoke(GetIamTrustedProfileClaimRuleInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIamTrustedProfileClaimRuleResult> getIamTrustedProfileClaimRule(GetIamTrustedProfileClaimRuleArgs args, InvokeOptions options)
    public static Output<GetIamTrustedProfileClaimRuleResult> getIamTrustedProfileClaimRule(GetIamTrustedProfileClaimRuleArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getIamTrustedProfileClaimRule:getIamTrustedProfileClaimRule
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ProfileId string
    The ID of the trusted profile.
    RuleId string
    ID of the claim rule to fetch.
    Id string
    (String) Id is combination of profile_id/ rule_id.
    ProfileId string
    The ID of the trusted profile.
    RuleId string
    ID of the claim rule to fetch.
    Id string
    (String) Id is combination of profile_id/ rule_id.
    profileId String
    The ID of the trusted profile.
    ruleId String
    ID of the claim rule to fetch.
    id String
    (String) Id is combination of profile_id/ rule_id.
    profileId string
    The ID of the trusted profile.
    ruleId string
    ID of the claim rule to fetch.
    id string
    (String) Id is combination of profile_id/ rule_id.
    profile_id str
    The ID of the trusted profile.
    rule_id str
    ID of the claim rule to fetch.
    id str
    (String) Id is combination of profile_id/ rule_id.
    profileId String
    The ID of the trusted profile.
    ruleId String
    ID of the claim rule to fetch.
    id String
    (String) Id is combination of profile_id/ rule_id.

    getIamTrustedProfileClaimRule Result

    The following output properties are available:

    Conditions List<GetIamTrustedProfileClaimRuleCondition>
    (List) Conditions of this claim rule. Nested scheme for conditions:
    CrType string
    (String) The compute resource type. The compute resource type not required if type is set as Profile-SAML. 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) The version of the claim rule.
    Expiration double
    (Integer) The session expiration in seconds.
    Id string
    (String) Id is combination of profile_id/ rule_id.
    ModifiedAt string
    (String) If set contains a date time string of the last modification date in ISO format.
    Name string
    (String) The optional claim rule name.
    ProfileId string
    RealmName string
    (String) The realm name of the Identity Provider(Idp) this claim rule applies to.
    RuleId string
    Type string
    (String) Type of the Calim rule. Supported values are Profile-SAML or Profile-CR.
    Conditions []GetIamTrustedProfileClaimRuleCondition
    (List) Conditions of this claim rule. Nested scheme for conditions:
    CrType string
    (String) The compute resource type. The compute resource type not required if type is set as Profile-SAML. 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) The version of the claim rule.
    Expiration float64
    (Integer) The session expiration in seconds.
    Id string
    (String) Id is combination of profile_id/ rule_id.
    ModifiedAt string
    (String) If set contains a date time string of the last modification date in ISO format.
    Name string
    (String) The optional claim rule name.
    ProfileId string
    RealmName string
    (String) The realm name of the Identity Provider(Idp) this claim rule applies to.
    RuleId string
    Type string
    (String) Type of the Calim rule. Supported values are Profile-SAML or Profile-CR.
    conditions List<GetIamTrustedProfileClaimRuleCondition>
    (List) Conditions of this claim rule. Nested scheme for conditions:
    crType String
    (String) The compute resource type. The compute resource type not required if type is set as Profile-SAML. 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) The version of the claim rule.
    expiration Double
    (Integer) The session expiration in seconds.
    id String
    (String) Id is combination of profile_id/ rule_id.
    modifiedAt String
    (String) If set contains a date time string of the last modification date in ISO format.
    name String
    (String) The optional claim rule name.
    profileId String
    realmName String
    (String) The realm name of the Identity Provider(Idp) this claim rule applies to.
    ruleId String
    type String
    (String) Type of the Calim rule. Supported values are Profile-SAML or Profile-CR.
    conditions GetIamTrustedProfileClaimRuleCondition[]
    (List) Conditions of this claim rule. Nested scheme for conditions:
    crType string
    (String) The compute resource type. The compute resource type not required if type is set as Profile-SAML. 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) The version of the claim rule.
    expiration number
    (Integer) The session expiration in seconds.
    id string
    (String) Id is combination of profile_id/ rule_id.
    modifiedAt string
    (String) If set contains a date time string of the last modification date in ISO format.
    name string
    (String) The optional claim rule name.
    profileId string
    realmName string
    (String) The realm name of the Identity Provider(Idp) this claim rule applies to.
    ruleId string
    type string
    (String) Type of the Calim rule. Supported values are Profile-SAML or Profile-CR.
    conditions Sequence[GetIamTrustedProfileClaimRuleCondition]
    (List) Conditions of this claim rule. Nested scheme for conditions:
    cr_type str
    (String) The compute resource type. The compute resource type not required if type is set as Profile-SAML. 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) The version of the claim rule.
    expiration float
    (Integer) The session expiration in seconds.
    id str
    (String) Id is combination of profile_id/ rule_id.
    modified_at str
    (String) If set contains a date time string of the last modification date in ISO format.
    name str
    (String) The optional claim rule name.
    profile_id str
    realm_name str
    (String) The realm name of the Identity Provider(Idp) this claim rule applies to.
    rule_id str
    type str
    (String) Type of the Calim rule. Supported values are Profile-SAML or Profile-CR.
    conditions List<Property Map>
    (List) Conditions of this claim rule. Nested scheme for conditions:
    crType String
    (String) The compute resource type. The compute resource type not required if type is set as Profile-SAML. 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) The version of the claim rule.
    expiration Number
    (Integer) The session expiration in seconds.
    id String
    (String) Id is combination of profile_id/ rule_id.
    modifiedAt String
    (String) If set contains a date time string of the last modification date in ISO format.
    name String
    (String) The optional claim rule name.
    profileId String
    realmName String
    (String) The realm name of the Identity Provider(Idp) this claim rule applies to.
    ruleId String
    type String
    (String) Type of the Calim rule. Supported values are Profile-SAML or Profile-CR.

    Supporting Types

    GetIamTrustedProfileClaimRuleCondition

    Claim string
    (String) The claim to evaluate against.
    Operator string
    (String) The operation to perform on the claim. Supported values are EQUALS, NOT_EQUALS, EQUALS_IGNORE_CASE, NOT_EQUALS_IGNORE_CASE, CONTAINS, IN.
    Value string
    (String) The stringified JSON value that the claim is compared to using the operator.
    Claim string
    (String) The claim to evaluate against.
    Operator string
    (String) The operation to perform on the claim. Supported values are EQUALS, NOT_EQUALS, EQUALS_IGNORE_CASE, NOT_EQUALS_IGNORE_CASE, CONTAINS, IN.
    Value string
    (String) The stringified JSON value that the claim is compared to using the operator.
    claim String
    (String) The claim to evaluate against.
    operator String
    (String) The operation to perform on the claim. Supported values are EQUALS, NOT_EQUALS, EQUALS_IGNORE_CASE, NOT_EQUALS_IGNORE_CASE, CONTAINS, IN.
    value String
    (String) The stringified JSON value that the claim is compared to using the operator.
    claim string
    (String) The claim to evaluate against.
    operator string
    (String) The operation to perform on the claim. Supported values are EQUALS, NOT_EQUALS, EQUALS_IGNORE_CASE, NOT_EQUALS_IGNORE_CASE, CONTAINS, IN.
    value string
    (String) The stringified JSON value that the claim is compared to using the operator.
    claim str
    (String) The claim to evaluate against.
    operator str
    (String) The operation to perform on the claim. Supported values are EQUALS, NOT_EQUALS, EQUALS_IGNORE_CASE, NOT_EQUALS_IGNORE_CASE, CONTAINS, IN.
    value str
    (String) The stringified JSON value that the claim is compared to using the operator.
    claim String
    (String) The claim to evaluate against.
    operator String
    (String) The operation to perform on the claim. Supported values are EQUALS, NOT_EQUALS, EQUALS_IGNORE_CASE, NOT_EQUALS_IGNORE_CASE, CONTAINS, IN.
    value String
    (String) The stringified JSON value that the claim is compared to using the operator.

    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