Skip to main content

Kubernetes

Managed Kubernetes clusters — create, list, scale, start/stop and destroy. Lifecycle operations are asynchronous; poll List Cluster for the cluster state.

Resource base path: /restapi/kubernetes

MethodPathDescription
POST/restapi/kubernetes/createKubernetesCreate Kubernetes
GET/restapi/kubernetes/listClusterList Cluster
GET/restapi/kubernetes/listNodesList Nodes
PUT/restapi/kubernetes/startKubernetesStart Kubernetes
PUT/restapi/kubernetes/stopKubernetesStop Kubernetes
PUT/restapi/kubernetes/scaleKubernetesScale Kubernetes
DELETE/restapi/kubernetes/destroyKubernetesDestroy Kubernetes
note

apikey and secretkey are required HTTP headers on every request and are omitted from the parameter tables below. See Authentication.


Create Kubernetes

Create Kubernetes.

POST /restapi/kubernetes/createKubernetes

Request body

FieldTypeRequiredDescription
dockerRegistryUsernamestringNo
dockerRegistryUrlstringNo
kubernetesSupportedVersionUuidstringNo
domainUuidstringNo
controlNodesinteger (int64)No
zoneUuidstringNoUUID of the zone the resource belongs to.
descriptionstringNoHuman-readable description.
dockerRegistryPasswordstringNo
computeOfferingUuidstringNoUUID of the compute offering.
transNetworkUuidstringNo
haEnabledbooleanNo
sshKeyNamestringNoName of the SSH key pair.
nodeRootDiskSizeinteger (int64)No
sizeinteger (int64)No
externalLoadbalancerIpaddressstringNo
namestringNoName of the resource.
{
"dockerRegistryUsername": "example-name",
"dockerRegistryUrl": "string",
"kubernetesSupportedVersionUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"domainUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"controlNodes": 1,
"zoneUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"description": "string",
"dockerRegistryPassword": "string",
"computeOfferingUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"transNetworkUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"haEnabled": true,
"sshKeyName": "example-name",
"nodeRootDiskSize": 1,
"size": 1,
"externalLoadbalancerIpaddress": "string",
"name": "example-name"
}

Example request

curl -X POST \
"https://portal.your-domain.com/restapi/kubernetes/createKubernetes" \
-H "apikey: YOUR_API_KEY" \
-H "secretkey: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"dockerRegistryUsername": "example-name",
"dockerRegistryUrl": "string",
"kubernetesSupportedVersionUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"domainUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"controlNodes": 1,
"zoneUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"description": "string",
"dockerRegistryPassword": "string",
"computeOfferingUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"transNetworkUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"haEnabled": true,
"sshKeyName": "example-name",
"nodeRootDiskSize": 1,
"size": 1,
"externalLoadbalancerIpaddress": "string",
"name": "example-name"
}'

Responses

CodeDescription
200Successful operation.
401Invalid authentication credentials.
550Permission denied.
{
"nodeRootDiskSize": 1,
"size": 1,
"controlNodes": 1,
"externalLoadbalancerIpaddress": "string",
"name": "example-name",
"description": "string",
"state": "Running",
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"transNetworkUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}

List Cluster

List Cluster.

GET /restapi/kubernetes/listCluster

Parameters

ParameterInTypeRequiredDescription
clusterUuidquerystringNoUUID of the Kubernetes cluster.

Example request

curl -X GET \
"https://portal.your-domain.com/restapi/kubernetes/listCluster" \
-H "apikey: YOUR_API_KEY" \
-H "secretkey: YOUR_SECRET_KEY"

Responses

CodeDescription
200Successful operation.
401Invalid authentication credentials.
550Permission denied.
[
{
"nodeRootDiskSize": 1,
"size": 1,
"controlNodes": 1,
"externalLoadbalancerIpaddress": "string",
"name": "example-name",
"description": "string",
"state": "Running",
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"transNetworkUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
]

List Nodes

List Nodes.

GET /restapi/kubernetes/listNodes

Parameters

ParameterInTypeRequiredDescription
clusterUuidquerystring✅ YesUUID of the Kubernetes cluster.

Example request

curl -X GET \
"https://portal.your-domain.com/restapi/kubernetes/listNodes?clusterUuid=a1b2c3d4-e5f6-7890-abcd-ef1234567890" \
-H "apikey: YOUR_API_KEY" \
-H "secretkey: YOUR_SECRET_KEY"

Responses

CodeDescription
200Successful operation.
401Invalid authentication credentials.
550Permission denied.
{
"listInstanceResponse": [
{
"templateUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"instanceOwnerName": "example-name",
"memory": "string",
"displayName": "example-name",
"rootDiskSize": 1,
"networkName": "example-name",
"zoneUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"sshUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"description": "string",
"computeOfferingUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"isActive": true,
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"volumeSize": "string",
"diskSize": 1,
"templateName": "example-name",
"name": "example-name",
"state": "Running",
"instancePrivateIp": "string",
"networkUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"storageOfferingUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"cpuCore": "string",
"status": "Active"
}
],
"count": 1
}

Start Kubernetes

Start Kubernetes.

PUT /restapi/kubernetes/startKubernetes

Parameters

ParameterInTypeRequiredDescription
uuidquerystring✅ YesUUID of the resource.

Example request

curl -X PUT \
"https://portal.your-domain.com/restapi/kubernetes/startKubernetes?uuid=a1b2c3d4-e5f6-7890-abcd-ef1234567890" \
-H "apikey: YOUR_API_KEY" \
-H "secretkey: YOUR_SECRET_KEY"

Responses

CodeDescription
200Successful operation.
401Invalid authentication credentials.
550Permission denied.
{
"nodeRootDiskSize": 1,
"size": 1,
"controlNodes": 1,
"externalLoadbalancerIpaddress": "string",
"name": "example-name",
"description": "string",
"state": "Running",
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"transNetworkUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}

Stop Kubernetes

Stop Kubernetes.

PUT /restapi/kubernetes/stopKubernetes

Parameters

ParameterInTypeRequiredDescription
uuidquerystring✅ YesUUID of the resource.

Example request

curl -X PUT \
"https://portal.your-domain.com/restapi/kubernetes/stopKubernetes?uuid=a1b2c3d4-e5f6-7890-abcd-ef1234567890" \
-H "apikey: YOUR_API_KEY" \
-H "secretkey: YOUR_SECRET_KEY"

Responses

CodeDescription
200Successful operation.
401Invalid authentication credentials.
550Permission denied.
{
"nodeRootDiskSize": 1,
"size": 1,
"controlNodes": 1,
"externalLoadbalancerIpaddress": "string",
"name": "example-name",
"description": "string",
"state": "Running",
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"transNetworkUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}

Scale Kubernetes

Scale Kubernetes.

PUT /restapi/kubernetes/scaleKubernetes

Parameters

ParameterInTypeRequiredDescription
uuidquerystring✅ YesUUID of the resource.
autoscalingEnabledqueryboolean✅ Yes
sizequeryinteger (int64)✅ Yes

Example request

curl -X PUT \
"https://portal.your-domain.com/restapi/kubernetes/scaleKubernetes?uuid=a1b2c3d4-e5f6-7890-abcd-ef1234567890&autoscalingEnabled=VALUE&size=VALUE" \
-H "apikey: YOUR_API_KEY" \
-H "secretkey: YOUR_SECRET_KEY"

Responses

CodeDescription
200Successful operation.
401Invalid authentication credentials.
550Permission denied.
{
"nodeRootDiskSize": 1,
"size": 1,
"controlNodes": 1,
"externalLoadbalancerIpaddress": "string",
"name": "example-name",
"description": "string",
"state": "Running",
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"transNetworkUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}

Destroy Kubernetes

Destroy Kubernetes.

DELETE /restapi/kubernetes/destroyKubernetes

Parameters

ParameterInTypeRequiredDescription
uuidquerystring✅ YesUUID of the resource.

Example request

curl -X DELETE \
"https://portal.your-domain.com/restapi/kubernetes/destroyKubernetes?uuid=a1b2c3d4-e5f6-7890-abcd-ef1234567890" \
-H "apikey: YOUR_API_KEY" \
-H "secretkey: YOUR_SECRET_KEY"

Responses

CodeDescription
200Successful operation.
401Invalid authentication credentials.
550Permission denied.
{
"nodeRootDiskSize": 1,
"size": 1,
"controlNodes": 1,
"externalLoadbalancerIpaddress": "string",
"name": "example-name",
"description": "string",
"state": "Running",
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"transNetworkUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}