The response body is an array of objects, where each object has the following structure:
Field
Type
Description
uuid
string (uuid)
url
string (uri)
scope
string (uri)
scope_name
string
scope_uuid
string (uuid)
actions
string
created
string (date-time)
created_by_full_name
string
created_by_username
string
has_fired
boolean
fired_datetime
string (date-time)
options
object (free-form)
Fields for saving actions extra data. Keys are name of actions.
affected_resources_count
integer
limit_cost
integer
period
any
period_name
string
current_cost
string (decimal)
The cost this policy compares against limit_cost right now: the period's invoice total, less the credit already applied and the credit still to be drawn. Do not re-derive it — only the server can simulate the pending draw, and a figure computed from the invoice alone will not match what the policy evaluates.
eta_days
integer
Days until the policy fires, or null when no projection exists. 0 means the threshold is already crossed and the policy is triggered — measured, not projected. Null must be rendered as no date, never as 'now': it is the common case, and it is also what an unprojectable or more-than-a-year-away policy reports. Nothing is projected beyond 365 days, because the rate comes from the current month's spend. Note that a cost policy does not fire on cost alone — it also waits for the credit balance to fall to limit_cost — so a policy far over its cap can still report a future date or null.
eta_date
string (date)
eta_days as a calendar date, so clients do not each re-derive it. Null whenever eta_days is null; today when eta_days is 0.
organization_groups
array of string (uri)s
apply_to_all
boolean
If True, policy applies to all customers. Mutually exclusive with organization_groups.
Fields for saving actions extra data. Keys are name of actions.
affected_resources_count
integer
limit_cost
integer
period
any
period_name
string
current_cost
string (decimal)
The cost this policy compares against limit_cost right now: the period's invoice total, less the credit already applied and the credit still to be drawn. Do not re-derive it — only the server can simulate the pending draw, and a figure computed from the invoice alone will not match what the policy evaluates.
eta_days
integer
Days until the policy fires, or null when no projection exists. 0 means the threshold is already crossed and the policy is triggered — measured, not projected. Null must be rendered as no date, never as 'now': it is the common case, and it is also what an unprojectable or more-than-a-year-away policy reports. Nothing is projected beyond 365 days, because the rate comes from the current month's spend. Note that a cost policy does not fire on cost alone — it also waits for the credit balance to fall to limit_cost — so a policy far over its cap can still report a future date or null.
eta_date
string (date)
eta_days as a calendar date, so clients do not each re-derive it. Null whenever eta_days is null; today when eta_days is 0.
organization_groups
array of string (uri)s
apply_to_all
boolean
If True, policy applies to all customers. Mutually exclusive with organization_groups.
Fields for saving actions extra data. Keys are name of actions.
limit_cost
integer
✓
period
any
organization_groups
array of string (uri)s
apply_to_all
boolean
If True, policy applies to all customers. Mutually exclusive with organization_groups.
201 -
Field
Type
Description
uuid
string (uuid)
url
string (uri)
scope
string (uri)
scope_name
string
scope_uuid
string (uuid)
actions
string
created
string (date-time)
created_by_full_name
string
created_by_username
string
has_fired
boolean
fired_datetime
string (date-time)
options
object (free-form)
Fields for saving actions extra data. Keys are name of actions.
affected_resources_count
integer
limit_cost
integer
period
any
period_name
string
current_cost
string (decimal)
The cost this policy compares against limit_cost right now: the period's invoice total, less the credit already applied and the credit still to be drawn. Do not re-derive it — only the server can simulate the pending draw, and a figure computed from the invoice alone will not match what the policy evaluates.
eta_days
integer
Days until the policy fires, or null when no projection exists. 0 means the threshold is already crossed and the policy is triggered — measured, not projected. Null must be rendered as no date, never as 'now': it is the common case, and it is also what an unprojectable or more-than-a-year-away policy reports. Nothing is projected beyond 365 days, because the rate comes from the current month's spend. Note that a cost policy does not fire on cost alone — it also waits for the credit balance to fall to limit_cost — so a policy far over its cap can still report a future date or null.
eta_date
string (date)
eta_days as a calendar date, so clients do not each re-derive it. Null whenever eta_days is null; today when eta_days is 0.
organization_groups
array of string (uri)s
apply_to_all
boolean
If True, policy applies to all customers. Mutually exclusive with organization_groups.
Fields for saving actions extra data. Keys are name of actions.
limit_cost
integer
✓
period
any
organization_groups
array of string (uri)s
apply_to_all
boolean
If True, policy applies to all customers. Mutually exclusive with organization_groups.
200 -
Field
Type
Description
uuid
string (uuid)
url
string (uri)
scope
string (uri)
scope_name
string
scope_uuid
string (uuid)
actions
string
created
string (date-time)
created_by_full_name
string
created_by_username
string
has_fired
boolean
fired_datetime
string (date-time)
options
object (free-form)
Fields for saving actions extra data. Keys are name of actions.
affected_resources_count
integer
limit_cost
integer
period
any
period_name
string
current_cost
string (decimal)
The cost this policy compares against limit_cost right now: the period's invoice total, less the credit already applied and the credit still to be drawn. Do not re-derive it — only the server can simulate the pending draw, and a figure computed from the invoice alone will not match what the policy evaluates.
eta_days
integer
Days until the policy fires, or null when no projection exists. 0 means the threshold is already crossed and the policy is triggered — measured, not projected. Null must be rendered as no date, never as 'now': it is the common case, and it is also what an unprojectable or more-than-a-year-away policy reports. Nothing is projected beyond 365 days, because the rate comes from the current month's spend. Note that a cost policy does not fire on cost alone — it also waits for the credit balance to fall to limit_cost — so a policy far over its cap can still report a future date or null.
eta_date
string (date)
eta_days as a calendar date, so clients do not each re-derive it. Null whenever eta_days is null; today when eta_days is 0.
organization_groups
array of string (uri)s
apply_to_all
boolean
If True, policy applies to all customers. Mutually exclusive with organization_groups.
Fields for saving actions extra data. Keys are name of actions.
limit_cost
integer
period
any
organization_groups
array of string (uri)s
apply_to_all
boolean
If True, policy applies to all customers. Mutually exclusive with organization_groups.
200 -
Field
Type
Description
uuid
string (uuid)
url
string (uri)
scope
string (uri)
scope_name
string
scope_uuid
string (uuid)
actions
string
created
string (date-time)
created_by_full_name
string
created_by_username
string
has_fired
boolean
fired_datetime
string (date-time)
options
object (free-form)
Fields for saving actions extra data. Keys are name of actions.
affected_resources_count
integer
limit_cost
integer
period
any
period_name
string
current_cost
string (decimal)
The cost this policy compares against limit_cost right now: the period's invoice total, less the credit already applied and the credit still to be drawn. Do not re-derive it — only the server can simulate the pending draw, and a figure computed from the invoice alone will not match what the policy evaluates.
eta_days
integer
Days until the policy fires, or null when no projection exists. 0 means the threshold is already crossed and the policy is triggered — measured, not projected. Null must be rendered as no date, never as 'now': it is the common case, and it is also what an unprojectable or more-than-a-year-away policy reports. Nothing is projected beyond 365 days, because the rate comes from the current month's spend. Note that a cost policy does not fire on cost alone — it also waits for the credit balance to fall to limit_cost — so a policy far over its cap can still report a future date or null.
eta_date
string (date)
eta_days as a calendar date, so clients do not each re-derive it. Null whenever eta_days is null; today when eta_days is 0.
organization_groups
array of string (uri)s
apply_to_all
boolean
If True, policy applies to all customers. Mutually exclusive with organization_groups.