List open cloud waste findings (bearer twin)
import requests
url = "https://platform.ankra.app/api/v1/org/cloud-cost/waste"
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', 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 \
--header 'Authorization: Bearer <token>'{
"credential_errors": [
{
"credential_name": "<string>",
"error": "<string>",
"provider": "<string>",
"scanned_at": "2023-11-07T05:31:56Z"
}
],
"currency": "<string>",
"findings": [
{
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cluster_name": "<string>",
"credential_name": "<string>",
"details": {},
"external_id": "<string>",
"first_seen_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "<string>",
"last_seen_at": "2023-11-07T05:31:56Z",
"monthly_cost_cents": 123,
"provider": "<string>",
"region": "<string>",
"resource_name": "<string>"
}
],
"has_data": true,
"scanned_at": "2023-11-07T05:31:56Z",
"total_monthly_cost_cents": 123,
"unpriced_finding_count": 123
}{
"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 open cloud waste findings (bearer twin)
The organisation’s open waste findings from the latest scan, with the credentials whose sweep failed so an incomplete scan never reads as zero waste. 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
/
waste
List open cloud waste findings (bearer twin)
import requests
url = "https://platform.ankra.app/api/v1/org/cloud-cost/waste"
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', 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 \
--header 'Authorization: Bearer <token>'{
"credential_errors": [
{
"credential_name": "<string>",
"error": "<string>",
"provider": "<string>",
"scanned_at": "2023-11-07T05:31:56Z"
}
],
"currency": "<string>",
"findings": [
{
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cluster_name": "<string>",
"credential_name": "<string>",
"details": {},
"external_id": "<string>",
"first_seen_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "<string>",
"last_seen_at": "2023-11-07T05:31:56Z",
"monthly_cost_cents": 123,
"provider": "<string>",
"region": "<string>",
"resource_name": "<string>"
}
],
"has_data": true,
"scanned_at": "2023-11-07T05:31:56Z",
"total_monthly_cost_cents": 123,
"unpriced_finding_count": 123
}{
"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.
Query Parameters
Narrow the findings to one cluster.
Response
Successful response
Show child attributes
Show child attributes
Show child attributes
Show child attributes