getServer

Use this data source to retrieve an auth server from Okta.

Example Usage

using Pulumi;
using Okta = Pulumi.Okta;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Okta.Auth.GetServer.InvokeAsync(new Okta.Auth.GetServerArgs
        {
            Name = "Example Auth",
        }));
    }

}
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.LookupServer(ctx, &auth.LookupServerArgs{
			Name: "Example Auth",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_okta as okta

example = okta.auth.get_server(name="Example Auth")
import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";

const example = pulumi.output(okta.auth.getServer({
    name: "Example Auth",
}, { async: true }));

Using getServer

function getServer(args: GetServerArgs, opts?: InvokeOptions): Promise<GetServerResult>
def get_server(name: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetServerResult
func LookupServer(ctx *Context, args *LookupServerArgs, opts ...InvokeOption) (*LookupServerResult, error)

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

public static class GetServer {
    public static Task<GetServerResult> InvokeAsync(GetServerArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string
The name of the auth server to retrieve.
Name string
The name of the auth server to retrieve.
name string
The name of the auth server to retrieve.
name str
The name of the auth server to retrieve.

getServer Result

The following output properties are available:

Audiences List<string>
array of audiences.
CredentialsLastRotated string
last time credentials were rotated.
CredentialsNextRotation string
next time credentials will be rotated
CredentialsRotationMode string
mode of credential rotation, auto or manual.
Description string
description of Authorization server.
Id string
The provider-assigned unique ID for this managed resource.
Issuer string
The complete URL of the authorization server. This becomes the iss claim in an access token.
IssuerMode string
Can be set to "CUSTOM_URL" or "ORG_URL"
Kid string
auth server key id.
Name string
The name of the auth server.
Status string
the activation status of the authorization server.
Audiences []string
array of audiences.
CredentialsLastRotated string
last time credentials were rotated.
CredentialsNextRotation string
next time credentials will be rotated
CredentialsRotationMode string
mode of credential rotation, auto or manual.
Description string
description of Authorization server.
Id string
The provider-assigned unique ID for this managed resource.
Issuer string
The complete URL of the authorization server. This becomes the iss claim in an access token.
IssuerMode string
Can be set to "CUSTOM_URL" or "ORG_URL"
Kid string
auth server key id.
Name string
The name of the auth server.
Status string
the activation status of the authorization server.
audiences string[]
array of audiences.
credentialsLastRotated string
last time credentials were rotated.
credentialsNextRotation string
next time credentials will be rotated
credentialsRotationMode string
mode of credential rotation, auto or manual.
description string
description of Authorization server.
id string
The provider-assigned unique ID for this managed resource.
issuer string
The complete URL of the authorization server. This becomes the iss claim in an access token.
issuerMode string
Can be set to "CUSTOM_URL" or "ORG_URL"
kid string
auth server key id.
name string
The name of the auth server.
status string
the activation status of the authorization server.
audiences Sequence[str]
array of audiences.
credentials_last_rotated str
last time credentials were rotated.
credentials_next_rotation str
next time credentials will be rotated
credentials_rotation_mode str
mode of credential rotation, auto or manual.
description str
description of Authorization server.
id str
The provider-assigned unique ID for this managed resource.
issuer str
The complete URL of the authorization server. This becomes the iss claim in an access token.
issuer_mode str
Can be set to "CUSTOM_URL" or "ORG_URL"
kid str
auth server key id.
name str
The name of the auth server.
status str
the activation status of the authorization server.

Package Details

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