Skip to main content
POST
Import a managed cluster (browser session)

Authorizations

ankra_session
string
cookie
required

Browser session. Mutations also require X-Ankra-CSRF.

Headers

X-Ankra-CSRF
string
required

Must match the ankra_csrf browser cookie.

Path Parameters

provider
enum<string>
required
Available options:
doks,
uks,
gke,
ovh_mks,
aks,
eks,
kapsule,
ankracloud_k8s
Example:

"kapsule"

Body

application/json
credential_id
string<uuid>
required

Required for every provider but ankracloud_k8s; the others answer 422 without it. For ankracloud_k8s it may be omitted when the built-in Ankra Cloud credential is configured: the organisation's built-in credential is then used.

provider_cluster_id
string
required
criticality
enum<string> | null
Available options:
production,
staging,
development,
disposable
description
string | null
environment
string | null
Required string length: 1 - 50
name
string | null

Response

Successful response

cluster_id
string<uuid>
required
name
string
required
provenance
enum<string>
required
Available options:
created,
imported,
unknown
provider_cluster_id
string
required