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

ibm.getIamTrustedProfileClaimRules

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 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 list claim rule for a trusted profile

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const iamTrustedProfilesClaimRules = ibm.getIamTrustedProfileClaimRules({
        profileId: "profile_id",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    iam_trusted_profiles_claim_rules = ibm.get_iam_trusted_profile_claim_rules(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.GetIamTrustedProfileClaimRules(ctx, &ibm.GetIamTrustedProfileClaimRulesArgs{
    			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 iamTrustedProfilesClaimRules = Ibm.GetIamTrustedProfileClaimRules.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.GetIamTrustedProfileClaimRulesArgs;
    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 iamTrustedProfilesClaimRules = IbmFunctions.getIamTrustedProfileClaimRules(GetIamTrustedProfileClaimRulesArgs.builder()
                .profileId("profile_id")
                .build());
    
        }
    }
    
    variables:
      iamTrustedProfilesClaimRules:
        fn::invoke:
          function: ibm:getIamTrustedProfileClaimRules
          arguments:
            profileId: profile_id
    

    Using getIamTrustedProfileClaimRules

    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 getIamTrustedProfileClaimRules(args: GetIamTrustedProfileClaimRulesArgs, opts?: InvokeOptions): Promise<GetIamTrustedProfileClaimRulesResult>
    function getIamTrustedProfileClaimRulesOutput(args: GetIamTrustedProfileClaimRulesOutputArgs, opts?: InvokeOptions): Output<GetIamTrustedProfileClaimRulesResult>
    def get_iam_trusted_profile_claim_rules(id: Optional[str] = None,
                                            profile_id: Optional[str] = None,
                                            opts: Optional[InvokeOptions] = None) -> GetIamTrustedProfileClaimRulesResult
    def get_iam_trusted_profile_claim_rules_output(id: Optional[pulumi.Input[str]] = None,
                                            profile_id: Optional[pulumi.Input[str]] = None,
                                            opts: Optional[InvokeOptions] = None) -> Output[GetIamTrustedProfileClaimRulesResult]
    func GetIamTrustedProfileClaimRules(ctx *Context, args *GetIamTrustedProfileClaimRulesArgs, opts ...InvokeOption) (*GetIamTrustedProfileClaimRulesResult, error)
    func GetIamTrustedProfileClaimRulesOutput(ctx *Context, args *GetIamTrustedProfileClaimRulesOutputArgs, opts ...InvokeOption) GetIamTrustedProfileClaimRulesResultOutput

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

    public static class GetIamTrustedProfileClaimRules 
    {
        public static Task<GetIamTrustedProfileClaimRulesResult> InvokeAsync(GetIamTrustedProfileClaimRulesArgs args, InvokeOptions? opts = null)
        public static Output<GetIamTrustedProfileClaimRulesResult> Invoke(GetIamTrustedProfileClaimRulesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIamTrustedProfileClaimRulesResult> getIamTrustedProfileClaimRules(GetIamTrustedProfileClaimRulesArgs args, InvokeOptions options)
    public static Output<GetIamTrustedProfileClaimRulesResult> getIamTrustedProfileClaimRules(GetIamTrustedProfileClaimRulesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getIamTrustedProfileClaimRules:getIamTrustedProfileClaimRules
      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.

    getIamTrustedProfileClaimRules Result

    The following output properties are available:

    Id string
    (String) the unique identifier of the claim rule.
    ProfileId string
    Rules List<GetIamTrustedProfileClaimRulesRule>
    (List) List of claim rules. Nested scheme for rules:
    Id string
    (String) the unique identifier of the claim rule.
    ProfileId string
    Rules []GetIamTrustedProfileClaimRulesRule
    (List) List of claim rules. Nested scheme for rules:
    id String
    (String) the unique identifier of the claim rule.
    profileId String
    rules List<GetIamTrustedProfileClaimRulesRule>
    (List) List of claim rules. Nested scheme for rules:
    id string
    (String) the unique identifier of the claim rule.
    profileId string
    rules GetIamTrustedProfileClaimRulesRule[]
    (List) List of claim rules. Nested scheme for rules:
    id str
    (String) the unique identifier of the claim rule.
    profile_id str
    rules Sequence[GetIamTrustedProfileClaimRulesRule]
    (List) List of claim rules. Nested scheme for rules:
    id String
    (String) the unique identifier of the claim rule.
    profileId String
    rules List<Property Map>
    (List) List of claim rules. Nested scheme for rules:

    Supporting Types

    GetIamTrustedProfileClaimRulesRule

    Conditions List<GetIamTrustedProfileClaimRulesRuleCondition>
    (List) Conditions of this claim rule. Nested scheme for conditions:
    CrType string
    (String) The compute resource type. Not required if type is 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) version of the claim rule.
    Expiration double
    (Integer) Session expiration in seconds.
    Id string
    (String) the unique identifier of the claim rule.
    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.
    RealmName string
    (String) The realm name of the Idp this claim rule applies to.
    Type string
    (String) Type of the Calim rule, either Profile-SAML or Profile-CR.
    Conditions []GetIamTrustedProfileClaimRulesRuleCondition
    (List) Conditions of this claim rule. Nested scheme for conditions:
    CrType string
    (String) The compute resource type. Not required if type is 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) version of the claim rule.
    Expiration float64
    (Integer) Session expiration in seconds.
    Id string
    (String) the unique identifier of the claim rule.
    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.
    RealmName string
    (String) The realm name of the Idp this claim rule applies to.
    Type string
    (String) Type of the Calim rule, either Profile-SAML or Profile-CR.
    conditions List<GetIamTrustedProfileClaimRulesRuleCondition>
    (List) Conditions of this claim rule. Nested scheme for conditions:
    crType String
    (String) The compute resource type. Not required if type is 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) version of the claim rule.
    expiration Double
    (Integer) Session expiration in seconds.
    id String
    (String) the unique identifier of the claim rule.
    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.
    realmName String
    (String) The realm name of the Idp this claim rule applies to.
    type String
    (String) Type of the Calim rule, either Profile-SAML or Profile-CR.
    conditions GetIamTrustedProfileClaimRulesRuleCondition[]
    (List) Conditions of this claim rule. Nested scheme for conditions:
    crType string
    (String) The compute resource type. Not required if type is 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) version of the claim rule.
    expiration number
    (Integer) Session expiration in seconds.
    id string
    (String) the unique identifier of the claim rule.
    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.
    realmName string
    (String) The realm name of the Idp this claim rule applies to.
    type string
    (String) Type of the Calim rule, either Profile-SAML or Profile-CR.
    conditions Sequence[GetIamTrustedProfileClaimRulesRuleCondition]
    (List) Conditions of this claim rule. Nested scheme for conditions:
    cr_type str
    (String) The compute resource type. Not required if type is 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) version of the claim rule.
    expiration float
    (Integer) Session expiration in seconds.
    id str
    (String) the unique identifier of the claim rule.
    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.
    realm_name str
    (String) The realm name of the Idp this claim rule applies to.
    type str
    (String) Type of the Calim rule, either 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. Not required if type is 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) version of the claim rule.
    expiration Number
    (Integer) Session expiration in seconds.
    id String
    (String) the unique identifier of the claim rule.
    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.
    realmName String
    (String) The realm name of the Idp this claim rule applies to.
    type String
    (String) Type of the Calim rule, either Profile-SAML or Profile-CR.

    GetIamTrustedProfileClaimRulesRuleCondition

    Claim string
    (String) The claim to evaluate against.
    Operator string
    (String) The operation to perform on the claim. valid 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. valid 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. valid 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. valid 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. valid 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. valid 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