1. Packages
  2. Okta Provider
  3. API Docs
  4. auth
  5. getServerClients
Okta v6.2.0 published on Thursday, Dec 11, 2025 by Pulumi
okta logo
Okta v6.2.0 published on Thursday, Dec 11, 2025 by Pulumi

    Get OAuth 2.0 refresh token information for an authorization server client from Okta.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as okta from "@pulumi/okta";
    
    const example = okta.auth.getServerClients({
        id: "oar123456abcdefghijklm",
        authServerId: "aus123456abcdefghijklm",
        clientId: "0oa123456abcdefghijklm",
    });
    
    import pulumi
    import pulumi_okta as okta
    
    example = okta.auth.get_server_clients(id="oar123456abcdefghijklm",
        auth_server_id="aus123456abcdefghijklm",
        client_id="0oa123456abcdefghijklm")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-okta/sdk/v6/go/okta/auth"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := auth.GetServerClients(ctx, &auth.GetServerClientsArgs{
    			Id:           "oar123456abcdefghijklm",
    			AuthServerId: "aus123456abcdefghijklm",
    			ClientId:     "0oa123456abcdefghijklm",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Okta = Pulumi.Okta;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Okta.Auth.GetServerClients.Invoke(new()
        {
            Id = "oar123456abcdefghijklm",
            AuthServerId = "aus123456abcdefghijklm",
            ClientId = "0oa123456abcdefghijklm",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.okta.auth.AuthFunctions;
    import com.pulumi.okta.auth.inputs.GetServerClientsArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var example = AuthFunctions.getServerClients(GetServerClientsArgs.builder()
                .id("oar123456abcdefghijklm")
                .authServerId("aus123456abcdefghijklm")
                .clientId("0oa123456abcdefghijklm")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: okta:auth:getServerClients
          arguments:
            id: oar123456abcdefghijklm
            authServerId: aus123456abcdefghijklm
            clientId: 0oa123456abcdefghijklm
    

    Using getServerClients

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getServerClients(args: GetServerClientsArgs, opts?: InvokeOptions): Promise<GetServerClientsResult>
    function getServerClientsOutput(args: GetServerClientsOutputArgs, opts?: InvokeOptions): Output<GetServerClientsResult>
    def get_server_clients(auth_server_id: Optional[str] = None,
                           client_id: Optional[str] = None,
                           id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetServerClientsResult
    def get_server_clients_output(auth_server_id: Optional[pulumi.Input[str]] = None,
                           client_id: Optional[pulumi.Input[str]] = None,
                           id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetServerClientsResult]
    func GetServerClients(ctx *Context, args *GetServerClientsArgs, opts ...InvokeOption) (*GetServerClientsResult, error)
    func GetServerClientsOutput(ctx *Context, args *GetServerClientsOutputArgs, opts ...InvokeOption) GetServerClientsResultOutput

    > Note: This function is named GetServerClients in the Go SDK.

    public static class GetServerClients 
    {
        public static Task<GetServerClientsResult> InvokeAsync(GetServerClientsArgs args, InvokeOptions? opts = null)
        public static Output<GetServerClientsResult> Invoke(GetServerClientsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetServerClientsResult> getServerClients(GetServerClientsArgs args, InvokeOptions options)
    public static Output<GetServerClientsResult> getServerClients(GetServerClientsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: okta:auth/getServerClients:getServerClients
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AuthServerId string
    The ID of the authorization server.
    ClientId string
    The client ID of the app.
    Id string
    The ID of the token.
    AuthServerId string
    The ID of the authorization server.
    ClientId string
    The client ID of the app.
    Id string
    The ID of the token.
    authServerId String
    The ID of the authorization server.
    clientId String
    The client ID of the app.
    id String
    The ID of the token.
    authServerId string
    The ID of the authorization server.
    clientId string
    The client ID of the app.
    id string
    The ID of the token.
    auth_server_id str
    The ID of the authorization server.
    client_id str
    The client ID of the app.
    id str
    The ID of the token.
    authServerId String
    The ID of the authorization server.
    clientId String
    The client ID of the app.
    id String
    The ID of the token.

    getServerClients Result

    The following output properties are available:

    AuthServerId string
    The ID of the authorization server.
    ClientId string
    The client ID of the app.
    Created string
    Timestamp when the object was created.
    ExpiresAt string
    Expiration time of the OAuth 2.0 Token.
    Id string
    The ID of the token.
    Issuer string
    The complete URL of the authorization server that issued the Token
    LastUpdated string
    Timestamp when the object was last updated.
    Scopes List<string>
    The scope names attached to the Token.
    Status string
    The status URI of the OAuth 2.0 application.
    UserId string
    The ID of the user associated with the Token.
    AuthServerId string
    The ID of the authorization server.
    ClientId string
    The client ID of the app.
    Created string
    Timestamp when the object was created.
    ExpiresAt string
    Expiration time of the OAuth 2.0 Token.
    Id string
    The ID of the token.
    Issuer string
    The complete URL of the authorization server that issued the Token
    LastUpdated string
    Timestamp when the object was last updated.
    Scopes []string
    The scope names attached to the Token.
    Status string
    The status URI of the OAuth 2.0 application.
    UserId string
    The ID of the user associated with the Token.
    authServerId String
    The ID of the authorization server.
    clientId String
    The client ID of the app.
    created String
    Timestamp when the object was created.
    expiresAt String
    Expiration time of the OAuth 2.0 Token.
    id String
    The ID of the token.
    issuer String
    The complete URL of the authorization server that issued the Token
    lastUpdated String
    Timestamp when the object was last updated.
    scopes List<String>
    The scope names attached to the Token.
    status String
    The status URI of the OAuth 2.0 application.
    userId String
    The ID of the user associated with the Token.
    authServerId string
    The ID of the authorization server.
    clientId string
    The client ID of the app.
    created string
    Timestamp when the object was created.
    expiresAt string
    Expiration time of the OAuth 2.0 Token.
    id string
    The ID of the token.
    issuer string
    The complete URL of the authorization server that issued the Token
    lastUpdated string
    Timestamp when the object was last updated.
    scopes string[]
    The scope names attached to the Token.
    status string
    The status URI of the OAuth 2.0 application.
    userId string
    The ID of the user associated with the Token.
    auth_server_id str
    The ID of the authorization server.
    client_id str
    The client ID of the app.
    created str
    Timestamp when the object was created.
    expires_at str
    Expiration time of the OAuth 2.0 Token.
    id str
    The ID of the token.
    issuer str
    The complete URL of the authorization server that issued the Token
    last_updated str
    Timestamp when the object was last updated.
    scopes Sequence[str]
    The scope names attached to the Token.
    status str
    The status URI of the OAuth 2.0 application.
    user_id str
    The ID of the user associated with the Token.
    authServerId String
    The ID of the authorization server.
    clientId String
    The client ID of the app.
    created String
    Timestamp when the object was created.
    expiresAt String
    Expiration time of the OAuth 2.0 Token.
    id String
    The ID of the token.
    issuer String
    The complete URL of the authorization server that issued the Token
    lastUpdated String
    Timestamp when the object was last updated.
    scopes List<String>
    The scope names attached to the Token.
    status String
    The status URI of the OAuth 2.0 application.
    userId String
    The ID of the user associated with the Token.

    Package Details

    Repository
    Okta pulumi/pulumi-okta
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the okta Terraform Provider.
    okta logo
    Okta v6.2.0 published on Thursday, Dec 11, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate