All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
AdminRealmsRealmClientsClientUuidClientSecretGet | Get /admin/realms/{realm}/clients/{client-uuid}/client-secret | Get the client secret |
AdminRealmsRealmClientsClientUuidClientSecretPost | Post /admin/realms/{realm}/clients/{client-uuid}/client-secret | Generate a new secret for the client |
AdminRealmsRealmClientsClientUuidClientSecretRotatedDelete | Delete /admin/realms/{realm}/clients/{client-uuid}/client-secret/rotated | Invalidate the rotated secret for the client |
AdminRealmsRealmClientsClientUuidClientSecretRotatedGet | Get /admin/realms/{realm}/clients/{client-uuid}/client-secret/rotated | Get the rotated client secret |
AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdDelete | Delete /admin/realms/{realm}/clients/{client-uuid}/default-client-scopes/{clientScopeId} | |
AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdPut | Put /admin/realms/{realm}/clients/{client-uuid}/default-client-scopes/{clientScopeId} | |
AdminRealmsRealmClientsClientUuidDefaultClientScopesGet | Get /admin/realms/{realm}/clients/{client-uuid}/default-client-scopes | Get default client scopes. Only name and ids are returned. |
AdminRealmsRealmClientsClientUuidDelete | Delete /admin/realms/{realm}/clients/{client-uuid} | Delete the client |
AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGet | Get /admin/realms/{realm}/clients/{client-uuid}/evaluate-scopes/generate-example-access-token | Create JSON with payload of example access token |
AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGet | Get /admin/realms/{realm}/clients/{client-uuid}/evaluate-scopes/generate-example-id-token | Create JSON with payload of example id token |
AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGet | Get /admin/realms/{realm}/clients/{client-uuid}/evaluate-scopes/generate-example-userinfo | Create JSON with payload of example user info |
AdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGet | Get /admin/realms/{realm}/clients/{client-uuid}/evaluate-scopes/protocol-mappers | Return list of all protocol mappers, which will be used when generating tokens issued for particular client. |
AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrantedGet | Get /admin/realms/{realm}/clients/{client-uuid}/evaluate-scopes/scope-mappings/{roleContainerId}/granted | Get effective scope mapping of all roles of particular role container, which this client is defacto allowed to have in the accessToken issued for him. |
AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGet | Get /admin/realms/{realm}/clients/{client-uuid}/evaluate-scopes/scope-mappings/{roleContainerId}/not-granted | Get roles, which this client doesn't have scope for and can't have them in the accessToken issued for him. |
AdminRealmsRealmClientsClientUuidGet | Get /admin/realms/{realm}/clients/{client-uuid} | Get representation of the client |
AdminRealmsRealmClientsClientUuidInstallationProvidersProviderIdGet | Get /admin/realms/{realm}/clients/{client-uuid}/installation/providers/{providerId} | |
AdminRealmsRealmClientsClientUuidManagementPermissionsGet | Get /admin/realms/{realm}/clients/{client-uuid}/management/permissions | Return object stating whether client Authorization permissions have been initialized or not and a reference |
AdminRealmsRealmClientsClientUuidManagementPermissionsPut | Put /admin/realms/{realm}/clients/{client-uuid}/management/permissions | Return object stating whether client Authorization permissions have been initialized or not and a reference |
AdminRealmsRealmClientsClientUuidNodesNodeDelete | Delete /admin/realms/{realm}/clients/{client-uuid}/nodes/{node} | Unregister a cluster node from the client |
AdminRealmsRealmClientsClientUuidNodesPost | Post /admin/realms/{realm}/clients/{client-uuid}/nodes | Register a cluster node with the client Manually register cluster node to this client - usually it’s not needed to call this directly as adapter should handle by sending registration request to Keycloak |
AdminRealmsRealmClientsClientUuidOfflineSessionCountGet | Get /admin/realms/{realm}/clients/{client-uuid}/offline-session-count | Get application offline session count Returns a number of offline user sessions associated with this client { "count": number } |
AdminRealmsRealmClientsClientUuidOfflineSessionsGet | Get /admin/realms/{realm}/clients/{client-uuid}/offline-sessions | Get offline sessions for client Returns a list of offline user sessions associated with this client |
AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdDelete | Delete /admin/realms/{realm}/clients/{client-uuid}/optional-client-scopes/{clientScopeId} | |
AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdPut | Put /admin/realms/{realm}/clients/{client-uuid}/optional-client-scopes/{clientScopeId} | |
AdminRealmsRealmClientsClientUuidOptionalClientScopesGet | Get /admin/realms/{realm}/clients/{client-uuid}/optional-client-scopes | Get optional client scopes. Only name and ids are returned. |
AdminRealmsRealmClientsClientUuidPushRevocationPost | Post /admin/realms/{realm}/clients/{client-uuid}/push-revocation | Push the client's revocation policy to its admin URL If the client has an admin URL, push revocation policy to it. |
AdminRealmsRealmClientsClientUuidPut | Put /admin/realms/{realm}/clients/{client-uuid} | Update the client |
AdminRealmsRealmClientsClientUuidRegistrationAccessTokenPost | Post /admin/realms/{realm}/clients/{client-uuid}/registration-access-token | Generate a new registration access token for the client |
AdminRealmsRealmClientsClientUuidServiceAccountUserGet | Get /admin/realms/{realm}/clients/{client-uuid}/service-account-user | Get a user dedicated to the service account |
AdminRealmsRealmClientsClientUuidSessionCountGet | Get /admin/realms/{realm}/clients/{client-uuid}/session-count | Get application session count Returns a number of user sessions associated with this client { "count": number } |
AdminRealmsRealmClientsClientUuidTestNodesAvailableGet | Get /admin/realms/{realm}/clients/{client-uuid}/test-nodes-available | Test if registered cluster nodes are available Tests availability by sending 'ping' request to all cluster nodes. |
AdminRealmsRealmClientsClientUuidUserSessionsGet | Get /admin/realms/{realm}/clients/{client-uuid}/user-sessions | Get user sessions for client Returns a list of user sessions associated with this client |
AdminRealmsRealmClientsGet | Get /admin/realms/{realm}/clients | Get clients belonging to the realm. |
AdminRealmsRealmClientsPost | Post /admin/realms/{realm}/clients | Create a new client Client’s client_id must be unique! |
CredentialRepresentation AdminRealmsRealmClientsClientUuidClientSecretGet(ctx, realm, clientUuid).Execute()
Get the client secret
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)
func main() {
realm := "realm_example" // string | realm name (not id!)
clientUuid := "clientUuid_example" // string | id of client (not client-id!)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidClientSecretGet(context.Background(), realm, clientUuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidClientSecretGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AdminRealmsRealmClientsClientUuidClientSecretGet`: CredentialRepresentation
fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidClientSecretGet`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
realm | string | realm name (not id!) | |
clientUuid | string | id of client (not client-id!) |
Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidClientSecretGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CredentialRepresentation AdminRealmsRealmClientsClientUuidClientSecretPost(ctx, realm, clientUuid).Execute()
Generate a new secret for the client
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)
func main() {
realm := "realm_example" // string | realm name (not id!)
clientUuid := "clientUuid_example" // string | id of client (not client-id!)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidClientSecretPost(context.Background(), realm, clientUuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidClientSecretPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AdminRealmsRealmClientsClientUuidClientSecretPost`: CredentialRepresentation
fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidClientSecretPost`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
realm | string | realm name (not id!) | |
clientUuid | string | id of client (not client-id!) |
Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidClientSecretPostRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AdminRealmsRealmClientsClientUuidClientSecretRotatedDelete(ctx, realm, clientUuid).Execute()
Invalidate the rotated secret for the client
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)
func main() {
realm := "realm_example" // string | realm name (not id!)
clientUuid := "clientUuid_example" // string | id of client (not client-id!)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidClientSecretRotatedDelete(context.Background(), realm, clientUuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidClientSecretRotatedDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
realm | string | realm name (not id!) | |
clientUuid | string | id of client (not client-id!) |
Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidClientSecretRotatedDeleteRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CredentialRepresentation AdminRealmsRealmClientsClientUuidClientSecretRotatedGet(ctx, realm, clientUuid).Execute()
Get the rotated client secret
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)
func main() {
realm := "realm_example" // string | realm name (not id!)
clientUuid := "clientUuid_example" // string | id of client (not client-id!)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidClientSecretRotatedGet(context.Background(), realm, clientUuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidClientSecretRotatedGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AdminRealmsRealmClientsClientUuidClientSecretRotatedGet`: CredentialRepresentation
fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidClientSecretRotatedGet`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
realm | string | realm name (not id!) | |
clientUuid | string | id of client (not client-id!) |
Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidClientSecretRotatedGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdDelete(ctx, realm, clientUuid, clientScopeId).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)
func main() {
realm := "realm_example" // string | realm name (not id!)
clientUuid := "clientUuid_example" // string | id of client (not client-id!)
clientScopeId := "clientScopeId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdDelete(context.Background(), realm, clientUuid, clientScopeId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
realm | string | realm name (not id!) | |
clientUuid | string | id of client (not client-id!) | |
clientScopeId | string |
Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdDeleteRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdPut(ctx, realm, clientUuid, clientScopeId).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)
func main() {
realm := "realm_example" // string | realm name (not id!)
clientUuid := "clientUuid_example" // string | id of client (not client-id!)
clientScopeId := "clientScopeId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdPut(context.Background(), realm, clientUuid, clientScopeId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
realm | string | realm name (not id!) | |
clientUuid | string | id of client (not client-id!) | |
clientScopeId | string |
Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdPutRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ClientScopeRepresentation AdminRealmsRealmClientsClientUuidDefaultClientScopesGet(ctx, realm, clientUuid).Execute()
Get default client scopes. Only name and ids are returned.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)
func main() {
realm := "realm_example" // string | realm name (not id!)
clientUuid := "clientUuid_example" // string | id of client (not client-id!)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidDefaultClientScopesGet(context.Background(), realm, clientUuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidDefaultClientScopesGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AdminRealmsRealmClientsClientUuidDefaultClientScopesGet`: []ClientScopeRepresentation
fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidDefaultClientScopesGet`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
realm | string | realm name (not id!) | |
clientUuid | string | id of client (not client-id!) |
Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidDefaultClientScopesGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AdminRealmsRealmClientsClientUuidDelete(ctx, realm, clientUuid).Execute()
Delete the client
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)
func main() {
realm := "realm_example" // string | realm name (not id!)
clientUuid := "clientUuid_example" // string | id of client (not client-id!)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidDelete(context.Background(), realm, clientUuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
realm | string | realm name (not id!) | |
clientUuid | string | id of client (not client-id!) |
Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidDeleteRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AccessToken AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGet(ctx, realm, clientUuid).Scope(scope).UserId(userId).Execute()
Create JSON with payload of example access token
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)
func main() {
realm := "realm_example" // string | realm name (not id!)
clientUuid := "clientUuid_example" // string | id of client (not client-id!)
scope := "scope_example" // string | (optional)
userId := "userId_example" // string | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGet(context.Background(), realm, clientUuid).Scope(scope).UserId(userId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGet`: AccessToken
fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGet`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
realm | string | realm name (not id!) | |
clientUuid | string | id of client (not client-id!) |
Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
scope | string | | userId | string | |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
IDToken AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGet(ctx, realm, clientUuid).Scope(scope).UserId(userId).Execute()
Create JSON with payload of example id token
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)
func main() {
realm := "realm_example" // string | realm name (not id!)
clientUuid := "clientUuid_example" // string | id of client (not client-id!)
scope := "scope_example" // string | (optional)
userId := "userId_example" // string | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGet(context.Background(), realm, clientUuid).Scope(scope).UserId(userId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGet`: IDToken
fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGet`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
realm | string | realm name (not id!) | |
clientUuid | string | id of client (not client-id!) |
Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
scope | string | | userId | string | |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
map[string]interface{} AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGet(ctx, realm, clientUuid).Scope(scope).UserId(userId).Execute()
Create JSON with payload of example user info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)
func main() {
realm := "realm_example" // string | realm name (not id!)
clientUuid := "clientUuid_example" // string | id of client (not client-id!)
scope := "scope_example" // string | (optional)
userId := "userId_example" // string | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGet(context.Background(), realm, clientUuid).Scope(scope).UserId(userId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGet`: map[string]interface{}
fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGet`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
realm | string | realm name (not id!) | |
clientUuid | string | id of client (not client-id!) |
Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
scope | string | | userId | string | |
map[string]interface{}
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ProtocolMapperEvaluationRepresentation AdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGet(ctx, realm, clientUuid).Scope(scope).Execute()
Return list of all protocol mappers, which will be used when generating tokens issued for particular client.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)
func main() {
realm := "realm_example" // string | realm name (not id!)
clientUuid := "clientUuid_example" // string | id of client (not client-id!)
scope := "scope_example" // string | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGet(context.Background(), realm, clientUuid).Scope(scope).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGet`: []ProtocolMapperEvaluationRepresentation
fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGet`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
realm | string | realm name (not id!) | |
clientUuid | string | id of client (not client-id!) |
Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
scope | string | |
[]ProtocolMapperEvaluationRepresentation
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]RoleRepresentation AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrantedGet(ctx, realm, clientUuid, roleContainerId).Scope(scope).Execute()
Get effective scope mapping of all roles of particular role container, which this client is defacto allowed to have in the accessToken issued for him.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)
func main() {
realm := "realm_example" // string | realm name (not id!)
clientUuid := "clientUuid_example" // string | id of client (not client-id!)
roleContainerId := "roleContainerId_example" // string | either realm name OR client UUID
scope := "scope_example" // string | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrantedGet(context.Background(), realm, clientUuid, roleContainerId).Scope(scope).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrantedGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrantedGet`: []RoleRepresentation
fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrantedGet`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
realm | string | realm name (not id!) | |
clientUuid | string | id of client (not client-id!) | |
roleContainerId | string | either realm name OR client UUID |
Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrantedGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
scope | string | |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]RoleRepresentation AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGet(ctx, realm, clientUuid, roleContainerId).Scope(scope).Execute()
Get roles, which this client doesn't have scope for and can't have them in the accessToken issued for him.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)
func main() {
realm := "realm_example" // string | realm name (not id!)
clientUuid := "clientUuid_example" // string | id of client (not client-id!)
roleContainerId := "roleContainerId_example" // string | either realm name OR client UUID
scope := "scope_example" // string | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGet(context.Background(), realm, clientUuid, roleContainerId).Scope(scope).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGet`: []RoleRepresentation
fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGet`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
realm | string | realm name (not id!) | |
clientUuid | string | id of client (not client-id!) | |
roleContainerId | string | either realm name OR client UUID |
Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
scope | string | |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ClientRepresentation AdminRealmsRealmClientsClientUuidGet(ctx, realm, clientUuid).Execute()
Get representation of the client
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)
func main() {
realm := "realm_example" // string | realm name (not id!)
clientUuid := "clientUuid_example" // string | id of client (not client-id!)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidGet(context.Background(), realm, clientUuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AdminRealmsRealmClientsClientUuidGet`: ClientRepresentation
fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidGet`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
realm | string | realm name (not id!) | |
clientUuid | string | id of client (not client-id!) |
Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AdminRealmsRealmClientsClientUuidInstallationProvidersProviderIdGet(ctx, realm, clientUuid, providerId).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)
func main() {
realm := "realm_example" // string | realm name (not id!)
clientUuid := "clientUuid_example" // string | id of client (not client-id!)
providerId := "providerId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidInstallationProvidersProviderIdGet(context.Background(), realm, clientUuid, providerId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidInstallationProvidersProviderIdGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
realm | string | realm name (not id!) | |
clientUuid | string | id of client (not client-id!) | |
providerId | string |
Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidInstallationProvidersProviderIdGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ManagementPermissionReference AdminRealmsRealmClientsClientUuidManagementPermissionsGet(ctx, realm, clientUuid).Execute()
Return object stating whether client Authorization permissions have been initialized or not and a reference
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)
func main() {
realm := "realm_example" // string | realm name (not id!)
clientUuid := "clientUuid_example" // string | id of client (not client-id!)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidManagementPermissionsGet(context.Background(), realm, clientUuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidManagementPermissionsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AdminRealmsRealmClientsClientUuidManagementPermissionsGet`: ManagementPermissionReference
fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidManagementPermissionsGet`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
realm | string | realm name (not id!) | |
clientUuid | string | id of client (not client-id!) |
Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidManagementPermissionsGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ManagementPermissionReference AdminRealmsRealmClientsClientUuidManagementPermissionsPut(ctx, realm, clientUuid).ManagementPermissionReference(managementPermissionReference).Execute()
Return object stating whether client Authorization permissions have been initialized or not and a reference
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)
func main() {
realm := "realm_example" // string | realm name (not id!)
clientUuid := "clientUuid_example" // string | id of client (not client-id!)
managementPermissionReference := *openapiclient.NewManagementPermissionReference() // ManagementPermissionReference | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidManagementPermissionsPut(context.Background(), realm, clientUuid).ManagementPermissionReference(managementPermissionReference).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidManagementPermissionsPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AdminRealmsRealmClientsClientUuidManagementPermissionsPut`: ManagementPermissionReference
fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidManagementPermissionsPut`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
realm | string | realm name (not id!) | |
clientUuid | string | id of client (not client-id!) |
Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidManagementPermissionsPutRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
managementPermissionReference | ManagementPermissionReference | |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AdminRealmsRealmClientsClientUuidNodesNodeDelete(ctx, realm, clientUuid, node).Execute()
Unregister a cluster node from the client
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)
func main() {
realm := "realm_example" // string | realm name (not id!)
clientUuid := "clientUuid_example" // string | id of client (not client-id!)
node := "node_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidNodesNodeDelete(context.Background(), realm, clientUuid, node).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidNodesNodeDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
realm | string | realm name (not id!) | |
clientUuid | string | id of client (not client-id!) | |
node | string |
Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidNodesNodeDeleteRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AdminRealmsRealmClientsClientUuidNodesPost(ctx, realm, clientUuid).RequestBody(requestBody).Execute()
Register a cluster node with the client Manually register cluster node to this client - usually it’s not needed to call this directly as adapter should handle by sending registration request to Keycloak
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)
func main() {
realm := "realm_example" // string | realm name (not id!)
clientUuid := "clientUuid_example" // string | id of client (not client-id!)
requestBody := map[string]string{"key": "Inner_example"} // map[string]string | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidNodesPost(context.Background(), realm, clientUuid).RequestBody(requestBody).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidNodesPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
realm | string | realm name (not id!) | |
clientUuid | string | id of client (not client-id!) |
Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidNodesPostRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
requestBody | map[string]string | |
(empty response body)
No authorization required
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
map[string]int64 AdminRealmsRealmClientsClientUuidOfflineSessionCountGet(ctx, realm, clientUuid).Execute()
Get application offline session count Returns a number of offline user sessions associated with this client { "count": number }
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)
func main() {
realm := "realm_example" // string | realm name (not id!)
clientUuid := "clientUuid_example" // string | id of client (not client-id!)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidOfflineSessionCountGet(context.Background(), realm, clientUuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidOfflineSessionCountGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AdminRealmsRealmClientsClientUuidOfflineSessionCountGet`: map[string]int64
fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidOfflineSessionCountGet`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
realm | string | realm name (not id!) | |
clientUuid | string | id of client (not client-id!) |
Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidOfflineSessionCountGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
map[string]int64
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]UserSessionRepresentation AdminRealmsRealmClientsClientUuidOfflineSessionsGet(ctx, realm, clientUuid).First(first).Max(max).Execute()
Get offline sessions for client Returns a list of offline user sessions associated with this client
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)
func main() {
realm := "realm_example" // string | realm name (not id!)
clientUuid := "clientUuid_example" // string | id of client (not client-id!)
first := int32(56) // int32 | Paging offset (optional)
max := int32(56) // int32 | Maximum results size (defaults to 100) (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidOfflineSessionsGet(context.Background(), realm, clientUuid).First(first).Max(max).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidOfflineSessionsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AdminRealmsRealmClientsClientUuidOfflineSessionsGet`: []UserSessionRepresentation
fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidOfflineSessionsGet`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
realm | string | realm name (not id!) | |
clientUuid | string | id of client (not client-id!) |
Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidOfflineSessionsGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
first | int32 | Paging offset | max | int32 | Maximum results size (defaults to 100) |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdDelete(ctx, realm, clientUuid, clientScopeId).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)
func main() {
realm := "realm_example" // string | realm name (not id!)
clientUuid := "clientUuid_example" // string | id of client (not client-id!)
clientScopeId := "clientScopeId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdDelete(context.Background(), realm, clientUuid, clientScopeId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
realm | string | realm name (not id!) | |
clientUuid | string | id of client (not client-id!) | |
clientScopeId | string |
Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdDeleteRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdPut(ctx, realm, clientUuid, clientScopeId).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)
func main() {
realm := "realm_example" // string | realm name (not id!)
clientUuid := "clientUuid_example" // string | id of client (not client-id!)
clientScopeId := "clientScopeId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdPut(context.Background(), realm, clientUuid, clientScopeId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
realm | string | realm name (not id!) | |
clientUuid | string | id of client (not client-id!) | |
clientScopeId | string |
Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdPutRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ClientScopeRepresentation AdminRealmsRealmClientsClientUuidOptionalClientScopesGet(ctx, realm, clientUuid).Execute()
Get optional client scopes. Only name and ids are returned.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)
func main() {
realm := "realm_example" // string | realm name (not id!)
clientUuid := "clientUuid_example" // string | id of client (not client-id!)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidOptionalClientScopesGet(context.Background(), realm, clientUuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidOptionalClientScopesGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AdminRealmsRealmClientsClientUuidOptionalClientScopesGet`: []ClientScopeRepresentation
fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidOptionalClientScopesGet`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
realm | string | realm name (not id!) | |
clientUuid | string | id of client (not client-id!) |
Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidOptionalClientScopesGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GlobalRequestResult AdminRealmsRealmClientsClientUuidPushRevocationPost(ctx, realm, clientUuid).Execute()
Push the client's revocation policy to its admin URL If the client has an admin URL, push revocation policy to it.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)
func main() {
realm := "realm_example" // string | realm name (not id!)
clientUuid := "clientUuid_example" // string | id of client (not client-id!)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidPushRevocationPost(context.Background(), realm, clientUuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidPushRevocationPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AdminRealmsRealmClientsClientUuidPushRevocationPost`: GlobalRequestResult
fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidPushRevocationPost`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
realm | string | realm name (not id!) | |
clientUuid | string | id of client (not client-id!) |
Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidPushRevocationPostRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AdminRealmsRealmClientsClientUuidPut(ctx, realm, clientUuid).ClientRepresentation(clientRepresentation).Execute()
Update the client
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)
func main() {
realm := "realm_example" // string | realm name (not id!)
clientUuid := "clientUuid_example" // string | id of client (not client-id!)
clientRepresentation := *openapiclient.NewClientRepresentation() // ClientRepresentation | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidPut(context.Background(), realm, clientUuid).ClientRepresentation(clientRepresentation).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
realm | string | realm name (not id!) | |
clientUuid | string | id of client (not client-id!) |
Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidPutRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
clientRepresentation | ClientRepresentation | |
(empty response body)
No authorization required
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ClientRepresentation AdminRealmsRealmClientsClientUuidRegistrationAccessTokenPost(ctx, realm, clientUuid).Execute()
Generate a new registration access token for the client
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)
func main() {
realm := "realm_example" // string | realm name (not id!)
clientUuid := "clientUuid_example" // string | id of client (not client-id!)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidRegistrationAccessTokenPost(context.Background(), realm, clientUuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidRegistrationAccessTokenPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AdminRealmsRealmClientsClientUuidRegistrationAccessTokenPost`: ClientRepresentation
fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidRegistrationAccessTokenPost`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
realm | string | realm name (not id!) | |
clientUuid | string | id of client (not client-id!) |
Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidRegistrationAccessTokenPostRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserRepresentation AdminRealmsRealmClientsClientUuidServiceAccountUserGet(ctx, realm, clientUuid).Execute()
Get a user dedicated to the service account
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)
func main() {
realm := "realm_example" // string | realm name (not id!)
clientUuid := "clientUuid_example" // string | id of client (not client-id!)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidServiceAccountUserGet(context.Background(), realm, clientUuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidServiceAccountUserGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AdminRealmsRealmClientsClientUuidServiceAccountUserGet`: UserRepresentation
fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidServiceAccountUserGet`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
realm | string | realm name (not id!) | |
clientUuid | string | id of client (not client-id!) |
Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidServiceAccountUserGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
map[string]int64 AdminRealmsRealmClientsClientUuidSessionCountGet(ctx, realm, clientUuid).Execute()
Get application session count Returns a number of user sessions associated with this client { "count": number }
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)
func main() {
realm := "realm_example" // string | realm name (not id!)
clientUuid := "clientUuid_example" // string | id of client (not client-id!)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidSessionCountGet(context.Background(), realm, clientUuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidSessionCountGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AdminRealmsRealmClientsClientUuidSessionCountGet`: map[string]int64
fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidSessionCountGet`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
realm | string | realm name (not id!) | |
clientUuid | string | id of client (not client-id!) |
Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidSessionCountGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
map[string]int64
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GlobalRequestResult AdminRealmsRealmClientsClientUuidTestNodesAvailableGet(ctx, realm, clientUuid).Execute()
Test if registered cluster nodes are available Tests availability by sending 'ping' request to all cluster nodes.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)
func main() {
realm := "realm_example" // string | realm name (not id!)
clientUuid := "clientUuid_example" // string | id of client (not client-id!)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidTestNodesAvailableGet(context.Background(), realm, clientUuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidTestNodesAvailableGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AdminRealmsRealmClientsClientUuidTestNodesAvailableGet`: GlobalRequestResult
fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidTestNodesAvailableGet`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
realm | string | realm name (not id!) | |
clientUuid | string | id of client (not client-id!) |
Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidTestNodesAvailableGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]UserSessionRepresentation AdminRealmsRealmClientsClientUuidUserSessionsGet(ctx, realm, clientUuid).First(first).Max(max).Execute()
Get user sessions for client Returns a list of user sessions associated with this client
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)
func main() {
realm := "realm_example" // string | realm name (not id!)
clientUuid := "clientUuid_example" // string | id of client (not client-id!)
first := int32(56) // int32 | Paging offset (optional)
max := int32(56) // int32 | Maximum results size (defaults to 100) (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsClientUuidUserSessionsGet(context.Background(), realm, clientUuid).First(first).Max(max).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsClientUuidUserSessionsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AdminRealmsRealmClientsClientUuidUserSessionsGet`: []UserSessionRepresentation
fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsClientUuidUserSessionsGet`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
realm | string | realm name (not id!) | |
clientUuid | string | id of client (not client-id!) |
Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidUserSessionsGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
first | int32 | Paging offset | max | int32 | Maximum results size (defaults to 100) |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ClientRepresentation AdminRealmsRealmClientsGet(ctx, realm).ClientId(clientId).First(first).Max(max).Q(q).Search(search).ViewableOnly(viewableOnly).Execute()
Get clients belonging to the realm.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)
func main() {
realm := "realm_example" // string | realm name (not id!)
clientId := "clientId_example" // string | filter by clientId (optional)
first := int32(56) // int32 | the first result (optional)
max := int32(56) // int32 | the max results to return (optional)
q := "q_example" // string | (optional)
search := true // bool | whether this is a search query or a getClientById query (optional) (default to false)
viewableOnly := true // bool | filter clients that cannot be viewed in full by admin (optional) (default to false)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsGet(context.Background(), realm).ClientId(clientId).First(first).Max(max).Q(q).Search(search).ViewableOnly(viewableOnly).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AdminRealmsRealmClientsGet`: []ClientRepresentation
fmt.Fprintf(os.Stdout, "Response from `ClientsAPI.AdminRealmsRealmClientsGet`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
realm | string | realm name (not id!) |
Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
clientId | string | filter by clientId | first | int32 | the first result | max | int32 | the max results to return | q | string | | search | bool | whether this is a search query or a getClientById query | [default to false] viewableOnly | bool | filter clients that cannot be viewed in full by admin | [default to false]
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AdminRealmsRealmClientsPost(ctx, realm).ClientRepresentation(clientRepresentation).Execute()
Create a new client Client’s client_id must be unique!
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)
func main() {
realm := "realm_example" // string | realm name (not id!)
clientRepresentation := *openapiclient.NewClientRepresentation() // ClientRepresentation | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.ClientsAPI.AdminRealmsRealmClientsPost(context.Background(), realm).ClientRepresentation(clientRepresentation).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ClientsAPI.AdminRealmsRealmClientsPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
realm | string | realm name (not id!) |
Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsPostRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
clientRepresentation | ClientRepresentation | |
(empty response body)
No authorization required
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]