Clone a stack to this cluster
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": [],
"deploy_error": "<string>",
"deployed": false,
"job_count": 0,
"needs_input": [
{
"member_kind": "<string>",
"member_name": "<string>",
"reason": "<string>",
"paths": [
"<string>"
]
}
],
"operation_id": "<string>",
"warnings": []
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Imported Clusters
Clone a stack to this cluster
Copies a stack from a source cluster onto this cluster, optionally under a new name, optionally including its add-on configurations, and deploys it when deploy_after_clone is set. Requires stacks.read on the source and stacks.write resolved in the destination organisation on the destination cluster. Source organisation permissions do not grant destination access. Project-pinned and service-account tokens cannot clone across organisations; token permission scopes still apply. The destination write gate follows body validation so it can resolve the target organisation; cloning with include_data also copies the stack’s data through a restore point and additionally requires backups.operate.
POST
/
api
/
v1
/
org
/
clusters
/
imported
/
{cluster_id}
/
stacks
/
clone
Clone a stack to this cluster
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": [],
"deploy_error": "<string>",
"deployed": false,
"job_count": 0,
"needs_input": [
{
"member_kind": "<string>",
"member_name": "<string>",
"reason": "<string>",
"paths": [
"<string>"
]
}
],
"operation_id": "<string>",
"warnings": []
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Body
application/json
Response
Successful Response