POST
/
cloud
/
v2
/
k8s
/
clusters
/
{project_id}
/
{region_id}
Python
from gcore import Gcore

client = Gcore(
    api_key="My API Key",
)
task_id_list = client.cloud.k8s.clusters.create(
    project_id=0,
    region_id=0,
    keypair="some_keypair",
    name="string",
    pools=[{
        "flavor_id": "g1-standard-1-2",
        "min_node_count": 3,
        "name": "my-pool",
    }],
    version="1.28.1",
)
print(task_id_list.tasks)
{
  "tasks": [
    "d478ae29-dedc-4869-82f0-96104425f565"
  ]
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

project_id
integer
required

Project identifier

region_id
integer
required

Region identifier

Body

application/json

Response

Task IDs for cluster creation

The response is of type object.