import requests
url = "https://platform.ankra.app/org/stack-profiles/{profile_id}/demos/{workspace_id}/connection-probes/{probe_id}"
headers = {"cookie": "ankra_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'ankra_session='}};
fetch('https://platform.ankra.app/org/stack-profiles/{profile_id}/demos/{workspace_id}/connection-probes/{probe_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/org/stack-profiles/{profile_id}/demos/{workspace_id}/connection-probes/{probe_id} \
--cookie ankra_session={
"probe_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "queued",
"verdict": "passed",
"cause": "<string>",
"reason": "<string>",
"requested_at": "2023-11-07T05:31:56Z",
"probed_at": "2023-11-07T05:31:56Z"
}Get a connection probe on a demo (browser session)
Reads back a connection probe requested on one demo of a stack profile. verdict is passed (a pod in the demo’s namespace connected), failed (the canary ran and did not connect; reason says how) or unknown (nothing was learned yet or at all; reason says why). status is queued, probed or expired; a probe not run within ten minutes expires, and an expired probe says nothing about the connection.
import requests
url = "https://platform.ankra.app/org/stack-profiles/{profile_id}/demos/{workspace_id}/connection-probes/{probe_id}"
headers = {"cookie": "ankra_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'ankra_session='}};
fetch('https://platform.ankra.app/org/stack-profiles/{profile_id}/demos/{workspace_id}/connection-probes/{probe_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/org/stack-profiles/{profile_id}/demos/{workspace_id}/connection-probes/{probe_id} \
--cookie ankra_session={
"probe_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "queued",
"verdict": "passed",
"cause": "<string>",
"reason": "<string>",
"requested_at": "2023-11-07T05:31:56Z",
"probed_at": "2023-11-07T05:31:56Z"
}Authorizations
Browser session. Mutations also require X-Ankra-CSRF.
Path Parameters
Response
The probe and its verdict
A connection probe requested on a stack-profile demo, and what it found.
Where the probe is. Read verdict for the answer.
queued, probed, expired passed: a pod in the demo's namespace connected. failed: the canary ran and did not connect. unknown: nothing was learned yet or at all.
passed, failed, unknown The canary's cause word, empty until the probe has run.
One line saying what the probe found, or why there is no verdict.