Keep the last cluster Metrics tab (browser session)
import requests
url = "https://api.platform.ankra.app/org/clusters/{cluster_id}/metrics-tabs/last"
payload = { "tab": "<string>" }
headers = {
"cookie": "ankra_session=",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {cookie: 'ankra_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({tab: '<string>'})
};
fetch('https://api.platform.ankra.app/org/clusters/{cluster_id}/metrics-tabs/last', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PUT \
--url https://api.platform.ankra.app/org/clusters/{cluster_id}/metrics-tabs/last \
--header 'Content-Type: application/json' \
--cookie ankra_session= \
--data '
{
"tab": "<string>"
}
'{
"detail": "<string>",
"error_code": "invalid_metrics_tabs"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Clusters
Keep the last cluster Metrics tab (browser session)
Keeps the tab the caller left the cluster’s Metrics on, so Metrics opens on it on every device. The row is the caller’s own; nobody else’s is read or written, and nothing is audited. Only the tab’s shape is checked: a read answers a last tab that is not on Metrics, or that the reader cannot open, as null. Requires clusters.read.
PUT
/
org
/
clusters
/
{cluster_id}
/
metrics-tabs
/
last
Keep the last cluster Metrics tab (browser session)
import requests
url = "https://api.platform.ankra.app/org/clusters/{cluster_id}/metrics-tabs/last"
payload = { "tab": "<string>" }
headers = {
"cookie": "ankra_session=",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {cookie: 'ankra_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({tab: '<string>'})
};
fetch('https://api.platform.ankra.app/org/clusters/{cluster_id}/metrics-tabs/last', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PUT \
--url https://api.platform.ankra.app/org/clusters/{cluster_id}/metrics-tabs/last \
--header 'Content-Type: application/json' \
--cookie ankra_session= \
--data '
{
"tab": "<string>"
}
'{
"detail": "<string>",
"error_code": "invalid_metrics_tabs"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Body
application/json
Response
The last tab is kept