List the fleet's namespace allocations (bearer twin)
import requests
url = "https://platform.ankra.app/api/v1/org/cloud-cost/workloads"
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/cloud-cost/workloads', 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/cloud-cost/workloads \
--header 'Authorization: Bearer <token>'{
"analysed_cluster_count": 123,
"currency": "<string>",
"rows": [
{
"addons": [
"<string>"
],
"allocated_compute_monthly_cents": 123,
"allocated_monthly_cents": 123,
"allocated_storage_monthly_cents": 123,
"allocation_source": "<string>",
"applications": [
{
"application_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cluster_name": "<string>",
"cpu_share": 123,
"memory_share": 123,
"namespace": "<string>",
"provider": "<string>",
"stack_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"stack_name": "<string>"
}
],
"truncated": true
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Cluster not found"
}Cost
List the fleet's namespace allocations (bearer twin)
The latest namespace allocation of every analysed cluster, decorated with the stack, addons and applications running in each namespace, ordered by allocated monthly cost. Bearer-PAT twin of the browser route of the same name under /org; the console’s session cookie is not accepted here and the browser route answers a token with a login redirect.
GET
/
api
/
v1
/
org
/
cloud-cost
/
workloads
List the fleet's namespace allocations (bearer twin)
import requests
url = "https://platform.ankra.app/api/v1/org/cloud-cost/workloads"
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/cloud-cost/workloads', 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/cloud-cost/workloads \
--header 'Authorization: Bearer <token>'{
"analysed_cluster_count": 123,
"currency": "<string>",
"rows": [
{
"addons": [
"<string>"
],
"allocated_compute_monthly_cents": 123,
"allocated_monthly_cents": 123,
"allocated_storage_monthly_cents": 123,
"allocation_source": "<string>",
"applications": [
{
"application_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cluster_name": "<string>",
"cpu_share": 123,
"memory_share": 123,
"namespace": "<string>",
"provider": "<string>",
"stack_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"stack_name": "<string>"
}
],
"truncated": true
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Cluster not found"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
PAT organisation override.