import requests
url = "https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/stacks/from-profile"
payload = { "profile_id": "<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({profile_id: '<string>'})
};
fetch('https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/stacks/from-profile', 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/from-profile \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"profile_id": "<string>"
}
'{
"addons_count": 123,
"draft_id": "<string>",
"manifests_count": 123,
"profile_version": 123,
"stack_name": "<string>",
"deployed": false,
"job_count": 0,
"operation_id": "<string>",
"warnings": []
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Create a stack from a stack profile
Instantiates a stack profile version on the cluster with the parameter values you supply, creating a stack draft and deploying it when deploy is set. Requires stacks.write; missing or invalid parameters, unresolvable variables and draft errors answer 400, and a deprecated version answers 409.
import requests
url = "https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/stacks/from-profile"
payload = { "profile_id": "<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({profile_id: '<string>'})
};
fetch('https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/stacks/from-profile', 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/from-profile \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"profile_id": "<string>"
}
'{
"addons_count": 123,
"draft_id": "<string>",
"manifests_count": 123,
"profile_version": 123,
"stack_name": "<string>",
"deployed": false,
"job_count": 0,
"operation_id": "<string>",
"warnings": []
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
Show child attributes
Show child attributes
Replace the contents of the stack already deployed from this profile under new_stack_name (or the profile's stack name) with this version, in place, instead of creating a new stack draft. The stack-name and resource renames are skipped, the update is applied immediately (deploy is implied), and the profile's deployment tracking moves to the new version. Answers 404 when no stack runs under that name and 409 when the stack was not deployed from this profile.
Retired. It used to admit every chart downgrade in the upgrade; it is still accepted as a boolean (and still only together with upgrade_existing), but it admits nothing. Send confirmed_chart_downgrades instead.
The chart downgrades the person confirmed for an in-place upgrade, after the same request was refused with CHART_VERSION_DOWNGRADE because this profile version pins add-ons to older chart versions than the live stack declares. Each entry admits exactly the move it names; any other downgrade is refused again, naming every move. Accepted only together with upgrade_existing (422 otherwise).
200Show child attributes
Show child attributes