Class GetDefaultPolicy
Inheritance
System.Object
GetDefaultPolicy
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Okta.Policy
Assembly: Pulumi.Okta.dll
Syntax
public static class GetDefaultPolicy
Methods
View SourceInvokeAsync(GetDefaultPolicyArgs, InvokeOptions)
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.
{{% examples %}}
Example Usage
{{% example %}}
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",
}));
}
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetDefaultPolicyResult> InvokeAsync(GetDefaultPolicyArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetDefaultPolicyArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetDefaultPolicyResult> |