Get Cost Breakdown for Multiple Clusters
GET/dashboard/:cluster_type/cost-breakdown
Retrieve detailed cost breakdowns for one or more specified clusters of a given type within a defined date range.
Request
Path Parameters
Type of the cluster (eks, asg)
Query Parameters
List of cluster IDs for which to retrieve the cost breakdown.
Default value: 2024-09-25
Start date for the cost report (format: YYYY-MM-DD). Defaults to 30 days ago.
Default value: 2024-10-25
End date for the cost report (format: YYYY-MM-DD). Defaults to today.
Header Parameters
API key for authentication
Responses
- 200
- 400
- 404
- 422
Successfully retrieved the cost breakdown for the specified clusters.
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
The ID of the cluster.
Total cost associated with CPU usage.
Total cost associated with GPU usage.
Total cost associated with memory usage.
Total cost associated with storage.
Total cost associated with network usage.
Total cost associated with control plane resources.
Total cost associated with extended support options.
[
{
"cluster_id": 0,
"cpu": 0,
"gpu": 0,
"memory": 0,
"storage": 0,
"network": 0,
"control_plane": 0,
"extended_support": 0
}
]
Cost Breakdown is not available for Autoscaling Groups.
No clusters found or invalid cluster IDs.
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}