import requests
url = "https://platform.ankra.app/api/v1/org/stack-profiles/{profile_id}/demos/{workspace_id}/collisions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/stack-profiles/{profile_id}/demos/{workspace_id}/collisions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/stack-profiles/{profile_id}/demos/{workspace_id}/collisions \
--header 'Authorization: Bearer <token>'{
"demo_status": "<string>",
"verdict": "no_collision",
"reason": "<string>",
"collisions": [
{
"kind": "<string>",
"name": "<string>",
"reason": "<string>"
}
],
"instance_specific_names": [
{
"kind": "<string>",
"name": "<string>",
"reason": "<string>"
}
],
"checked_kinds": [
"<string>"
],
"unreadable_kinds": [
"<string>"
],
"note": "<string>"
}Check a demo for service collisions
Reads one running demo of a stack profile on the organisation’s staging cluster and answers whether two services set up from a service package built on the profile could run side by side on one cluster. Every service gets a namespace of its own while each chart keeps its release name, so a cluster-scoped object the demo’s releases own (ClusterRole, ClusterRoleBinding, CustomResourceDefinition, admission webhook configurations, PriorityClass, StorageClass, IngressClass, Namespace) whose name does not carry the demo’s namespace (which its stack is named after) collides with a second service’s copy of it. Services and Secrets whose names do carry it are listed as instance-specific, since a package connection naming them would not match another service. Only names, Secret types and Helm’s release annotation are kept; the Secret data the listing carries is dropped, never kept or returned, and nothing is installed or written. verdict is no_collision only when every kind was read and nothing collides, collisions when something does, and unknown when the demo, or a kind, could not be read; reason says why.
import requests
url = "https://platform.ankra.app/api/v1/org/stack-profiles/{profile_id}/demos/{workspace_id}/collisions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/stack-profiles/{profile_id}/demos/{workspace_id}/collisions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/stack-profiles/{profile_id}/demos/{workspace_id}/collisions \
--header 'Authorization: Bearer <token>'{
"demo_status": "<string>",
"verdict": "no_collision",
"reason": "<string>",
"collisions": [
{
"kind": "<string>",
"name": "<string>",
"reason": "<string>"
}
],
"instance_specific_names": [
{
"kind": "<string>",
"name": "<string>",
"reason": "<string>"
}
],
"checked_kinds": [
"<string>"
],
"unreadable_kinds": [
"<string>"
],
"note": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Response
The collision verdict, or why it is unknown
Whether two services set up from a package built on this profile could run side by side, read off its running demo. Read verdict before collisions.
no_collision, collisions, unknown Why the verdict is unknown, or that more collisions may exist; empty otherwise.
Show child attributes
Show child attributes
Show child attributes
Show child attributes