Skip to main content
 print this page

Get cost and usage for a month

GET 

/usage/:month

Returns Cost Explorer usage for the month in the path (YYYY-MM). Requires system-settings.view. Future months return GE-1001. latest=yes reads Cost Explorer live and omits LastUpdatedTime. Any other latest value (default no) reads the latest DynamoDB snapshot for that month, or Cost Explorer if none exists.

Request

Responses

TimePeriod and EstimatedUsage always unless projection omits them. CurrentUsage and UsageByService from CE or DynamoDB. LastUpdatedTime only when latest is not yes. No properties are required because of projection.

Response Headers
    Access-Control-Allow-Origin
    Access-Control-Allow-Methods
    Access-Control-Allow-Headers