GetDefaultPolicy

Use this data source to retrieve a “Default” policy from Okta. This same thing can be achieved using the okta.policy.getPolicy with name = "Default", this is simply a shortcut.

Example Usage

using Pulumi;
using Okta = Pulumi.Okta;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Okta.Policy.GetDefaultPolicy.InvokeAsync(new Okta.Policy.GetDefaultPolicyArgs
        {
            Type = "PASSWORD",
        }));
    }

}

Coming soon!

import pulumi
import pulumi_okta as okta

example = okta.policy.get_default_policy(type="PASSWORD")
import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";

const example = pulumi.output(okta.policy.getDefaultPolicy({
    type: "PASSWORD",
}, { async: true }));

Using GetDefaultPolicy

function getDefaultPolicy(args: GetDefaultPolicyArgs, opts?: InvokeOptions): Promise<GetDefaultPolicyResult>
function  get_default_policy(type=None, opts=None)
func GetDefaultPolicy(ctx *Context, args *GetDefaultPolicyArgs, opts ...InvokeOption) (*GetDefaultPolicyResult, error)
public static class GetDefaultPolicy {
    public static Task<GetDefaultPolicyResult> InvokeAsync(GetDefaultPolicyArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Type string

type of policy to retrieve.

Type string

type of policy to retrieve.

type string

type of policy to retrieve.

type str

type of policy to retrieve.

GetDefaultPolicy Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Type string

type of policy.

Id string

The provider-assigned unique ID for this managed resource.

Type string

type of policy.

id string

The provider-assigned unique ID for this managed resource.

type string

type of policy.

id str

The provider-assigned unique ID for this managed resource.

type str

type of policy.

Package Details

Repository
https://github.com/pulumi/pulumi-okta
License
Apache-2.0
Notes
This Pulumi package is based on the okta Terraform Provider.