Skip to content

Latest commit

 

History

History
77 lines (48 loc) · 1.84 KB

File metadata and controls

77 lines (48 loc) · 1.84 KB

\KeyAPI

All URIs are relative to https://keycloak.example.com/admin/realms

Method HTTP request Description
GetKeys Get /{realm}/keys

GetKeys

KeysMetadataRepresentation GetKeys(ctx, realm).Execute()

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)

func main() {
	realm := "realm_example" // string | realm name (not id!)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.KeyAPI.GetKeys(context.Background(), realm).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `KeyAPI.GetKeys``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetKeys`: KeysMetadataRepresentation
	fmt.Fprintf(os.Stdout, "Response from `KeyAPI.GetKeys`: %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 apiGetKeysRequest struct via the builder pattern

Name Type Description Notes

Return type

KeysMetadataRepresentation

Authorization

access_token

HTTP request headers

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

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