Volcengine Kubernetes Engine
Parameters | Type | Required | Sample value | Description |
Parameters | Type | Required | Sample value | Description |
Action | String | Yes | CreateKubeconfig | The API name. The name of the current API is CreateKubeconfig. |
Version | String | Yes | 2022-05-12 | The API version. The current version of the API is 2022-05-12. |
ClusterId | String | Yes | cc8oo0ivqt******** | Cluster ID. Warning The cluster must be in the {Running,[Ok]} or {Updating,[Progressing]} state. You can call the ListClusters API to obtain the current status of the cluster. |
Type | String | Yes | Private | The type of the cluster KubeConfig file. Valid values:
|
ValidDuration | Integer | no | 43800 | The valid period of the KubeConfig file.
|
Parameters | Type | Sample value | Description |
Parameters | Type | Sample value | Description |
Id | String | kc5silum******** | Kubeconfig ID. Warning We recommend that you store the KubeConfig ID securely for future use. |
HTTP status code | Error code | Error message | Description |
HTTP status code | Error code | Error message | Description |
400 | OperationDenied.ClusterStatus | The action has been denied due to wrong cluster status {{statusPhase}} and [{{statusConditions}}]. | The current status of the specified cluster does not support this operation. Please confirm the required cluster status for this API and try again. |
400 | LimitExceeded.KubeconfigNumber | You have reached the limit of the number of kubeconfig that you can create. | The number of KubeConfig files that can be generated has reached the upper limit. For product limit descriptions, please refer to the Limit documentation. |