1. Packages
  2. Okta Provider
  3. API Docs
  4. getPostAuthSessionPolicy
Viewing docs for Okta v6.4.0
published on Saturday, Mar 28, 2026 by Pulumi
okta logo
Viewing docs for Okta v6.4.0
published on Saturday, Mar 28, 2026 by Pulumi

    Retrieves the Post Auth Session Policy. This is a system policy that is automatically created when Identity Threat Protection (ITP) with Okta AI is enabled. There is exactly one Post Auth Session Policy per organization.

    Example Usage

    {{tffile “examples/data-sources/okta_post_auth_session_policy/data-source.tf”}}

    Using getPostAuthSessionPolicy

    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 getPostAuthSessionPolicy(opts?: InvokeOptions): Promise<GetPostAuthSessionPolicyResult>
    function getPostAuthSessionPolicyOutput(opts?: InvokeOptions): Output<GetPostAuthSessionPolicyResult>
    def get_post_auth_session_policy(opts: Optional[InvokeOptions] = None) -> GetPostAuthSessionPolicyResult
    def get_post_auth_session_policy_output(opts: Optional[InvokeOptions] = None) -> Output[GetPostAuthSessionPolicyResult]
    func GetPostAuthSessionPolicy(ctx *Context, opts ...InvokeOption) (*GetPostAuthSessionPolicyResult, error)
    func GetPostAuthSessionPolicyOutput(ctx *Context, opts ...InvokeOption) GetPostAuthSessionPolicyResultOutput

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

    public static class GetPostAuthSessionPolicy 
    {
        public static Task<GetPostAuthSessionPolicyResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetPostAuthSessionPolicyResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPostAuthSessionPolicyResult> getPostAuthSessionPolicy(InvokeOptions options)
    public static Output<GetPostAuthSessionPolicyResult> getPostAuthSessionPolicy(InvokeOptions options)
    
    fn::invoke:
      function: okta:index/getPostAuthSessionPolicy:getPostAuthSessionPolicy
      arguments:
        # arguments dictionary

    getPostAuthSessionPolicy Result

    The following output properties are available:

    Id string
    ID of the Post Auth Session Policy.
    Name string
    Name of the Post Auth Session Policy.
    RuleId string
    ID of the modifiable policy rule (non-default). Use this for importing the policy rule resource.
    Status string
    Status of the policy: ACTIVE or INACTIVE.
    Id string
    ID of the Post Auth Session Policy.
    Name string
    Name of the Post Auth Session Policy.
    RuleId string
    ID of the modifiable policy rule (non-default). Use this for importing the policy rule resource.
    Status string
    Status of the policy: ACTIVE or INACTIVE.
    id String
    ID of the Post Auth Session Policy.
    name String
    Name of the Post Auth Session Policy.
    ruleId String
    ID of the modifiable policy rule (non-default). Use this for importing the policy rule resource.
    status String
    Status of the policy: ACTIVE or INACTIVE.
    id string
    ID of the Post Auth Session Policy.
    name string
    Name of the Post Auth Session Policy.
    ruleId string
    ID of the modifiable policy rule (non-default). Use this for importing the policy rule resource.
    status string
    Status of the policy: ACTIVE or INACTIVE.
    id str
    ID of the Post Auth Session Policy.
    name str
    Name of the Post Auth Session Policy.
    rule_id str
    ID of the modifiable policy rule (non-default). Use this for importing the policy rule resource.
    status str
    Status of the policy: ACTIVE or INACTIVE.
    id String
    ID of the Post Auth Session Policy.
    name String
    Name of the Post Auth Session Policy.
    ruleId String
    ID of the modifiable policy rule (non-default). Use this for importing the policy rule resource.
    status String
    Status of the policy: ACTIVE or INACTIVE.

    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.4.0
    published on Saturday, Mar 28, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.