Skip to content

Latest commit

 

History

History
79 lines (48 loc) · 2.03 KB

File metadata and controls

79 lines (48 loc) · 2.03 KB

\ClientRegistrationPolicyAPI

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

Method HTTP request Description
GetProviders Get /{realm}/client-registration-policy/providers

GetProviders

[]ComponentTypeRepresentation GetProviders(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.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)
}

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 apiGetProvidersRequest struct via the builder pattern

Name Type Description Notes

Return type

[]ComponentTypeRepresentation

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]