API Reference

/costs/data_exports

Generate a DataExport of costs.

Log in to see full request history
Query Params
groupings
array of strings

Group the results by specific field(s). Defaults to provider, service, account_id. Valid groupings: account_id, billing_account_id, charge_type, cost_category, cost_subcategory, provider, region, resource_id, service, tagged, tag:<tag_value>. If providing multiple groupings, join as comma separated values: groupings=provider,service,region

groupings
Form Data
string

The CostReport token.

string

The VQL filter to apply to the costs. If this is supplied you do not need cost_report_token.

string

First date you would like to filter costs from. ISO 8601 formatted.

string

Last date you would like to filter costs to. ISO 8601 formatted.

string

The date bin of the costs. Defaults to the report's default or day.

boolean
Defaults to false

Results will include credits.

boolean
Defaults to false

Results will include refunds.

boolean
Defaults to true

Results will include discounts.

boolean
Defaults to true

Results will include tax.

boolean
Defaults to true

Results will amortize.

boolean
Defaults to false

Results will show unallocated costs.

string
Defaults to cost

Results will aggregate by cost or usage.

Responses
202

The data export has been queued and will be available at the location specified in the Location header.

Language
Credentials
OAuth2
Click Try It! to start a request and see the response here! Or choose an example:
application/json