Server
Creates an Authorization Server.
This resource allows you to create and configure an Authorization Server.
Example Usage
using Pulumi;
using Okta = Pulumi.Okta;
class MyStack : Stack
{
public MyStack()
{
var example = new Okta.Auth.Server("example", new Okta.Auth.ServerArgs
{
Audiences =
{
"api://example",
},
Description = "My Example Auth Server",
IssuerMode = "CUSTOM_URL",
Status = "ACTIVE",
});
}
}
Coming soon!
import pulumi
import pulumi_okta as okta
example = okta.auth.Server("example",
audiences=["api://example"],
description="My Example Auth Server",
issuer_mode="CUSTOM_URL",
status="ACTIVE")import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";
const example = new okta.auth.Server("example", {
audiences: ["api://example"],
description: "My Example Auth Server",
issuerMode: "CUSTOM_URL",
status: "ACTIVE",
});Create a Server Resource
new Server(name: string, args: ServerArgs, opts?: CustomResourceOptions);def Server(resource_name, opts=None, audiences=None, credentials_rotation_mode=None, description=None, issuer_mode=None, name=None, status=None, __props__=None);func NewServer(ctx *Context, name string, args ServerArgs, opts ...ResourceOption) (*Server, error)public Server(string name, ServerArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args ServerArgs
- 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 ServerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Server Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Server resource accepts the following input properties:
- Audiences List<string>
The recipients that the tokens are intended for. This becomes the
audclaim in an access token.- Credentials
Rotation stringMode The key rotation mode for the authorization server. Can be
"AUTO"or"MANUAL".- Description string
The description of the authorization server.
- Issuer
Mode string Allows you to use a custom issuer URL. It can be set to
"CUSTOM_URL"or"ORG_URL"- Name string
The name of the authorization server.
- Status string
The status of the auth server. It defaults to
"ACTIVE"
- Audiences []string
The recipients that the tokens are intended for. This becomes the
audclaim in an access token.- Credentials
Rotation stringMode The key rotation mode for the authorization server. Can be
"AUTO"or"MANUAL".- Description string
The description of the authorization server.
- Issuer
Mode string Allows you to use a custom issuer URL. It can be set to
"CUSTOM_URL"or"ORG_URL"- Name string
The name of the authorization server.
- Status string
The status of the auth server. It defaults to
"ACTIVE"
- audiences string[]
The recipients that the tokens are intended for. This becomes the
audclaim in an access token.- credentials
Rotation stringMode The key rotation mode for the authorization server. Can be
"AUTO"or"MANUAL".- description string
The description of the authorization server.
- issuer
Mode string Allows you to use a custom issuer URL. It can be set to
"CUSTOM_URL"or"ORG_URL"- name string
The name of the authorization server.
- status string
The status of the auth server. It defaults to
"ACTIVE"
- audiences List[str]
The recipients that the tokens are intended for. This becomes the
audclaim in an access token.- credentials_
rotation_ strmode The key rotation mode for the authorization server. Can be
"AUTO"or"MANUAL".- description str
The description of the authorization server.
- issuer_
mode str Allows you to use a custom issuer URL. It can be set to
"CUSTOM_URL"or"ORG_URL"- name str
The name of the authorization server.
- status str
The status of the auth server. It defaults to
"ACTIVE"
Outputs
All input properties are implicitly available as output properties. Additionally, the Server resource produces the following output properties:
- Credentials
Last stringRotated The timestamp when the authorization server started to use the
kidfor signing tokens.- Credentials
Next stringRotation The timestamp when the authorization server changes the key for signing tokens. Only returned when
credentials_rotation_modeis"AUTO".- Id string
- The provider-assigned unique ID for this managed resource.
- Issuer string
The complete URL for a Custom Authorization Server. This becomes the
issclaim in an access token.- Kid string
The ID of the JSON Web Key used for signing tokens issued by the authorization server.
- Credentials
Last stringRotated The timestamp when the authorization server started to use the
kidfor signing tokens.- Credentials
Next stringRotation The timestamp when the authorization server changes the key for signing tokens. Only returned when
credentials_rotation_modeis"AUTO".- Id string
- The provider-assigned unique ID for this managed resource.
- Issuer string
The complete URL for a Custom Authorization Server. This becomes the
issclaim in an access token.- Kid string
The ID of the JSON Web Key used for signing tokens issued by the authorization server.
- credentials
Last stringRotated The timestamp when the authorization server started to use the
kidfor signing tokens.- credentials
Next stringRotation The timestamp when the authorization server changes the key for signing tokens. Only returned when
credentials_rotation_modeis"AUTO".- id string
- The provider-assigned unique ID for this managed resource.
- issuer string
The complete URL for a Custom Authorization Server. This becomes the
issclaim in an access token.- kid string
The ID of the JSON Web Key used for signing tokens issued by the authorization server.
- credentials_
last_ strrotated The timestamp when the authorization server started to use the
kidfor signing tokens.- credentials_
next_ strrotation The timestamp when the authorization server changes the key for signing tokens. Only returned when
credentials_rotation_modeis"AUTO".- id str
- The provider-assigned unique ID for this managed resource.
- issuer str
The complete URL for a Custom Authorization Server. This becomes the
issclaim in an access token.- kid str
The ID of the JSON Web Key used for signing tokens issued by the authorization server.
Look up an Existing Server Resource
Get an existing Server 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?: ServerState, opts?: CustomResourceOptions): Serverstatic get(resource_name, id, opts=None, audiences=None, credentials_last_rotated=None, credentials_next_rotation=None, credentials_rotation_mode=None, description=None, issuer=None, issuer_mode=None, kid=None, name=None, status=None, __props__=None);func GetServer(ctx *Context, name string, id IDInput, state *ServerState, opts ...ResourceOption) (*Server, error)public static Server Get(string name, Input<string> id, ServerState? 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:
- Audiences List<string>
The recipients that the tokens are intended for. This becomes the
audclaim in an access token.- Credentials
Last stringRotated The timestamp when the authorization server started to use the
kidfor signing tokens.- Credentials
Next stringRotation The timestamp when the authorization server changes the key for signing tokens. Only returned when
credentials_rotation_modeis"AUTO".- Credentials
Rotation stringMode The key rotation mode for the authorization server. Can be
"AUTO"or"MANUAL".- Description string
The description of the authorization server.
- Issuer string
The complete URL for a Custom Authorization Server. This becomes the
issclaim in an access token.- Issuer
Mode string Allows you to use a custom issuer URL. It can be set to
"CUSTOM_URL"or"ORG_URL"- Kid string
The ID of the JSON Web Key used for signing tokens issued by the authorization server.
- Name string
The name of the authorization server.
- Status string
The status of the auth server. It defaults to
"ACTIVE"
- Audiences []string
The recipients that the tokens are intended for. This becomes the
audclaim in an access token.- Credentials
Last stringRotated The timestamp when the authorization server started to use the
kidfor signing tokens.- Credentials
Next stringRotation The timestamp when the authorization server changes the key for signing tokens. Only returned when
credentials_rotation_modeis"AUTO".- Credentials
Rotation stringMode The key rotation mode for the authorization server. Can be
"AUTO"or"MANUAL".- Description string
The description of the authorization server.
- Issuer string
The complete URL for a Custom Authorization Server. This becomes the
issclaim in an access token.- Issuer
Mode string Allows you to use a custom issuer URL. It can be set to
"CUSTOM_URL"or"ORG_URL"- Kid string
The ID of the JSON Web Key used for signing tokens issued by the authorization server.
- Name string
The name of the authorization server.
- Status string
The status of the auth server. It defaults to
"ACTIVE"
- audiences string[]
The recipients that the tokens are intended for. This becomes the
audclaim in an access token.- credentials
Last stringRotated The timestamp when the authorization server started to use the
kidfor signing tokens.- credentials
Next stringRotation The timestamp when the authorization server changes the key for signing tokens. Only returned when
credentials_rotation_modeis"AUTO".- credentials
Rotation stringMode The key rotation mode for the authorization server. Can be
"AUTO"or"MANUAL".- description string
The description of the authorization server.
- issuer string
The complete URL for a Custom Authorization Server. This becomes the
issclaim in an access token.- issuer
Mode string Allows you to use a custom issuer URL. It can be set to
"CUSTOM_URL"or"ORG_URL"- kid string
The ID of the JSON Web Key used for signing tokens issued by the authorization server.
- name string
The name of the authorization server.
- status string
The status of the auth server. It defaults to
"ACTIVE"
- audiences List[str]
The recipients that the tokens are intended for. This becomes the
audclaim in an access token.- credentials_
last_ strrotated The timestamp when the authorization server started to use the
kidfor signing tokens.- credentials_
next_ strrotation The timestamp when the authorization server changes the key for signing tokens. Only returned when
credentials_rotation_modeis"AUTO".- credentials_
rotation_ strmode The key rotation mode for the authorization server. Can be
"AUTO"or"MANUAL".- description str
The description of the authorization server.
- issuer str
The complete URL for a Custom Authorization Server. This becomes the
issclaim in an access token.- issuer_
mode str Allows you to use a custom issuer URL. It can be set to
"CUSTOM_URL"or"ORG_URL"- kid str
The ID of the JSON Web Key used for signing tokens issued by the authorization server.
- name str
The name of the authorization server.
- status str
The status of the auth server. It defaults to
"ACTIVE"
Package Details
- Repository
- https://github.com/pulumi/pulumi-okta
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oktaTerraform Provider.