Update properties of a Kubernetes cluster client
Select
SaaS
Customer Managed
API to update the properties of a Kubernetes cluster with clusterId
Path Parameters
- clusterId int32 required
clusterId is the ID of the Kubernetes cluster client
- application/json
Request Body
- apiServer string
API Server Endpoint of the cluster
- serviceAccount string
Name of the Service Account to authenticate with the cluster
- serviceToken base64
Secret token to authenticate with the cluster. The secret token must be Base64 encoded.
accessNodes object[]
- name string
Name of the Kubernetes Cluster
- serviceType KubernetesServiceTypes
Possible values: [
ONPREM
,AKS
]Default value:
ONPREM
The Service Type of the Kubernetes cluster
etcdProtection object
tags object[]
region object
activityControl object
options object
Responses
- 200
- 404
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
- errorMessage string
- errorCode int32
{
"errorMessage": "string",
"errorCode": 0
}
Requested Details not found
- application/json
- Schema
- Example (from schema)
Schema
- errorMessage string
- errorCode int32
{
"errorMessage": "string",
"errorCode": 0
}
Server Error
- application/json
- Schema
- Example (from schema)
Schema
- errorMessage string
- errorCode int32
{
"errorMessage": "string",
"errorCode": 0
}
PUT /v5/kubernetes/cluster/:clusterid
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/V5/Kubernetes/Cluster/:clusterId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"apiServer": "string",
"serviceAccount": "string",
"serviceToken": "string",
"accessNodes": [
{
"id": 0,
"name": "string",
"type": "string"
}
],
"name": "string",
"serviceType": "ONPREM",
"etcdProtection": {
"id": 0,
"name": "string",
"enabled": true,
"plan": {
"id": 0,
"name": "string"
}
},
"tags": [
{
"name": "string",
"value": "string"
}
],
"region": {
"id": 0,
"name": "string"
},
"activityControl": {
"enableBackup": true,
"enableRestore": true,
"enableBackupAfterADelay": 0,
"enableRestoreAfterADelay": 0
},
"options": {
"imageRegistry": {
"url": "string",
"pullSecret": "string"
},
"configNamespace": "string",
"jobStepWaitTime": {
"workerPodStartup": 0,
"resourceCleanup": 0,
"snapshotReady": 0,
"snapshotCleanup": 0
}
}
}'
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/V5/Kubernetes/Cluster/:clusterId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"apiServer": "string",
"serviceAccount": "string",
"serviceToken": "string",
"accessNodes": [
{
"id": 0,
"name": "string",
"type": "string"
}
],
"name": "string",
"serviceType": "ONPREM",
"etcdProtection": {
"id": 0,
"name": "string",
"enabled": true,
"plan": {
"id": 0,
"name": "string"
}
},
"tags": [
{
"name": "string",
"value": "string"
}
],
"region": {
"id": 0,
"name": "string"
},
"activityControl": {
"enableBackup": true,
"enableRestore": true,
"enableBackupAfterADelay": 0,
"enableRestoreAfterADelay": 0
},
"options": {
"imageRegistry": {
"url": "string",
"pullSecret": "string"
},
"configNamespace": "string",
"jobStepWaitTime": {
"workerPodStartup": 0,
"resourceCleanup": 0,
"snapshotReady": 0,
"snapshotCleanup": 0
}
}
}'
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/V5/Kubernetes/Cluster/:clusterId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"apiServer": "string",
"serviceAccount": "string",
"serviceToken": "string",
"accessNodes": [
{
"id": 0,
"name": "string",
"type": "string"
}
],
"name": "string",
"serviceType": "ONPREM",
"etcdProtection": {
"id": 0,
"name": "string",
"enabled": true,
"plan": {
"id": 0,
"name": "string"
}
},
"tags": [
{
"name": "string",
"value": "string"
}
],
"region": {
"id": 0,
"name": "string"
},
"activityControl": {
"enableBackup": true,
"enableRestore": true,
"enableBackupAfterADelay": 0,
"enableRestoreAfterADelay": 0
},
"options": {
"imageRegistry": {
"url": "string",
"pullSecret": "string"
},
"configNamespace": "string",
"jobStepWaitTime": {
"workerPodStartup": 0,
"resourceCleanup": 0,
"snapshotReady": 0,
"snapshotCleanup": 0
}
}
}'
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/V5/Kubernetes/Cluster/:clusterId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"apiServer": "string",
"serviceAccount": "string",
"serviceToken": "string",
"accessNodes": [
{
"id": 0,
"name": "string",
"type": "string"
}
],
"name": "string",
"serviceType": "ONPREM",
"etcdProtection": {
"id": 0,
"name": "string",
"enabled": true,
"plan": {
"id": 0,
"name": "string"
}
},
"tags": [
{
"name": "string",
"value": "string"
}
],
"region": {
"id": 0,
"name": "string"
},
"activityControl": {
"enableBackup": true,
"enableRestore": true,
"enableBackupAfterADelay": 0,
"enableRestoreAfterADelay": 0
},
"options": {
"imageRegistry": {
"url": "string",
"pullSecret": "string"
},
"configNamespace": "string",
"jobStepWaitTime": {
"workerPodStartup": 0,
"resourceCleanup": 0,
"snapshotReady": 0,
"snapshotCleanup": 0
}
}
}'
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/V5/Kubernetes/Cluster/:clusterId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"apiServer": "string",
"serviceAccount": "string",
"serviceToken": "string",
"accessNodes": [
{
"id": 0,
"name": "string",
"type": "string"
}
],
"name": "string",
"serviceType": "ONPREM",
"etcdProtection": {
"id": 0,
"name": "string",
"enabled": true,
"plan": {
"id": 0,
"name": "string"
}
},
"tags": [
{
"name": "string",
"value": "string"
}
],
"region": {
"id": 0,
"name": "string"
},
"activityControl": {
"enableBackup": true,
"enableRestore": true,
"enableBackupAfterADelay": 0,
"enableRestoreAfterADelay": 0
},
"options": {
"imageRegistry": {
"url": "string",
"pullSecret": "string"
},
"configNamespace": "string",
"jobStepWaitTime": {
"workerPodStartup": 0,
"resourceCleanup": 0,
"snapshotReady": 0,
"snapshotCleanup": 0
}
}
}'
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/V5/Kubernetes/Cluster/:clusterId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"apiServer": "string",
"serviceAccount": "string",
"serviceToken": "string",
"accessNodes": [
{
"id": 0,
"name": "string",
"type": "string"
}
],
"name": "string",
"serviceType": "ONPREM",
"etcdProtection": {
"id": 0,
"name": "string",
"enabled": true,
"plan": {
"id": 0,
"name": "string"
}
},
"tags": [
{
"name": "string",
"value": "string"
}
],
"region": {
"id": 0,
"name": "string"
},
"activityControl": {
"enableBackup": true,
"enableRestore": true,
"enableBackupAfterADelay": 0,
"enableRestoreAfterADelay": 0
},
"options": {
"imageRegistry": {
"url": "string",
"pullSecret": "string"
},
"configNamespace": "string",
"jobStepWaitTime": {
"workerPodStartup": 0,
"resourceCleanup": 0,
"snapshotReady": 0,
"snapshotCleanup": 0
}
}
}'
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/V5/Kubernetes/Cluster/:clusterId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"apiServer": "string",
"serviceAccount": "string",
"serviceToken": "string",
"accessNodes": [
{
"id": 0,
"name": "string",
"type": "string"
}
],
"name": "string",
"serviceType": "ONPREM",
"etcdProtection": {
"id": 0,
"name": "string",
"enabled": true,
"plan": {
"id": 0,
"name": "string"
}
},
"tags": [
{
"name": "string",
"value": "string"
}
],
"region": {
"id": 0,
"name": "string"
},
"activityControl": {
"enableBackup": true,
"enableRestore": true,
"enableBackupAfterADelay": 0,
"enableRestoreAfterADelay": 0
},
"options": {
"imageRegistry": {
"url": "string",
"pullSecret": "string"
},
"configNamespace": "string",
"jobStepWaitTime": {
"workerPodStartup": 0,
"resourceCleanup": 0,
"snapshotReady": 0,
"snapshotCleanup": 0
}
}
}'