All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
AdminRealmsRealmClientsClientUuidCertificatesAttrDownloadPost | Post /admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/download | Get a keystore file for the client, containing private key and public certificate |
AdminRealmsRealmClientsClientUuidCertificatesAttrGenerateAndDownloadPost | Post /admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/generate-and-download | Generate a new keypair and certificate, and get the private key file Generates a keypair and certificate and serves the private key in a specified keystore format. Only generated public certificate is saved in Keycloak DB - the private key is not. |
AdminRealmsRealmClientsClientUuidCertificatesAttrGeneratePost | Post /admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/generate | Generate a new certificate with new key pair |
AdminRealmsRealmClientsClientUuidCertificatesAttrGet | Get /admin/realms/{realm}/clients/{client-uuid}/certificates/{attr} | Get key info |
AdminRealmsRealmClientsClientUuidCertificatesAttrUploadCertificatePost | Post /admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/upload-certificate | Upload only certificate, not private key |
AdminRealmsRealmClientsClientUuidCertificatesAttrUploadPost | Post /admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/upload | Upload certificate and eventually private key |
*os.File AdminRealmsRealmClientsClientUuidCertificatesAttrDownloadPost(ctx, realm, clientUuid, attr).KeyStoreConfig(keyStoreConfig).Execute()
Get a keystore file for the client, containing private key and public certificate
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!)
attr := "attr_example" // string |
keyStoreConfig := *openapiclient.NewKeyStoreConfig() // KeyStoreConfig | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ClientAttributeCertificateAPI.AdminRealmsRealmClientsClientUuidCertificatesAttrDownloadPost(context.Background(), realm, clientUuid, attr).KeyStoreConfig(keyStoreConfig).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ClientAttributeCertificateAPI.AdminRealmsRealmClientsClientUuidCertificatesAttrDownloadPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AdminRealmsRealmClientsClientUuidCertificatesAttrDownloadPost`: *os.File
fmt.Fprintf(os.Stdout, "Response from `ClientAttributeCertificateAPI.AdminRealmsRealmClientsClientUuidCertificatesAttrDownloadPost`: %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!) | |
attr | string |
Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidCertificatesAttrDownloadPostRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
keyStoreConfig | KeyStoreConfig | |
No authorization required
- Content-Type: application/json
- Accept: application/octet-stream
[Back to top] [Back to API list] [Back to Model list] [Back to README]
*os.File AdminRealmsRealmClientsClientUuidCertificatesAttrGenerateAndDownloadPost(ctx, realm, clientUuid, attr).KeyStoreConfig(keyStoreConfig).Execute()
Generate a new keypair and certificate, and get the private key file Generates a keypair and certificate and serves the private key in a specified keystore format. Only generated public certificate is saved in Keycloak DB - the private key is not.
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!)
attr := "attr_example" // string |
keyStoreConfig := *openapiclient.NewKeyStoreConfig() // KeyStoreConfig | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ClientAttributeCertificateAPI.AdminRealmsRealmClientsClientUuidCertificatesAttrGenerateAndDownloadPost(context.Background(), realm, clientUuid, attr).KeyStoreConfig(keyStoreConfig).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ClientAttributeCertificateAPI.AdminRealmsRealmClientsClientUuidCertificatesAttrGenerateAndDownloadPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AdminRealmsRealmClientsClientUuidCertificatesAttrGenerateAndDownloadPost`: *os.File
fmt.Fprintf(os.Stdout, "Response from `ClientAttributeCertificateAPI.AdminRealmsRealmClientsClientUuidCertificatesAttrGenerateAndDownloadPost`: %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!) | |
attr | string |
Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidCertificatesAttrGenerateAndDownloadPostRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
keyStoreConfig | KeyStoreConfig | |
No authorization required
- Content-Type: application/json
- Accept: application/octet-stream
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CertificateRepresentation AdminRealmsRealmClientsClientUuidCertificatesAttrGeneratePost(ctx, realm, clientUuid, attr).Execute()
Generate a new certificate with new key pair
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!)
attr := "attr_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ClientAttributeCertificateAPI.AdminRealmsRealmClientsClientUuidCertificatesAttrGeneratePost(context.Background(), realm, clientUuid, attr).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ClientAttributeCertificateAPI.AdminRealmsRealmClientsClientUuidCertificatesAttrGeneratePost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AdminRealmsRealmClientsClientUuidCertificatesAttrGeneratePost`: CertificateRepresentation
fmt.Fprintf(os.Stdout, "Response from `ClientAttributeCertificateAPI.AdminRealmsRealmClientsClientUuidCertificatesAttrGeneratePost`: %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!) | |
attr | string |
Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidCertificatesAttrGeneratePostRequest 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]
CertificateRepresentation AdminRealmsRealmClientsClientUuidCertificatesAttrGet(ctx, realm, clientUuid, attr).Execute()
Get key 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!)
attr := "attr_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ClientAttributeCertificateAPI.AdminRealmsRealmClientsClientUuidCertificatesAttrGet(context.Background(), realm, clientUuid, attr).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ClientAttributeCertificateAPI.AdminRealmsRealmClientsClientUuidCertificatesAttrGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AdminRealmsRealmClientsClientUuidCertificatesAttrGet`: CertificateRepresentation
fmt.Fprintf(os.Stdout, "Response from `ClientAttributeCertificateAPI.AdminRealmsRealmClientsClientUuidCertificatesAttrGet`: %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!) | |
attr | string |
Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidCertificatesAttrGetRequest 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]
CertificateRepresentation AdminRealmsRealmClientsClientUuidCertificatesAttrUploadCertificatePost(ctx, realm, clientUuid, attr).Execute()
Upload only certificate, not private key
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!)
attr := "attr_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ClientAttributeCertificateAPI.AdminRealmsRealmClientsClientUuidCertificatesAttrUploadCertificatePost(context.Background(), realm, clientUuid, attr).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ClientAttributeCertificateAPI.AdminRealmsRealmClientsClientUuidCertificatesAttrUploadCertificatePost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AdminRealmsRealmClientsClientUuidCertificatesAttrUploadCertificatePost`: CertificateRepresentation
fmt.Fprintf(os.Stdout, "Response from `ClientAttributeCertificateAPI.AdminRealmsRealmClientsClientUuidCertificatesAttrUploadCertificatePost`: %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!) | |
attr | string |
Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidCertificatesAttrUploadCertificatePostRequest 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]
CertificateRepresentation AdminRealmsRealmClientsClientUuidCertificatesAttrUploadPost(ctx, realm, clientUuid, attr).Execute()
Upload certificate and eventually private key
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!)
attr := "attr_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ClientAttributeCertificateAPI.AdminRealmsRealmClientsClientUuidCertificatesAttrUploadPost(context.Background(), realm, clientUuid, attr).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ClientAttributeCertificateAPI.AdminRealmsRealmClientsClientUuidCertificatesAttrUploadPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AdminRealmsRealmClientsClientUuidCertificatesAttrUploadPost`: CertificateRepresentation
fmt.Fprintf(os.Stdout, "Response from `ClientAttributeCertificateAPI.AdminRealmsRealmClientsClientUuidCertificatesAttrUploadPost`: %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!) | |
attr | string |
Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidCertificatesAttrUploadPostRequest 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]