Skip to main content
POST
/
api
/
v1
/
clusters
/
ovh
Create an OVH cluster
import requests

url = "https://platform.ankra.app/api/v1/clusters/ovh"

payload = {
    "name": "<string>",
    "credential_id": "<string>",
    "ssh_key_credential_id": "<string>",
    "region": "<string>"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
{
  "cluster_id": "<string>",
  "name": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

authorization
string | null

Body

application/json
name
string
required
credential_id
string<uuid4>
required
ssh_key_credential_id
string<uuid4>
required
region
string
required
description
string | null
network_vlan_id
integer
default:0
subnet_cidr
string
default:10.0.1.0/24
dhcp_start
string
default:10.0.1.100
dhcp_end
string
default:10.0.1.200
gateway_flavor_id
string
default:b2-7
control_plane_count
integer
default:1
control_plane_flavor_id
string
default:b2-15
worker_count
integer
default:1
worker_flavor_id
string
default:b2-15
distribution
string
default:k3s
kubernetes_version
string | null

Response

Cluster created successfully

cluster_id
string<uuid4>
required
name
string
required