Skip to main content
GET
Get the cost autopilot policy

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

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

Successful response

The organisation's cost autopilot policy and every live cluster's tier under it.

clusters
CostAutopilotCluster · object[]
required
defaults
object
required

The tier each environment kind defaults to; every kind is present.

environment_kinds
enum<string>[]
required
Available options:
production,
staging,
development,
preview,
unknown
is_set
boolean
required

False for an organisation that never set a policy: every kind is then Hands-off.

notification_route_id
string<uuid> | null
required

The notification route kept with the policy, or null for none. No notice is sent to it today.

quiet_hours
CostAutopilotQuietHours · object | null
required

When the autopilot starts no change of its own; null for none.

The policy the Autopilot view offers to turn on.

tiers
CostAutopilotTier · object[]
required
updated_at
string<date-time> | null
required

Null until a policy is set.

updated_by
string | null
required

The Ankra user id of the last change; null until a policy is set.

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.

project_defaults
CostAutopilotProjectDefaults · object[]
required

The projects that set their own defaults, by project name: every one on an organisation-wide read, the scope's own project on a one-project read.