Skip to content

Latest commit

 

History

History
77 lines (48 loc) · 1.98 KB

KeyAPI.md

File metadata and controls

77 lines (48 loc) · 1.98 KB

\KeyAPI

All URIs are relative to http://localhost

Method HTTP request Description
AdminRealmsRealmKeysGet Get /admin/realms/{realm}/keys

AdminRealmsRealmKeysGet

KeysMetadataRepresentation AdminRealmsRealmKeysGet(ctx, realm).Execute()

Example

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!)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.KeyAPI.AdminRealmsRealmKeysGet(context.Background(), realm).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `KeyAPI.AdminRealmsRealmKeysGet``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `AdminRealmsRealmKeysGet`: KeysMetadataRepresentation
	fmt.Fprintf(os.Stdout, "Response from `KeyAPI.AdminRealmsRealmKeysGet`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
realm string realm name (not id!)

Other Parameters

Other parameters are passed through a pointer to a apiAdminRealmsRealmKeysGetRequest struct via the builder pattern

Name Type Description Notes

Return type

KeysMetadataRepresentation

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]