Skip to content

Latest commit

 

History

History
83 lines (53 loc) · 2.92 KB

File metadata and controls

83 lines (53 loc) · 2.92 KB

\KubernetesOverridesControllerAPI

All URIs are relative to http://localhost

Method HTTP request Description
ValidateKubernetesOverrides Post /api/v1/customers/{cUUID}/validate_kubernetes_overrides Validate kubernetes overrides.

ValidateKubernetesOverrides

KubernetesOverridesResponse ValidateKubernetesOverrides(ctx, cUUID).UniverseConfigureTaskParams(universeConfigureTaskParams).Request(request).Execute()

Validate kubernetes overrides.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/yugabyte/platform-go-client/v1"
)

func main() {
	cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | 
	universeConfigureTaskParams := *openapiclient.NewUniverseConfigureTaskParams([]openapiclient.Cluster{*openapiclient.NewCluster("ClusterType_example", *openapiclient.NewUserIntent())}, *openapiclient.NewUsers("username1@example.com", []string{"GroupMemberships_example"}, false), "PlatformUrl_example", int32(123), int32(123)) // UniverseConfigureTaskParams | 
	request := TODO // interface{} |  (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.KubernetesOverridesControllerAPI.ValidateKubernetesOverrides(context.Background(), cUUID).UniverseConfigureTaskParams(universeConfigureTaskParams).Request(request).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `KubernetesOverridesControllerAPI.ValidateKubernetesOverrides``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ValidateKubernetesOverrides`: KubernetesOverridesResponse
	fmt.Fprintf(os.Stdout, "Response from `KubernetesOverridesControllerAPI.ValidateKubernetesOverrides`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
cUUID string

Other Parameters

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

Name Type Description Notes

universeConfigureTaskParams | UniverseConfigureTaskParams | | request | interface{} | |

Return type

KubernetesOverridesResponse

Authorization

apiKeyAuth

HTTP request headers

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

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