It is time to say goodbye: This version of Elastic Cloud Enterprise has reached end-of-life (EOL) and is no longer supported.
The documentation for this version is no longer being maintained. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Get itemized costs by deployments
editGet itemized costs by deployments
editEXPERIMENTAL (it may change in future versions): Retrieves the itemized costs for the given deployment.
Request
editGET /api/v1/billing/costs/{organization_id}/deployments/{deployment_id}/items
Path parameters
editName | Type | Required | Description |
---|---|---|---|
|
|
Y |
Id of a Deployment |
|
|
Y |
Identifier for the organization |
Query parameters
editName | Type | Required | Description |
---|---|---|---|
|
|
N |
A datetime for the beginning of the desired range for which to fetch costs. Defaults to start of current month. Note: there is currently a three-month maximum date range. |
|
|
N |
A datetime for the end of the desired range for which to fetch costs. Defaults to end of current month. Note: there is currently a three-month maximum date range. |
Responses
edit-
200
-
(
ItemsCosts
) The costs associated to a set items billed for a single deployment. -
403
-
(
BasicFailedReply
) The current user does not have access to the requested organization. (code:organization.invalid_access
)Headers
-
x-cloud-error-codes
(string
; allowed values: [organization.invalid_access
]) - The error codes associated with the response
-
Request example
editcurl -XGET https://{{hostname}}/api/v1/billing/costs/{organization_id}/deployments/{deployment_id}/items \ -H "Authorization: ApiKey $ECE_API_KEY"