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
}
],
"shared_not_counted_count": 123,
"shared_not_counted_monthly_cost_cents": 123
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}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. A finding whose resource other organisations also saw, and whose cost counts in another organisation or in none, is counted in shared_not_counted_count instead. 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.
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
}
],
"shared_not_counted_count": 123,
"shared_not_counted_monthly_cost_cents": 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
1 <= x <= 90Response
The resolved cloud waste in the window
The priced findings' monthly cost; null when none was priced.
Show child attributes
Show child attributes
Resolved findings whose resource other Ankra organisations also saw and whose cost counts in another organisation or in none; they are not in count, monthly_cost_cents, unpriced_count or kinds.
The priced monthly cost of the shared_not_counted_count findings.