Create a new Kubernetes cluster client
Select
SaaS
Customer Managed
API to create new 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
Responses
- 200
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
- id int32
ID of the Kubernetes Cluster created
- name string
Name of the Kubernetes Cluster
etcd object
{
"id": 0,
"name": "string",
"etcd": {
"id": 0,
"name": "string"
}
}
Server Error
- application/json
- Schema
- Example (from schema)
Schema
- errorMessage string
- errorCode int32
{
"errorMessage": "string",
"errorCode": 0
}
POST /v5/kubernetes/cluster
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V5/Kubernetes/Cluster' \
-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": {
"enabled": true,
"plan": {
"id": 0,
"name": "string"
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V5/Kubernetes/Cluster' \
-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": {
"enabled": true,
"plan": {
"id": 0,
"name": "string"
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V5/Kubernetes/Cluster' \
-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": {
"enabled": true,
"plan": {
"id": 0,
"name": "string"
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V5/Kubernetes/Cluster' \
-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": {
"enabled": true,
"plan": {
"id": 0,
"name": "string"
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V5/Kubernetes/Cluster' \
-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": {
"enabled": true,
"plan": {
"id": 0,
"name": "string"
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V5/Kubernetes/Cluster' \
-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": {
"enabled": true,
"plan": {
"id": 0,
"name": "string"
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V5/Kubernetes/Cluster' \
-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": {
"enabled": true,
"plan": {
"id": 0,
"name": "string"
}
}
}'