Get projected cost across your account
GET {{baseUrl}}/api/v2/usage/projected_cost?view=esse
Get projected cost across multi-org and single root-org accounts. Projected cost data is only available for the current month and becomes available around the 12th of the month.
This endpoint is only accessible for parent-level organizations.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
view | string | String to specify whether cost is broken down at a parent-org level or at the sub-org level. Available views are summary and sub-org . Defaults to summary . |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"data":[{"attributes":{"charges":[{"charge_type":"on_demand","cost":-72250739.79232128,"product_name":"infra_host"},{"charge_type":"on_demand","cost":29266394.01650481,"product_name":"infra_host"}],"date":"2018-12-10T16:31:14.219Z","org_name":"aliquip lab","projected_total_cost":-41602157.471909255,"public_id":"esse","region":"aliqua elit in quis irure"},"id":"aliqua","type":"projected_cost"},{"attributes":{"charges":[{"charge_type":"on_demand","cost":3613785.798207119,"product_name":"infra_host"},{"charge_type":"on_demand","cost":-9105538.911546946,"product_name":"infra_host"}],"date":"1953-05-20T23:23:06.051Z","org_name":"sit esse laborum aliqua","projected_total_cost":-9358730.083818585,"public_id":"esse irure","region":"in"},"id":"eiusmod incididunt","type":"projected_cost"}]}