Skip to main content
GET
/
billing
/
costs
/
{organization_id}
/
deployments
Get deployments costs for the organization. Currently unavailable in self-hosted ECE.
curl --request GET \
  --url https://api.elastic-cloud.com/api/v1/billing/costs/{organization_id}/deployments \
  --header 'Authorization: <api-key>'
{
  "deployments": [
    {
      "costs": {
        "dimensions": [
          {
            "cost": "<double>",
            "type": "data_internode"
          },
          {
            "cost": "<double>",
            "type": "data_in"
          }
        ],
        "total": "<double>"
      },
      "deployment_id": "<string>",
      "deployment_name": "<string>",
      "hourly_rate": "<double>",
      "period": {
        "end": "<dateTime>",
        "start": "<dateTime>"
      }
    },
    {
      "costs": {
        "dimensions": [
          {
            "cost": "<double>",
            "type": "data_in"
          },
          {
            "cost": "<double>",
            "type": "storage_api"
          }
        ],
        "total": "<double>"
      },
      "deployment_id": "<string>",
      "deployment_name": "<string>",
      "hourly_rate": "<double>",
      "period": {
        "end": "<dateTime>",
        "start": "<dateTime>"
      }
    }
  ],
  "total_cost": "<double>"
}

Authorizations

Authorization
string
header
required

Path Parameters

organization_id
string
required

(Required) Identifier for the organization

Example:

"<string>"

Query Parameters

from
string

A datetime for the beginning of the desired range for which to fetch activity. Defaults to start of current month.

Example:

"<string>"

to
string

A datetime for the end of the desired range for which to fetch activity. Defaults to the current date.

Example:

"<string>"

Response

The costs associated to a set of products

deployments
object[]
Example:
[
{
"costs": {
"dimensions": [
{
"cost": "<double>",
"type": "data_internode"
},
{ "cost": "<double>", "type": "data_in" }
],
"total": "<double>"
},
"deployment_id": "<string>",
"deployment_name": "<string>",
"hourly_rate": "<double>",
"period": {
"end": "<dateTime>",
"start": "<dateTime>"
}
},
{
"costs": {
"dimensions": [
{ "cost": "<double>", "type": "data_in" },
{ "cost": "<double>", "type": "storage_api" }
],
"total": "<double>"
},
"deployment_id": "<string>",
"deployment_name": "<string>",
"hourly_rate": "<double>",
"period": {
"end": "<dateTime>",
"start": "<dateTime>"
}
}
]
total_cost
string
Example:

"<double>"

I