Skip to main content
POST
/
api
/
v1
/
clusters
/
import
Create Or Update Import Cluster Endpoint
import requests

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

payload = { "name": "<string>" }
headers = {"Content-Type": "application/json"}

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

print(response.json())
{
  "name": "<string>",
  "cluster_id": "<string>",
  "organisation_id": "<string>",
  "import_command": "<string>",
  "errors": []
}

Headers

authorization
string | null

Body

application/json
name
string
required
description
string | null
spec
object | null

Response

Successful Response

name
string
required
cluster_id
string<uuid4>
required
organisation_id
string<uuid4>
required
import_command
string
required
errors
ResourceError · object[]
I