Get deployments costs for the organization. Currently unavailable in self-hosted ECE.
EXPERIMENTAL (it may change in future versions): Retrieves the costs associated with all deployments for the organization.
Path parameters
-
Identifier for the organization
Responses
-
The costs associated to a set of products
-
Invalid date range specified. (code:
costs.invalid_date_range
) -
The current user does not have access to the requested organization. (code:
organization.invalid_access
) -
Organization not found. (code:
organization.not_found
) -
An error occurred when fetching the costs associated with all deployments for the organization. (code:
billing_service.failed_request
)
GET /billing/costs/{organization_id}/deployments
curl \
-X GET https://{{hostname}}/api/v1/billing/costs/{organization_id}/deployments \
-H "Accept: string"
Response examples (200)
{
"total_cost": 42.0,
"deployments": [
{
"deployment_id": "string",
"deployment_name": "string",
"costs": {
"total": 42.0,
"dimensions": [
{
"type": "capacity",
"cost": 42.0
}
]
},
"hourly_rate": 42.0,
"period": {
"start": "2024-05-04T09:42:00+00:00",
"end": "2024-05-04T09:42:00+00:00"
}
}
]
}
Response examples (400)
# Headers
x-cloud-error-codes: costs.invalid_date_range
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
Response examples (403)
# Headers
x-cloud-error-codes: organization.invalid_access
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
Response examples (404)
# Headers
x-cloud-error-codes: organization.not_found
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
Response examples (500)
# Headers
x-cloud-error-codes: billing_service.failed_request
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}