Get account usage (serverless and dedicated deployments). Optionally filter by usage type via the usage_type field. If not specified, returns all usage types.
Path parameters
The Account Id
Query parameters
Costs returned are inclusive of start_time. start_time must be before end_time.
Costs returned are exclusive of end_time. end_time must not be more than 31 days after start_time.
Usage type to query usage for If not specified, returns all usage types (both serverless and dedicated deployments).
- USAGE_TYPE_UNSPECIFIED: Default value. When specified (or when usage_type field is not set), returns usage data for all deployment types: both serverless requests and dedicated deployments.
- SERVERLESS: Returns only serverless usage data. Filters the response to include only usage from serverless API requests.
- DEDICATED_DEPLOYMENT: Returns only dedicated deployment usage data. Filters the response to include only usage from dedicated deployments.
IANA timezone identifier for daily aggregation (e.g., "America/Los_Angeles", "Europe/London"). When specified, the returned data will be aggregated into daily buckets based on this timezone. If not specified or empty, defaults to "UTC". See: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
Response
A successful response.
Changes
Changed in 3 of the 27 revisions of this API.3
- ○
added the optional property
//to the response with the statusresponse-optional-property-added
- ○
- ○
added the new optional
queryrequest parametertimezonenew-optional-request-parameter
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
endpoint added
endpoint-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○