Billing
Get cluster billing history
Returns the accrued cost, hourly rate, and billable hours for a Kubernetes cluster over a date range you specify. The same figures are broken down by individual node, so you can see which nodes account for the total.
get/billing/billing/history/cluster/{cluster_id}
Request
- Base URL: https://infrahub-api.nexgencloud.com/v1
- URL: https://infrahub-api.nexgencloud.com/v1/billing/billing/history/cluster/{cluster_id}
- Auth: API key in header api_key
Path parameters
cluster_idinteger required
ID of the cluster.
Query parameters
start_datestring required
Date should be formatted in YYYY-MM-DDTHH:MM:SS
end_datestring required
Date should be formatted in YYYY-MM-DDTHH:MM:SS
Response
Success
Example response
{
"billing_history_cluster_details": {
"attributes": {
"id": "7e2d5a13-9c8b-4f1e-a420-3d6f8b9c0e15",
"infrahub_id": 1402,
"resource_name": "uimap-bucket-test",
"status": "ACTIVE"
},
"metrics": {
"incurred_bill": 1.4799118041992184e-11,
"price_per_hour": 1.479911804199218e-10,
"usage_time": 1680
},
"nodes": [
{
"attributes": {
"id": "7e2d5a13-9c8b-4f1e-a420-3d6f8b9c0e15",
"infrahub_id": 1402,
"resource_name": "uimap-bucket-test",
"status": "ACTIVE"
},
"metrics": {
"incurred_bill": 1.4799118041992184e-11,
"price_per_hour": 1.479911804199218e-10,
"usage_time": 1680
}
}
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.