curl --request POST \
--url https://api.ubicloud.com/project/{project_id}/location/{location}/kubernetes-cluster/{kubernetes_cluster_reference} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"version": "<string>",
"worker_size": "<string>",
"cp_nodes": 123,
"worker_nodes": 123
}'
{
"cp_node_count": 123,
"cp_vms": [
{
"id": "vmhfy8gff8c67hasb0eez2k1pd",
"ip4": "127.0.0.1",
"ip4_enabled": true,
"ip6": "2606:4700:3108::ac42:2835",
"location": "eu-central-h1",
"name": "my-vm-name",
"size": "<string>",
"state": "<string>",
"storage_size_gib": 123,
"unix_user": "<string>"
}
],
"display_state": "<string>",
"id": "kcqxhqbg86sj0ng5e9ck5n191z",
"location": "eu-central-h1",
"name": "my-cluster-name",
"node_size": "<string>",
"nodepools": [
{
"kubernetes_cluster_id": "kcqxhqbg86sj0ng5e9ck5n191z",
"id": "knqxhqbg86sj0ng5e9ck5n191z",
"name": "my-nodepool-name",
"node_count": 123,
"node_size": "<string>",
"vms": [
{
"id": "vmhfy8gff8c67hasb0eez2k1pd",
"ip4": "127.0.0.1",
"ip4_enabled": true,
"ip6": "2606:4700:3108::ac42:2835",
"location": "eu-central-h1",
"name": "my-vm-name",
"size": "<string>",
"state": "<string>",
"storage_size_gib": 123,
"unix_user": "<string>"
}
]
}
],
"services_load_balancer_url": "<string>",
"version": "<string>"
}
curl --request POST \
--url https://api.ubicloud.com/project/{project_id}/location/{location}/kubernetes-cluster/{kubernetes_cluster_reference} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"version": "<string>",
"worker_size": "<string>",
"cp_nodes": 123,
"worker_nodes": 123
}'
{
"cp_node_count": 123,
"cp_vms": [
{
"id": "vmhfy8gff8c67hasb0eez2k1pd",
"ip4": "127.0.0.1",
"ip4_enabled": true,
"ip6": "2606:4700:3108::ac42:2835",
"location": "eu-central-h1",
"name": "my-vm-name",
"size": "<string>",
"state": "<string>",
"storage_size_gib": 123,
"unix_user": "<string>"
}
],
"display_state": "<string>",
"id": "kcqxhqbg86sj0ng5e9ck5n191z",
"location": "eu-central-h1",
"name": "my-cluster-name",
"node_size": "<string>",
"nodepools": [
{
"kubernetes_cluster_id": "kcqxhqbg86sj0ng5e9ck5n191z",
"id": "knqxhqbg86sj0ng5e9ck5n191z",
"name": "my-nodepool-name",
"node_count": 123,
"node_size": "<string>",
"vms": [
{
"id": "vmhfy8gff8c67hasb0eez2k1pd",
"ip4": "127.0.0.1",
"ip4_enabled": true,
"ip6": "2606:4700:3108::ac42:2835",
"location": "eu-central-h1",
"name": "my-vm-name",
"size": "<string>",
"state": "<string>",
"storage_size_gib": 123,
"unix_user": "<string>"
}
]
}
],
"services_load_balancer_url": "<string>",
"version": "<string>"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
ID of the project
"pjkkmx0f2vke4h36nk9cm8v8q0"
The Ubicloud location/region
"eu-central-h1"
Kubernetes cluster ID or name
A KubernetesCluster
The response is of type object
.