Cost Explorer (Beta)
Cloud provider (aws, azure, gcp)
awsPossible values: Optional segment ID to scope results. Defaults to the provider resources segment if not specified.
nullStart date (YYYY-MM-DD)
End date (YYYY-MM-DD, exclusive)
Dimension to group costs by: 'service', 'account', or 'region'. If omitted, returns total spend without grouping.
nullPossible values: Time granularity: 'daily' or 'monthly' (default 'daily')
dailyPossible values: Cost metric to use. 'amortized' (default): includes upfront costs spread over commitment term. 'unblended' (AWS only): actual charges as they appear on the bill. 'actual' (Azure/GCP only): equivalent to unblended for Azure and GCP.
amortizedPossible values: Return only the top N groups by cost, with remaining groups combined into 'Other'. If omitted, returns all groups.
nullInclude credits, refunds, and enterprise discounts (AWS EDP/PPA, Azure MACC, GCP commit agreements) in the cost data. Default false (shows spend before credits and discounts).
falseInclude time-series data points for each group. Default true. Set to false for compact summary-only responses.
trueOK
Effective start date of the returned data (YYYY-MM-DD). May be later than the requested start_date if the range was clamped to available data.
Effective end date of the returned data, exclusive (YYYY-MM-DD). May be earlier than the requested end_date if the range was clamped to available data (e.g. cloud-provider cost-data lag).
Total cost across all groups over the effective date range. Headline 'cost' — the answer to 'what did I spend.' Sum of groups[*].total_cost.
Bad request
Unauthorized
Forbidden
Not found
Method not allowed
Conflict
Unprocessable Content
Internal server error
Default error response
Cloud provider (aws, azure, gcp)
awsPossible values: OK
Available cloud service names
Available cloud account IDs
Available cloud regions
Available instance families (AWS only)
Available operating systems (AWS only)
Available tenancy types (AWS only)
Bad request
Unauthorized
Forbidden
Not found
Method not allowed
Conflict
Unprocessable Content
Internal server error
Default error response
Last updated
Was this helpful?

