Get compute usage summary per contract and compute customer

GET https://{{host}}/billing/v1/contracts/:contractId/compute-customers/:computeCustomerId/usage/monthly-summary

Returns the near real-time compute usage summary of the specified contract and compute customer, for the current month. Compute usage data is available with a latency of up to two hours. The response shows a number of unbilled hours or GBs, while your final bill also includes the monthly capping. Note that your final bill also includes overages for transfer and object storage, computed towards the end of the month.

Request Params

KeyDatatypeRequiredDescription
pagestring(Optional) Specifies an offset into the results. Use in conjunction with size. The page number offset is 1-based.
sizestring(Optional) Specifies the number of results per page. Use in conjunction with page.
accountSwitchKeystring(Optional) For customers who manage more than one account, this runs the operation from another account. The Identity and Access Management API provides a list of available account switch keys.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"accountId":"A-CCT1234","computeCustomerId":123456,"contractId":"C-0N7RAC7","metadata":{"pageNumber":1,"pageSize":1000,"totalElements":2,"totalPages":1},"usagePeriods":[{"month":"2024-03","usageProducts":[{"end":"2024-03-21","month":"2024-03","productId":"1-ABC012","productName":"Object Storage","region":"GLOBAL","start":"2024-03-01","stats":[{"statType":"Hours","unit":"hours","value":696}]},{"end":"2024-03-05","month":"2024-03","productId":"1-ABC013","productName":"Nanode 1GB","region":"eu-central","start":"2024-03-01","stats":[{"statType":"Hours","unit":"hours","value":696}]}]}]}