ServerPolicy
Creates an Authorization Server Policy.
This resource allows you to create and configure an Authorization Server Policy.
Example Usage
using Pulumi;
using Okta = Pulumi.Okta;
class MyStack : Stack
{
public MyStack()
{
var example = new Okta.Auth.ServerPolicy("example", new Okta.Auth.ServerPolicyArgs
{
AuthServerId = "<auth server id>",
ClientWhitelists =
{
"ALL_CLIENTS",
},
Description = "example",
Priority = 1,
Status = "ACTIVE",
});
}
}
Coming soon!
import pulumi
import pulumi_okta as okta
example = okta.auth.ServerPolicy("example",
auth_server_id="<auth server id>",
client_whitelists=["ALL_CLIENTS"],
description="example",
priority=1,
status="ACTIVE")import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";
const example = new okta.auth.ServerPolicy("example", {
authServerId: "<auth server id>",
clientWhitelists: ["ALL_CLIENTS"],
description: "example",
priority: 1,
status: "ACTIVE",
});Create a ServerPolicy Resource
new ServerPolicy(name: string, args: ServerPolicyArgs, opts?: CustomResourceOptions);def ServerPolicy(resource_name, opts=None, auth_server_id=None, client_whitelists=None, description=None, name=None, priority=None, status=None, type=None, __props__=None);func NewServerPolicy(ctx *Context, name string, args ServerPolicyArgs, opts ...ResourceOption) (*ServerPolicy, error)public ServerPolicy(string name, ServerPolicyArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args ServerPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ServerPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServerPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
ServerPolicy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The ServerPolicy resource accepts the following input properties:
- Auth
Server stringId The ID of the Auth Server.
- Client
Whitelists List<string> The clients to whitelist the policy for.
["ALL_CLIENTS"]is a special value that can be used to whitelist for all clients. Otherwise it is a list of client ids.- Description string
The description of the Auth Server Policy.
- Priority int
The priority of the Auth Server Policy.
- Name string
The name of the Auth Server Policy.
- Status string
The status of the Auth Server Policy.
- Type string
The type of the Auth Server Policy.
- Auth
Server stringId The ID of the Auth Server.
- Client
Whitelists []string The clients to whitelist the policy for.
["ALL_CLIENTS"]is a special value that can be used to whitelist for all clients. Otherwise it is a list of client ids.- Description string
The description of the Auth Server Policy.
- Priority int
The priority of the Auth Server Policy.
- Name string
The name of the Auth Server Policy.
- Status string
The status of the Auth Server Policy.
- Type string
The type of the Auth Server Policy.
- auth
Server stringId The ID of the Auth Server.
- client
Whitelists string[] The clients to whitelist the policy for.
["ALL_CLIENTS"]is a special value that can be used to whitelist for all clients. Otherwise it is a list of client ids.- description string
The description of the Auth Server Policy.
- priority number
The priority of the Auth Server Policy.
- name string
The name of the Auth Server Policy.
- status string
The status of the Auth Server Policy.
- type string
The type of the Auth Server Policy.
- auth_
server_ strid The ID of the Auth Server.
- client_
whitelists List[str] The clients to whitelist the policy for.
["ALL_CLIENTS"]is a special value that can be used to whitelist for all clients. Otherwise it is a list of client ids.- description str
The description of the Auth Server Policy.
- priority float
The priority of the Auth Server Policy.
- name str
The name of the Auth Server Policy.
- status str
The status of the Auth Server Policy.
- type str
The type of the Auth Server Policy.
Outputs
All input properties are implicitly available as output properties. Additionally, the ServerPolicy resource produces the following output properties:
Look up an Existing ServerPolicy Resource
Get an existing ServerPolicy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ServerPolicyState, opts?: CustomResourceOptions): ServerPolicystatic get(resource_name, id, opts=None, auth_server_id=None, client_whitelists=None, description=None, name=None, priority=None, status=None, type=None, __props__=None);func GetServerPolicy(ctx *Context, name string, id IDInput, state *ServerPolicyState, opts ...ResourceOption) (*ServerPolicy, error)public static ServerPolicy Get(string name, Input<string> id, ServerPolicyState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Auth
Server stringId The ID of the Auth Server.
- Client
Whitelists List<string> The clients to whitelist the policy for.
["ALL_CLIENTS"]is a special value that can be used to whitelist for all clients. Otherwise it is a list of client ids.- Description string
The description of the Auth Server Policy.
- Name string
The name of the Auth Server Policy.
- Priority int
The priority of the Auth Server Policy.
- Status string
The status of the Auth Server Policy.
- Type string
The type of the Auth Server Policy.
- Auth
Server stringId The ID of the Auth Server.
- Client
Whitelists []string The clients to whitelist the policy for.
["ALL_CLIENTS"]is a special value that can be used to whitelist for all clients. Otherwise it is a list of client ids.- Description string
The description of the Auth Server Policy.
- Name string
The name of the Auth Server Policy.
- Priority int
The priority of the Auth Server Policy.
- Status string
The status of the Auth Server Policy.
- Type string
The type of the Auth Server Policy.
- auth
Server stringId The ID of the Auth Server.
- client
Whitelists string[] The clients to whitelist the policy for.
["ALL_CLIENTS"]is a special value that can be used to whitelist for all clients. Otherwise it is a list of client ids.- description string
The description of the Auth Server Policy.
- name string
The name of the Auth Server Policy.
- priority number
The priority of the Auth Server Policy.
- status string
The status of the Auth Server Policy.
- type string
The type of the Auth Server Policy.
- auth_
server_ strid The ID of the Auth Server.
- client_
whitelists List[str] The clients to whitelist the policy for.
["ALL_CLIENTS"]is a special value that can be used to whitelist for all clients. Otherwise it is a list of client ids.- description str
The description of the Auth Server Policy.
- name str
The name of the Auth Server Policy.
- priority float
The priority of the Auth Server Policy.
- status str
The status of the Auth Server Policy.
- type str
The type of the Auth Server Policy.
Package Details
- Repository
- https://github.com/pulumi/pulumi-okta
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oktaTerraform Provider.