Keep the last cluster Metrics tab
import requests
url = "https://platform.ankra.app/api/v1/org/clusters/{cluster_id}/metrics-tabs/last"
payload = { "tab": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({tab: '<string>'})
};
fetch('https://platform.ankra.app/api/v1/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://platform.ankra.app/api/v1/org/clusters/{cluster_id}/metrics-tabs/last \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--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
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
/
api
/
v1
/
org
/
clusters
/
{cluster_id}
/
metrics-tabs
/
last
Keep the last cluster Metrics tab
import requests
url = "https://platform.ankra.app/api/v1/org/clusters/{cluster_id}/metrics-tabs/last"
payload = { "tab": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({tab: '<string>'})
};
fetch('https://platform.ankra.app/api/v1/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://platform.ankra.app/api/v1/org/clusters/{cluster_id}/metrics-tabs/last \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--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