Get VM billing history
GET/billing/billing/history/virtual-machine/:vm_id
Returns billing history of a specific Virtual Machine for the specified billing cycle. The response includes 'resource_name', 'infrahub_id', 'price_per_hour', 'non_discounted_price_per_hour', 'incurred_bill', 'non_discounted_bill', 'usage_time', 'usage_time_ACTIVE', 'usage_time_SHUTOFF', 'usage_time_HIBERNATED'
Reliability: This endpoint returns
500intermittently. Retry with backoff; if the failure persists, contact support.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Success
Bad Request
Common cause: error_reason: bad_request.
Unauthorized
Forbidden
Not Found
Internal Server Error
Was this page helpful?