getServerScopes

Use this data source to retrieve a list of authorization server scopes from Okta.

Example Usage

using Pulumi;
using Okta = Pulumi.Okta;

class MyStack : Stack
{
    public MyStack()
    {
        var test = Output.Create(Okta.Auth.GetServerScopes.InvokeAsync(new Okta.Auth.GetServerScopesArgs
        {
            AuthServerId = "default",
        }));
    }

}
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.GetServerScopes(ctx, &auth.GetServerScopesArgs{
			AuthServerId: "default",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_okta as okta

test = okta.auth.get_server_scopes(auth_server_id="default")
import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";

const test = pulumi.output(okta.auth.getServerScopes({
    authServerId: "default",
}, { async: true }));

Using getServerScopes

function getServerScopes(args: GetServerScopesArgs, opts?: InvokeOptions): Promise<GetServerScopesResult>
def get_server_scopes(auth_server_id: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetServerScopesResult
func GetServerScopes(ctx *Context, args *GetServerScopesArgs, opts ...InvokeOption) (*GetServerScopesResult, error)

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

public static class GetServerScopes {
    public static Task<GetServerScopesResult> InvokeAsync(GetServerScopesArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

AuthServerId string
Auth server ID.
AuthServerId string
Auth server ID.
authServerId string
Auth server ID.
auth_server_id str
Auth server ID.

getServerScopes Result

The following output properties are available:

AuthServerId string
Id string
The provider-assigned unique ID for this managed resource.
Scopes List<GetServerScopesScope>
collection of authorization server scopes retrieved from Okta with the following properties.
AuthServerId string
Id string
The provider-assigned unique ID for this managed resource.
Scopes []GetServerScopesScope
collection of authorization server scopes retrieved from Okta with the following properties.
authServerId string
id string
The provider-assigned unique ID for this managed resource.
scopes GetServerScopesScope[]
collection of authorization server scopes retrieved from Okta with the following properties.
auth_server_id str
id str
The provider-assigned unique ID for this managed resource.
scopes Sequence[GetServerScopesScope]
collection of authorization server scopes retrieved from Okta with the following properties.

Supporting Types

GetServerScopesScope

Consent string
Indicates whether a consent dialog is needed for the Scope
Default bool
Whether the Scope is a default Scope
Description string
Description of the Scope
Id string
ID of the Scope
MetadataPublish string
Whether the Scope should be included in the metadata
Name string
Name of the Scope
System bool
Whether Okta created the Scope
Consent string
Indicates whether a consent dialog is needed for the Scope
Default bool
Whether the Scope is a default Scope
Description string
Description of the Scope
Id string
ID of the Scope
MetadataPublish string
Whether the Scope should be included in the metadata
Name string
Name of the Scope
System bool
Whether Okta created the Scope
consent string
Indicates whether a consent dialog is needed for the Scope
default boolean
Whether the Scope is a default Scope
description string
Description of the Scope
id string
ID of the Scope
metadataPublish string
Whether the Scope should be included in the metadata
name string
Name of the Scope
system boolean
Whether Okta created the Scope
consent str
Indicates whether a consent dialog is needed for the Scope
default bool
Whether the Scope is a default Scope
description str
Description of the Scope
id str
ID of the Scope
metadata_publish str
Whether the Scope should be included in the metadata
name str
Name of the Scope
system bool
Whether Okta created the Scope

Package Details

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