Stop a stack profile demo
import requests
url = "https://platform.ankra.app/api/v1/org/stack-profiles/{profile_id}/demos/{workspace_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/stack-profiles/{profile_id}/demos/{workspace_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://platform.ankra.app/api/v1/org/stack-profiles/{profile_id}/demos/{workspace_id} \
--header 'Authorization: Bearer <token>'{
"namespace": "<string>",
"tearing_down": true,
"success": true
}Stack Profiles
Stop a stack profile demo
Tears a demo down: the stack first, then its namespace. When the stack’s uninstall jobs must drain, tearing_down is true and the namespace is removed afterwards.
DELETE
/
api
/
v1
/
org
/
stack-profiles
/
{profile_id}
/
demos
/
{workspace_id}
Stop a stack profile demo
import requests
url = "https://platform.ankra.app/api/v1/org/stack-profiles/{profile_id}/demos/{workspace_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/stack-profiles/{profile_id}/demos/{workspace_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://platform.ankra.app/api/v1/org/stack-profiles/{profile_id}/demos/{workspace_id} \
--header 'Authorization: Bearer <token>'{
"namespace": "<string>",
"tearing_down": true,
"success": true
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.