GetPolicy

Use this data source to retrieve a policy from Okta.

Example Usage

using Pulumi;
using Okta = Pulumi.Okta;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Okta.Policy.GetPolicy.InvokeAsync(new Okta.Policy.GetPolicyArgs
        {
            Name = "Password Policy Example",
            Type = "PASSWORD",
        }));
    }

}

Coming soon!

import pulumi
import pulumi_okta as okta

example = okta.policy.get_policy(name="Password Policy Example",
    type="PASSWORD")
import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";

const example = pulumi.output(okta.policy.getPolicy({
    name: "Password Policy Example",
    type: "PASSWORD",
}, { async: true }));

Using GetPolicy

function getPolicy(args: GetPolicyArgs, opts?: InvokeOptions): Promise<GetPolicyResult>
function  get_policy(name=None, type=None, opts=None)
func GetPolicy(ctx *Context, args *GetPolicyArgs, opts ...InvokeOption) (*GetPolicyResult, error)
public static class GetPolicy {
    public static Task<GetPolicyResult> InvokeAsync(GetPolicyArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

name of policy to retrieve.

Type string

type of policy to retrieve.

Name string

name of policy to retrieve.

Type string

type of policy to retrieve.

name string

name of policy to retrieve.

type string

type of policy to retrieve.

name str

name of policy to retrieve.

type str

type of policy to retrieve.

GetPolicy Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Name string

name of policy.

Type string

type of policy.

Id string

The provider-assigned unique ID for this managed resource.

Name string

name of policy.

Type string

type of policy.

id string

The provider-assigned unique ID for this managed resource.

name string

name of policy.

type string

type of policy.

id str

The provider-assigned unique ID for this managed resource.

name str

name of policy.

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.