All URIs are relative to https://keycloak.example.com/admin/realms
| Method | HTTP request | Description |
|---|---|---|
| GetProviders | Get /{realm}/client-registration-policy/providers |
[]ComponentTypeRepresentation GetProviders(ctx, realm).Execute()
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.ClientRegistrationPolicyAPI.GetProviders(context.Background(), realm).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ClientRegistrationPolicyAPI.GetProviders``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetProviders`: []ComponentTypeRepresentation
fmt.Fprintf(os.Stdout, "Response from `ClientRegistrationPolicyAPI.GetProviders`: %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 apiGetProvidersRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]