Skip to main content
POST
Import a managed cluster

Authorizations

Authorization
string
header
required

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

Headers

x-ankra-organisation-id
string

PAT organisation override.

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