Launch a stack profile demo
import requests
url = "https://platform.ankra.app/api/v1/org/stack-profiles/{profile_id}/demos"
payload = {}
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({})
};
fetch('https://platform.ankra.app/api/v1/org/stack-profiles/{profile_id}/demos', 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/stack-profiles/{profile_id}/demos \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'{
"workspace_id": "<string>",
"namespace": "<string>",
"stack_name": "<string>",
"version": 123,
"ttl_hours": 123,
"status": "<string>",
"warnings": [
"<string>"
]
}Stack Profiles
Launch a stack profile demo
Deploys a profile version (the current one unless version is given) into a fresh namespace on the organisation’s staging cluster for ttl_hours. The body is optional. Refused when no staging cluster is configured, the TTL exceeds the caller’s limit, or the caller may not deploy demos.
POST
/
api
/
v1
/
org
/
stack-profiles
/
{profile_id}
/
demos
Launch a stack profile demo
import requests
url = "https://platform.ankra.app/api/v1/org/stack-profiles/{profile_id}/demos"
payload = {}
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({})
};
fetch('https://platform.ankra.app/api/v1/org/stack-profiles/{profile_id}/demos', 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/stack-profiles/{profile_id}/demos \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'{
"workspace_id": "<string>",
"namespace": "<string>",
"stack_name": "<string>",
"version": 123,
"ttl_hours": 123,
"status": "<string>",
"warnings": [
"<string>"
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/json