Viewing docs for Okta v6.9.0
published on Wednesday, Jul 1, 2026 by Pulumi
published on Wednesday, Jul 1, 2026 by Pulumi
Viewing docs for Okta v6.9.0
published on Wednesday, Jul 1, 2026 by Pulumi
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 dictionarydata "okta_get_authorization_servers_policies_rule" "name" {
# arguments
}The following arguments are supported:
- Auth
Server stringId idof the Authorization Server- Id string
- Unique identifier of the authorization server policy rule.
- Policy
Id string idof the policy- Actions
Get
Authorization Servers Policies Rule Actions - Conditions
Get
Authorization Servers Policies Rule Conditions
- Auth
Server stringId idof the Authorization Server- Id string
- Unique identifier of the authorization server policy rule.
- Policy
Id string idof the policy- Actions
Get
Authorization Servers Policies Rule Actions - Conditions
Get
Authorization Servers Policies Rule Conditions
- auth_
server_ stringid idof the Authorization Server- id string
- Unique identifier of the authorization server policy rule.
- policy_
id string idof the policy- actions object
- conditions object
- auth
Server StringId idof the Authorization Server- id String
- Unique identifier of the authorization server policy rule.
- policy
Id String idof the policy- actions
Get
Authorization Servers Policies Rule Actions - conditions
Get
Authorization Servers Policies Rule Conditions
- auth
Server stringId idof the Authorization Server- id string
- Unique identifier of the authorization server policy rule.
- policy
Id string idof the policy- actions
Get
Authorization Servers Policies Rule Actions - conditions
Get
Authorization Servers Policies Rule Conditions
- auth_
server_ strid idof the Authorization Server- id str
- Unique identifier of the authorization server policy rule.
- policy_
id str idof the policy- actions
Get
Authorization Servers Policies Rule Actions - conditions
Get
Authorization Servers Policies Rule Conditions
- auth
Server StringId idof the Authorization Server- id String
- Unique identifier of the authorization server policy rule.
- policy
Id String idof the policy- actions Property Map
- conditions Property Map
getAuthorizationServersPoliciesRule Result
The following output properties are available:
- Auth
Server stringId idof 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 idof the policy- Priority int
- Priority of the rule
- Status string
- Status of the rule
- System bool
- Set to
truefor system rules. - Type string
- Rule type
- Actions
Get
Authorization Servers Policies Rule Actions - Conditions
Get
Authorization Servers Policies Rule Conditions
- Auth
Server stringId idof 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 idof the policy- Priority int
- Priority of the rule
- Status string
- Status of the rule
- System bool
- Set to
truefor system rules. - Type string
- Rule type
- Actions
Get
Authorization Servers Policies Rule Actions - Conditions
Get
Authorization Servers Policies Rule Conditions
- auth_
server_ stringid idof 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 idof the policy- priority number
- Priority of the rule
- status string
- Status of the rule
- system bool
- Set to
truefor system rules. - type string
- Rule type
- actions object
- conditions object
- auth
Server StringId idof 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 idof the policy- priority Integer
- Priority of the rule
- status String
- Status of the rule
- system Boolean
- Set to
truefor system rules. - type String
- Rule type
- actions
Get
Authorization Servers Policies Rule Actions - conditions
Get
Authorization Servers Policies Rule Conditions
- auth
Server stringId idof 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 idof the policy- priority number
- Priority of the rule
- status string
- Status of the rule
- system boolean
- Set to
truefor system rules. - type string
- Rule type
- actions
Get
Authorization Servers Policies Rule Actions - conditions
Get
Authorization Servers Policies Rule Conditions
- auth_
server_ strid idof 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 idof the policy- priority int
- Priority of the rule
- status str
- Status of the rule
- system bool
- Set to
truefor system rules. - type str
- Rule type
- actions
Get
Authorization Servers Policies Rule Actions - conditions
Get
Authorization Servers Policies Rule Conditions
- auth
Server StringId idof 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 idof the policy- priority Number
- Priority of the rule
- status String
- Status of the rule
- system Boolean
- Set to
truefor system rules. - type String
- Rule type
- actions Property Map
- conditions Property Map
Supporting Types
GetAuthorizationServersPoliciesRuleActions
- token Property Map
- Token
GetAuthorizationServersPoliciesRuleActionsToken
- Access
Token intLifetime Minutes - Lifetime of the access token in minutes.
- Refresh
Token intLifetime Minutes - Lifetime of the refresh token is the minimum access token lifetime.
- Refresh
Token intWindow Minutes - Timeframe when the refresh token is valid.
- Inline
Hook GetAuthorization Servers Policies Rule Actions Token Inline Hook - InlineHook
- Access
Token intLifetime Minutes - Lifetime of the access token in minutes.
- Refresh
Token intLifetime Minutes - Lifetime of the refresh token is the minimum access token lifetime.
- Refresh
Token intWindow Minutes - Timeframe when the refresh token is valid.
- Inline
Hook GetAuthorization Servers Policies Rule Actions Token Inline Hook - InlineHook
- access_
token_ numberlifetime_ minutes - Lifetime of the access token in minutes.
- refresh_
token_ numberlifetime_ minutes - Lifetime of the refresh token is the minimum access token lifetime.
- refresh_
token_ numberwindow_ minutes - Timeframe when the refresh token is valid.
- inline_
hook object - InlineHook
- access
Token IntegerLifetime Minutes - Lifetime of the access token in minutes.
- refresh
Token IntegerLifetime Minutes - Lifetime of the refresh token is the minimum access token lifetime.
- refresh
Token IntegerWindow Minutes - Timeframe when the refresh token is valid.
- inline
Hook GetAuthorization Servers Policies Rule Actions Token Inline Hook - InlineHook
- access
Token numberLifetime Minutes - Lifetime of the access token in minutes.
- refresh
Token numberLifetime Minutes - Lifetime of the refresh token is the minimum access token lifetime.
- refresh
Token numberWindow Minutes - Timeframe when the refresh token is valid.
- inline
Hook GetAuthorization Servers Policies Rule Actions Token Inline Hook - InlineHook
- access_
token_ intlifetime_ minutes - Lifetime of the access token in minutes.
- refresh_
token_ intlifetime_ minutes - Lifetime of the refresh token is the minimum access token lifetime.
- refresh_
token_ intwindow_ minutes - Timeframe when the refresh token is valid.
- inline_
hook GetAuthorization Servers Policies Rule Actions Token Inline Hook - InlineHook
- access
Token NumberLifetime Minutes - Lifetime of the access token in minutes.
- refresh
Token NumberLifetime Minutes - Lifetime of the refresh token is the minimum access token lifetime.
- refresh
Token NumberWindow Minutes - Timeframe when the refresh token is valid.
- inline
Hook 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
- Grant
Types GetAuthorization Servers Policies Rule Conditions Grant Types - Array of grant types that this condition includes.
- People
Get
Authorization Servers Policies Rule Conditions People - Identifies Users and Groups that are used together
- Scopes
Get
Authorization Servers Policies Rule Conditions Scopes - Array of scopes that the condition includes
- Grant
Types GetAuthorization Servers Policies Rule Conditions Grant Types - Array of grant types that this condition includes.
- People
Get
Authorization Servers Policies Rule Conditions People - Identifies Users and Groups that are used together
- Scopes
Get
Authorization Servers Policies Rule Conditions Scopes - Array of scopes that the condition includes
- grant
Types GetAuthorization Servers Policies Rule Conditions Grant Types - Array of grant types that this condition includes.
- people
Get
Authorization Servers Policies Rule Conditions People - Identifies Users and Groups that are used together
- scopes
Get
Authorization Servers Policies Rule Conditions Scopes - Array of scopes that the condition includes
- grant
Types GetAuthorization Servers Policies Rule Conditions Grant Types - Array of grant types that this condition includes.
- people
Get
Authorization Servers Policies Rule Conditions People - Identifies Users and Groups that are used together
- scopes
Get
Authorization Servers Policies Rule Conditions Scopes - Array of scopes that the condition includes
- grant_
types GetAuthorization Servers Policies Rule Conditions Grant Types - Array of grant types that this condition includes.
- people
Get
Authorization Servers Policies Rule Conditions People - Identifies Users and Groups that are used together
- scopes
Get
Authorization Servers Policies Rule Conditions Scopes - Array of scopes that the condition includes
- grant
Types 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
Get
Authorization Servers Policies Rule Conditions People Groups - Specifies a set of Groups whose Users are to be included
- Users
Get
Authorization Servers Policies Rule Conditions People Users - Specifies a set of Users to be included
- Groups
Get
Authorization Servers Policies Rule Conditions People Groups - Specifies a set of Groups whose Users are to be included
- Users
Get
Authorization Servers Policies Rule Conditions People Users - Specifies a set of Users to be included
- groups
Get
Authorization Servers Policies Rule Conditions People Groups - Specifies a set of Groups whose Users are to be included
- users
Get
Authorization Servers Policies Rule Conditions People Users - Specifies a set of Users to be included
- groups
Get
Authorization Servers Policies Rule Conditions People Groups - Specifies a set of Groups whose Users are to be included
- users
Get
Authorization Servers Policies Rule Conditions People Users - Specifies a set of Users to be included
- groups
Get
Authorization Servers Policies Rule Conditions People Groups - Specifies a set of Groups whose Users are to be included
- users
Get
Authorization Servers Policies Rule Conditions People Users - 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
oktaTerraform Provider.
Viewing docs for Okta v6.9.0
published on Wednesday, Jul 1, 2026 by Pulumi
published on Wednesday, Jul 1, 2026 by Pulumi