Resolved cloud waste
import requests
url = "https://platform.ankra.app/api/v1/org/cloud-cost/waste/resolved"
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/waste/resolved', 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/waste/resolved \
--header 'Authorization: Bearer <token>'{
"days": 123,
"since": "2023-11-07T05:31:56Z",
"currency": "<string>",
"count": 123,
"monthly_cost_cents": 123,
"unpriced_count": 123,
"kinds": [
{
"kind": "<string>",
"count": 123,
"monthly_cost_cents": 123,
"unpriced_count": 123
}
]
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}Cost
Resolved cloud waste
Totals what Ankra’s cleanup resolved in the last days days (default 30, at most 90), by kind, in the caller’s display currency: the monthly cost the resolved findings were billing. Only findings Ankra’s cleanup resolved count; a finding the scan stopped seeing for another reason is not. Unpriced findings are counted in unpriced_count and never summed as zero, and monthly_cost_cents is null when none was priced. Bearer-PAT twin of the browser route of the same name under /org.
GET
/
api
/
v1
/
org
/
cloud-cost
/
waste
/
resolved
Resolved cloud waste
import requests
url = "https://platform.ankra.app/api/v1/org/cloud-cost/waste/resolved"
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/waste/resolved', 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/waste/resolved \
--header 'Authorization: Bearer <token>'{
"days": 123,
"since": "2023-11-07T05:31:56Z",
"currency": "<string>",
"count": 123,
"monthly_cost_cents": 123,
"unpriced_count": 123,
"kinds": [
{
"kind": "<string>",
"count": 123,
"monthly_cost_cents": 123,
"unpriced_count": 123
}
]
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
PAT organisation override.
Query Parameters
Required range:
1 <= x <= 90Response
The resolved cloud waste in the window