1. Packages
  2. Packages
  3. Okta Provider
  4. API Docs
  5. getAuthorizationServersPoliciesRule
Viewing docs for Okta v6.9.0
published on Wednesday, Jul 1, 2026 by Pulumi
okta logo
Viewing docs for Okta v6.9.0
published on Wednesday, Jul 1, 2026 by Pulumi

    Retrieves an authorization server policy rule by ruleId from Okta.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as okta from "@pulumi/okta";
    
    const example = okta.getAuthorizationServersPoliciesRule({
        id: "<rule id>",
        authServerId: "<auth server id>",
        policyId: "<policy id>",
    });
    
    import pulumi
    import pulumi_okta as okta
    
    example = okta.get_authorization_servers_policies_rule(id="<rule id>",
        auth_server_id="<auth server id>",
        policy_id="<policy id>")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-okta/sdk/v6/go/okta"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := okta.GetAuthorizationServersPoliciesRule(ctx, &okta.GetAuthorizationServersPoliciesRuleArgs{
    			Id:           "<rule id>",
    			AuthServerId: "<auth server id>",
    			PolicyId:     "<policy id>",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Okta = Pulumi.Okta;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Okta.GetAuthorizationServersPoliciesRule.Invoke(new()
        {
            Id = "<rule id>",
            AuthServerId = "<auth server id>",
            PolicyId = "<policy id>",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.okta.OktaFunctions;
    import com.pulumi.okta.inputs.GetAuthorizationServersPoliciesRuleArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 example = OktaFunctions.getAuthorizationServersPoliciesRule(GetAuthorizationServersPoliciesRuleArgs.builder()
                .id("<rule id>")
                .authServerId("<auth server id>")
                .policyId("<policy id>")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: okta:getAuthorizationServersPoliciesRule
          arguments:
            id: <rule id>
            authServerId: <auth server id>
            policyId: <policy id>
    
    pulumi {
      required_providers {
        okta = {
          source = "pulumi/okta"
        }
      }
    }
    
    data "okta_getauthorizationserverspoliciesrule" "example" {
      id             = "<rule id>"
      auth_server_id = "<auth server id>"
      policy_id      = "<policy id>"
    }
    

    Using getAuthorizationServersPoliciesRule

    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 getAuthorizationServersPoliciesRule(args: GetAuthorizationServersPoliciesRuleArgs, opts?: InvokeOptions): Promise<GetAuthorizationServersPoliciesRuleResult>
    function getAuthorizationServersPoliciesRuleOutput(args: GetAuthorizationServersPoliciesRuleOutputArgs, opts?: InvokeOptions): Output<GetAuthorizationServersPoliciesRuleResult>
    def get_authorization_servers_policies_rule(actions: Optional[GetAuthorizationServersPoliciesRuleActions] = None,
                                                auth_server_id: Optional[str] = None,
                                                conditions: Optional[GetAuthorizationServersPoliciesRuleConditions] = None,
                                                id: Optional[str] = None,
                                                policy_id: Optional[str] = None,
                                                opts: Optional[InvokeOptions] = None) -> GetAuthorizationServersPoliciesRuleResult
    def get_authorization_servers_policies_rule_output(actions: pulumi.Input[Optional[GetAuthorizationServersPoliciesRuleActionsArgs]] = None,
                                                auth_server_id: pulumi.Input[Optional[str]] = None,
                                                conditions: pulumi.Input[Optional[GetAuthorizationServersPoliciesRuleConditionsArgs]] = None,
                                                id: pulumi.Input[Optional[str]] = None,
                                                policy_id: pulumi.Input[Optional[str]] = None,
                                                opts: Optional[InvokeOptions] = None) -> Output[GetAuthorizationServersPoliciesRuleResult]
    func GetAuthorizationServersPoliciesRule(ctx *Context, args *GetAuthorizationServersPoliciesRuleArgs, opts ...InvokeOption) (*GetAuthorizationServersPoliciesRuleResult, error)
    func GetAuthorizationServersPoliciesRuleOutput(ctx *Context, args *GetAuthorizationServersPoliciesRuleOutputArgs, opts ...InvokeOption) GetAuthorizationServersPoliciesRuleResultOutput

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

    public static class GetAuthorizationServersPoliciesRule 
    {
        public static Task<GetAuthorizationServersPoliciesRuleResult> InvokeAsync(GetAuthorizationServersPoliciesRuleArgs args, InvokeOptions? opts = null)
        public static Output<GetAuthorizationServersPoliciesRuleResult> Invoke(GetAuthorizationServersPoliciesRuleInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAuthorizationServersPoliciesRuleResult> getAuthorizationServersPoliciesRule(GetAuthorizationServersPoliciesRuleArgs args, InvokeOptions options)
    public static Output<GetAuthorizationServersPoliciesRuleResult> getAuthorizationServersPoliciesRule(GetAuthorizationServersPoliciesRuleArgs args, InvokeOptions options)
    
    fn::invoke:
      function: okta:index/getAuthorizationServersPoliciesRule:getAuthorizationServersPoliciesRule
      arguments:
        # arguments dictionary
    data "okta_get_authorization_servers_policies_rule" "name" {
        # arguments
    }

    The following arguments are supported:

    AuthServerId string
    id of the Authorization Server
    Id string
    Unique identifier of the authorization server policy rule.
    PolicyId string
    id of the policy
    Actions GetAuthorizationServersPoliciesRuleActions
    Conditions GetAuthorizationServersPoliciesRuleConditions
    AuthServerId string
    id of the Authorization Server
    Id string
    Unique identifier of the authorization server policy rule.
    PolicyId string
    id of the policy
    Actions GetAuthorizationServersPoliciesRuleActions
    Conditions GetAuthorizationServersPoliciesRuleConditions
    auth_server_id string
    id of the Authorization Server
    id string
    Unique identifier of the authorization server policy rule.
    policy_id string
    id of the policy
    actions object
    conditions object
    authServerId String
    id of the Authorization Server
    id String
    Unique identifier of the authorization server policy rule.
    policyId String
    id of the policy
    actions GetAuthorizationServersPoliciesRuleActions
    conditions GetAuthorizationServersPoliciesRuleConditions
    authServerId string
    id of the Authorization Server
    id string
    Unique identifier of the authorization server policy rule.
    policyId string
    id of the policy
    actions GetAuthorizationServersPoliciesRuleActions
    conditions GetAuthorizationServersPoliciesRuleConditions
    auth_server_id str
    id of the Authorization Server
    id str
    Unique identifier of the authorization server policy rule.
    policy_id str
    id of the policy
    actions GetAuthorizationServersPoliciesRuleActions
    conditions GetAuthorizationServersPoliciesRuleConditions
    authServerId String
    id of the Authorization Server
    id String
    Unique identifier of the authorization server policy rule.
    policyId String
    id of the policy
    actions Property Map
    conditions Property Map

    getAuthorizationServersPoliciesRule Result

    The following output properties are available:

    AuthServerId string
    id of the Authorization Server
    Created string
    Timestamp when the rule was created
    Id string
    Unique identifier of the authorization server policy rule.
    LastUpdated string
    Timestamp when the rule was last modified
    Name string
    Name of the rule
    PolicyId string
    id of the policy
    Priority int
    Priority of the rule
    Status string
    Status of the rule
    System bool
    Set to true for system rules.
    Type string
    Rule type
    Actions GetAuthorizationServersPoliciesRuleActions
    Conditions GetAuthorizationServersPoliciesRuleConditions
    AuthServerId string
    id of the Authorization Server
    Created string
    Timestamp when the rule was created
    Id string
    Unique identifier of the authorization server policy rule.
    LastUpdated string
    Timestamp when the rule was last modified
    Name string
    Name of the rule
    PolicyId string
    id of the policy
    Priority int
    Priority of the rule
    Status string
    Status of the rule
    System bool
    Set to true for system rules.
    Type string
    Rule type
    Actions GetAuthorizationServersPoliciesRuleActions
    Conditions GetAuthorizationServersPoliciesRuleConditions
    auth_server_id string
    id of the Authorization Server
    created string
    Timestamp when the rule was created
    id string
    Unique identifier of the authorization server policy rule.
    last_updated string
    Timestamp when the rule was last modified
    name string
    Name of the rule
    policy_id string
    id of the policy
    priority number
    Priority of the rule
    status string
    Status of the rule
    system bool
    Set to true for system rules.
    type string
    Rule type
    actions object
    conditions object
    authServerId String
    id of the Authorization Server
    created String
    Timestamp when the rule was created
    id String
    Unique identifier of the authorization server policy rule.
    lastUpdated String
    Timestamp when the rule was last modified
    name String
    Name of the rule
    policyId String
    id of the policy
    priority Integer
    Priority of the rule
    status String
    Status of the rule
    system Boolean
    Set to true for system rules.
    type String
    Rule type
    actions GetAuthorizationServersPoliciesRuleActions
    conditions GetAuthorizationServersPoliciesRuleConditions
    authServerId string
    id of the Authorization Server
    created string
    Timestamp when the rule was created
    id string
    Unique identifier of the authorization server policy rule.
    lastUpdated string
    Timestamp when the rule was last modified
    name string
    Name of the rule
    policyId string
    id of the policy
    priority number
    Priority of the rule
    status string
    Status of the rule
    system boolean
    Set to true for system rules.
    type string
    Rule type
    actions GetAuthorizationServersPoliciesRuleActions
    conditions GetAuthorizationServersPoliciesRuleConditions
    auth_server_id str
    id of the Authorization Server
    created str
    Timestamp when the rule was created
    id str
    Unique identifier of the authorization server policy rule.
    last_updated str
    Timestamp when the rule was last modified
    name str
    Name of the rule
    policy_id str
    id of the policy
    priority int
    Priority of the rule
    status str
    Status of the rule
    system bool
    Set to true for system rules.
    type str
    Rule type
    actions GetAuthorizationServersPoliciesRuleActions
    conditions GetAuthorizationServersPoliciesRuleConditions
    authServerId String
    id of the Authorization Server
    created String
    Timestamp when the rule was created
    id String
    Unique identifier of the authorization server policy rule.
    lastUpdated String
    Timestamp when the rule was last modified
    name String
    Name of the rule
    policyId String
    id of the policy
    priority Number
    Priority of the rule
    status String
    Status of the rule
    system Boolean
    Set to true for system rules.
    type String
    Rule type
    actions Property Map
    conditions Property Map

    Supporting Types

    GetAuthorizationServersPoliciesRuleActions

    GetAuthorizationServersPoliciesRuleActionsToken

    AccessTokenLifetimeMinutes int
    Lifetime of the access token in minutes.
    RefreshTokenLifetimeMinutes int
    Lifetime of the refresh token is the minimum access token lifetime.
    RefreshTokenWindowMinutes int
    Timeframe when the refresh token is valid.
    InlineHook GetAuthorizationServersPoliciesRuleActionsTokenInlineHook
    InlineHook
    AccessTokenLifetimeMinutes int
    Lifetime of the access token in minutes.
    RefreshTokenLifetimeMinutes int
    Lifetime of the refresh token is the minimum access token lifetime.
    RefreshTokenWindowMinutes int
    Timeframe when the refresh token is valid.
    InlineHook GetAuthorizationServersPoliciesRuleActionsTokenInlineHook
    InlineHook
    access_token_lifetime_minutes number
    Lifetime of the access token in minutes.
    refresh_token_lifetime_minutes number
    Lifetime of the refresh token is the minimum access token lifetime.
    refresh_token_window_minutes number
    Timeframe when the refresh token is valid.
    inline_hook object
    InlineHook
    accessTokenLifetimeMinutes Integer
    Lifetime of the access token in minutes.
    refreshTokenLifetimeMinutes Integer
    Lifetime of the refresh token is the minimum access token lifetime.
    refreshTokenWindowMinutes Integer
    Timeframe when the refresh token is valid.
    inlineHook GetAuthorizationServersPoliciesRuleActionsTokenInlineHook
    InlineHook
    accessTokenLifetimeMinutes number
    Lifetime of the access token in minutes.
    refreshTokenLifetimeMinutes number
    Lifetime of the refresh token is the minimum access token lifetime.
    refreshTokenWindowMinutes number
    Timeframe when the refresh token is valid.
    inlineHook GetAuthorizationServersPoliciesRuleActionsTokenInlineHook
    InlineHook
    access_token_lifetime_minutes int
    Lifetime of the access token in minutes.
    refresh_token_lifetime_minutes int
    Lifetime of the refresh token is the minimum access token lifetime.
    refresh_token_window_minutes int
    Timeframe when the refresh token is valid.
    inline_hook GetAuthorizationServersPoliciesRuleActionsTokenInlineHook
    InlineHook
    accessTokenLifetimeMinutes Number
    Lifetime of the access token in minutes.
    refreshTokenLifetimeMinutes Number
    Lifetime of the refresh token is the minimum access token lifetime.
    refreshTokenWindowMinutes Number
    Timeframe when the refresh token is valid.
    inlineHook Property Map
    InlineHook

    GetAuthorizationServersPoliciesRuleActionsTokenInlineHook

    Id string
    Unique identifier of the authorization server policy rule.
    Id string
    Unique identifier of the authorization server policy rule.
    id string
    Unique identifier of the authorization server policy rule.
    id String
    Unique identifier of the authorization server policy rule.
    id string
    Unique identifier of the authorization server policy rule.
    id str
    Unique identifier of the authorization server policy rule.
    id String
    Unique identifier of the authorization server policy rule.

    GetAuthorizationServersPoliciesRuleConditions

    GrantTypes GetAuthorizationServersPoliciesRuleConditionsGrantTypes
    Array of grant types that this condition includes.
    People GetAuthorizationServersPoliciesRuleConditionsPeople
    Identifies Users and Groups that are used together
    Scopes GetAuthorizationServersPoliciesRuleConditionsScopes
    Array of scopes that the condition includes
    GrantTypes GetAuthorizationServersPoliciesRuleConditionsGrantTypes
    Array of grant types that this condition includes.
    People GetAuthorizationServersPoliciesRuleConditionsPeople
    Identifies Users and Groups that are used together
    Scopes GetAuthorizationServersPoliciesRuleConditionsScopes
    Array of scopes that the condition includes
    grant_types object
    Array of grant types that this condition includes.
    people object
    Identifies Users and Groups that are used together
    scopes object
    Array of scopes that the condition includes
    grantTypes GetAuthorizationServersPoliciesRuleConditionsGrantTypes
    Array of grant types that this condition includes.
    people GetAuthorizationServersPoliciesRuleConditionsPeople
    Identifies Users and Groups that are used together
    scopes GetAuthorizationServersPoliciesRuleConditionsScopes
    Array of scopes that the condition includes
    grantTypes GetAuthorizationServersPoliciesRuleConditionsGrantTypes
    Array of grant types that this condition includes.
    people GetAuthorizationServersPoliciesRuleConditionsPeople
    Identifies Users and Groups that are used together
    scopes GetAuthorizationServersPoliciesRuleConditionsScopes
    Array of scopes that the condition includes
    grant_types GetAuthorizationServersPoliciesRuleConditionsGrantTypes
    Array of grant types that this condition includes.
    people GetAuthorizationServersPoliciesRuleConditionsPeople
    Identifies Users and Groups that are used together
    scopes GetAuthorizationServersPoliciesRuleConditionsScopes
    Array of scopes that the condition includes
    grantTypes Property Map
    Array of grant types that this condition includes.
    people Property Map
    Identifies Users and Groups that are used together
    scopes Property Map
    Array of scopes that the condition includes

    GetAuthorizationServersPoliciesRuleConditionsGrantTypes

    Includes List<string>
    Array of grant types that this condition includes.
    Includes []string
    Array of grant types that this condition includes.
    includes list(string)
    Array of grant types that this condition includes.
    includes List<String>
    Array of grant types that this condition includes.
    includes string[]
    Array of grant types that this condition includes.
    includes Sequence[str]
    Array of grant types that this condition includes.
    includes List<String>
    Array of grant types that this condition includes.

    GetAuthorizationServersPoliciesRuleConditionsPeople

    Groups GetAuthorizationServersPoliciesRuleConditionsPeopleGroups
    Specifies a set of Groups whose Users are to be included
    Users GetAuthorizationServersPoliciesRuleConditionsPeopleUsers
    Specifies a set of Users to be included
    Groups GetAuthorizationServersPoliciesRuleConditionsPeopleGroups
    Specifies a set of Groups whose Users are to be included
    Users GetAuthorizationServersPoliciesRuleConditionsPeopleUsers
    Specifies a set of Users to be included
    groups object
    Specifies a set of Groups whose Users are to be included
    users object
    Specifies a set of Users to be included
    groups GetAuthorizationServersPoliciesRuleConditionsPeopleGroups
    Specifies a set of Groups whose Users are to be included
    users GetAuthorizationServersPoliciesRuleConditionsPeopleUsers
    Specifies a set of Users to be included
    groups GetAuthorizationServersPoliciesRuleConditionsPeopleGroups
    Specifies a set of Groups whose Users are to be included
    users GetAuthorizationServersPoliciesRuleConditionsPeopleUsers
    Specifies a set of Users to be included
    groups GetAuthorizationServersPoliciesRuleConditionsPeopleGroups
    Specifies a set of Groups whose Users are to be included
    users GetAuthorizationServersPoliciesRuleConditionsPeopleUsers
    Specifies a set of Users to be included
    groups Property Map
    Specifies a set of Groups whose Users are to be included
    users Property Map
    Specifies a set of Users to be included

    GetAuthorizationServersPoliciesRuleConditionsPeopleGroups

    Includes List<string>
    Groups to be included
    Includes []string
    Groups to be included
    includes list(string)
    Groups to be included
    includes List<String>
    Groups to be included
    includes string[]
    Groups to be included
    includes Sequence[str]
    Groups to be included
    includes List<String>
    Groups to be included

    GetAuthorizationServersPoliciesRuleConditionsPeopleUsers

    Includes List<string>
    Users to be included
    Includes []string
    Users to be included
    includes list(string)
    Users to be included
    includes List<String>
    Users to be included
    includes string[]
    Users to be included
    includes Sequence[str]
    Users to be included
    includes List<String>
    Users to be included

    GetAuthorizationServersPoliciesRuleConditionsScopes

    Includes List<string>
    Include
    Includes []string
    Include
    includes list(string)
    Include
    includes List<String>
    Include
    includes string[]
    Include
    includes Sequence[str]
    Include
    includes List<String>
    Include

    Package Details

    Repository
    Okta pulumi/pulumi-okta
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the okta Terraform Provider.
    okta logo
    Viewing docs for Okta v6.9.0
    published on Wednesday, Jul 1, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial