Skip to main content
GET
Resolved cloud waste

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-ankra-organisation-id
string

PAT organisation override.

Query Parameters

days
integer
default:30
Required range: 1 <= x <= 90
project_id
string

The project to read: a project's id, or all for the whole organisation. Absent reads the caller's current project (the whole organisation while projects are off). A token pinned to a project, or a member limited to projects, may name only their own project.

Response

The resolved cloud waste in the window

days
integer
required
since
string<date-time>
required
currency
string
required
count
integer
required
monthly_cost_cents
integer | null
required

The priced findings' monthly cost; null when none was priced.

unpriced_count
integer
required
kinds
CloudWasteResolvedKind · object[]
required
shared_not_counted_count
integer
required

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.

shared_not_counted_monthly_cost_cents
integer
required

The priced monthly cost of the shared_not_counted_count findings.

scope
CostReadScope · object
required

What a fleet cost read covered (ADR 0022): the project it read, or the whole organisation, and whether the caller's cluster permissions hid clusters from it.