getServerPolicy

Use this data source to retrieve a authorization server policy from Okta.

Example Usage

using Pulumi;
using Okta = Pulumi.Okta;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Okta.Auth.GetServerPolicy.InvokeAsync(new Okta.Auth.GetServerPolicyArgs
        {
            AuthServerId = "<auth server id>",
            Name = "staff",
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-okta/sdk/v3/go/okta/auth"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := auth.LookupServerPolicy(ctx, &auth.LookupServerPolicyArgs{
			AuthServerId: "<auth server id>",
			Name:         "staff",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_okta as okta

example = okta.auth.get_server_policy(auth_server_id="<auth server id>",
    name="staff")
import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";

const example = pulumi.output(okta.auth.getServerPolicy({
    authServerId: "<auth server id>",
    name: "staff",
}, { async: true }));

Using getServerPolicy

function getServerPolicy(args: GetServerPolicyArgs, opts?: InvokeOptions): Promise<GetServerPolicyResult>
def get_server_policy(auth_server_id: Optional[str] = None,
                      name: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetServerPolicyResult
func LookupServerPolicy(ctx *Context, args *LookupServerPolicyArgs, opts ...InvokeOption) (*LookupServerPolicyResult, error)

Note: This function is named LookupServerPolicy in the Go SDK.

public static class GetServerPolicy {
    public static Task<GetServerPolicyResult> InvokeAsync(GetServerPolicyArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

AuthServerId string
The ID of the Auth Server.
Name string
Name of policy to retrieve.
AuthServerId string
The ID of the Auth Server.
Name string
Name of policy to retrieve.
authServerId string
The ID of the Auth Server.
name string
Name of policy to retrieve.
auth_server_id str
The ID of the Auth Server.
name str
Name of policy to retrieve.

getServerPolicy Result

The following output properties are available:

AssignedClients List<string>
list of clients this policy is assigned to. ["ALL_CLIENTS"] is a special value when policy is assigned to all clients.
AuthServerId string
Description string
description of authorization server policy.
Id string
The provider-assigned unique ID for this managed resource.
Name string
AssignedClients []string
list of clients this policy is assigned to. ["ALL_CLIENTS"] is a special value when policy is assigned to all clients.
AuthServerId string
Description string
description of authorization server policy.
Id string
The provider-assigned unique ID for this managed resource.
Name string
assignedClients string[]
list of clients this policy is assigned to. ["ALL_CLIENTS"] is a special value when policy is assigned to all clients.
authServerId string
description string
description of authorization server policy.
id string
The provider-assigned unique ID for this managed resource.
name string
assigned_clients Sequence[str]
list of clients this policy is assigned to. ["ALL_CLIENTS"] is a special value when policy is assigned to all clients.
auth_server_id str
description str
description of authorization server policy.
id str
The provider-assigned unique ID for this managed resource.
name str

Package Details

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