Skip to main content
POST
/
api
/
v1
/
org
/
clusters
/
imported
/
{cluster_id}
/
stacks
/
clone
Clone Stack To Cluster Endpoint
import requests

url = "https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/stacks/clone"

payload = {
    "source_cluster_id": "<string>",
    "stack_name": "<string>"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.text)
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: JSON.stringify({source_cluster_id: '<string>', stack_name: '<string>'})
};

fetch('https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/stacks/clone', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
curl --request POST \
  --url https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/stacks/clone \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "source_cluster_id": "<string>",
  "stack_name": "<string>"
}
'
{
  "addons_cloned": 123,
  "draft_id": "<string>",
  "manifests_cloned": 123,
  "stack_name": "<string>",
  "addons_needing_reconfiguration": [],
  "cross_org_registry_credentials_missing": [],
  "cross_org_secret_slots_dropped": [],
  "warnings": []
}
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

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

Path Parameters

cluster_id
string<uuid4>
required

Body

application/json
source_cluster_id
string<uuid4>
required
stack_name
string
required
include_addon_configurations
boolean
default:true
new_stack_name
string | null
target_organisation_id
string<uuid4> | null

Response

Successful Response

addons_cloned
integer
required
draft_id
string<uuid4>
required
manifests_cloned
integer
required
stack_name
string
required
addons_needing_reconfiguration
string[]
cross_org_registry_credentials_missing
string[]
cross_org_secret_slots_dropped
Cross Org Secret Slots Dropped · object[]
warnings
string[]