Skip to Content
UK8S Service(UK8S)GetClusterConfig

Get Cluster Configuration File - GetClusterConfig

Overview

Obtain cluster configuration file and manage cluster credentials

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is GetClusterConfig.Yes
PublicKeystringThe user’s public key can be obtained from Console Yes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
ProjectIdstringProjectNo
RegionstringRegionYes
ClusterIdstringCluster IDYes

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
KubeConfigstringConfiguration InformationYes
ExternalKubeConfigstringWhen the public apiserver is enabled, data is returned.No
UpdatablebooleanUsed to indicate whether kubeconfig can be replaced or updatedNo

Example

Request Example

https://api.genesissai.com/?Action=GetClusterConfig &AzGroup=OMHXXfyW &Zone=cnWbQGjo &ProjectID=ASjvFawh &ClusterID=DywdxtWZ

Response Example

{ "Action": "GetClusterConfigResponse", "ExternalKubeConfig": "PhycEJji", "RetCode": 0, "Updatable": true }