Read labels from the selected cluster log store
import requests
url = "https://platform.ankra.app/org/clusters/imported/{cluster_id}/logs/labels"
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/clusters/imported/{cluster_id}/logs/labels', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/org/clusters/imported/{cluster_id}/logs/labels \
--cookie ankra_session={
"provider": "<string>",
"source": "<string>",
"note": "<string>",
"names": [
"<string>"
],
"values": {},
"cluster_attribution": {}
}Clusters
Read labels from the selected cluster log store
Namespace, pod and container values observed in the time window. Values can be capped and absence does not establish that collection is disabled. Use the same source choice as the history query.
GET
/
org
/
clusters
/
imported
/
{cluster_id}
/
logs
/
labels
Read labels from the selected cluster log store
import requests
url = "https://platform.ankra.app/org/clusters/imported/{cluster_id}/logs/labels"
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/clusters/imported/{cluster_id}/logs/labels', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/org/clusters/imported/{cluster_id}/logs/labels \
--cookie ankra_session={
"provider": "<string>",
"source": "<string>",
"note": "<string>",
"names": [
"<string>"
],
"values": {},
"cluster_attribution": {}
}Authorizations
Browser session. Mutations also require X-Ankra-CSRF.
Path Parameters
Query Parameters
Read auto (connected source first, hosted only when no source is connected), connected only, or Ankra hosted logs only. An explicit choice never switches on empty results or failure and does not alter the saved connection.
Available options:
auto, connected, ankra_hosted