Skip to main content
GET
Estimate a draft cluster's setup time

Authorizations

Authorization
string
header
required

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

Headers

authorization
string | null
x-ankra-organisation-id
string | null

Query Parameters

provider
enum<string>
required

The self-managed provider the draft is created on.

Available options:
ankracloud,
aws,
digitalocean,
hetzner,
morpheus,
ovh,
proxmox,
scaleway,
upcloud
location
string
required

The location every server is placed in, as the create request sends it: the Hetzner location, OVHcloud region, UpCloud zone, DigitalOcean region, Scaleway zone, Proxmox VE node, HPE Morpheus cloud id, AWS region or Ankra Cloud zone. Compared verbatim.

distribution
enum<string>
required

The Kubernetes distribution.

Available options:
k3s,
kubeadm
control_plane_count
integer
required

How many control planes the draft creates.

Required range: x >= 1
worker_count
integer
required

How many workers the draft creates.

Required range: x >= 0
control_plane_type
string
required

The control planes' instance type as the create request sends it (server type, flavor, plan, size, commercial type, instance type or plan id). Compared verbatim.

worker_type
string

The workers' instance type, required when worker_count is above zero. Compared verbatim.

Response

Successful Response

Expected setup time of a draft self-managed cluster. status available carries typical_seconds and slow_seconds; insufficient_history is a successful read with too few comparable runs; unavailable is a read that failed and says nothing about the history. samples is the organisation's own count of matching runs, present only for basis organisation_matching_configuration when the read succeeded; the platform basis never carries a count.

status
enum<string>
required
Available options:
available,
insufficient_history,
unavailable
window_days
enum<integer>
required
Available options:
90
history_limited
boolean
required

Only the organisation's latest 100 clusters of the provider in the window were read. Never reflects other organisations.

basis
enum<string>
required
Available options:
organisation_matching_configuration,
platform_matching_shape
typical_seconds
integer

Median duration; present only when available.

Required range: x >= 1
slow_seconds
integer

90th percentile duration; present only when available.

Required range: x >= 1
samples
integer

The organisation's own matching runs; omitted for the platform basis and when unavailable.

Required range: x >= 0