A newer version is available. For the latest information, see the
current release documentation.
Get costs overview for the organizationedit
EXPERIMENTAL (it may change in future versions): Retrieves an overview of the costs by organization ID.
Requestedit
GET /api/v1/billing/costs/{organization_id}
Path parametersedit
Name | Type | Required | Description |
---|---|---|---|
|
|
Y |
Identifier for the organization |
Query parametersedit
Name | Type | Required | Description |
---|---|---|---|
|
|
N |
A datetime for the beginning of the desired range for which to fetch costs. Defaults to start of current month. |
|
|
N |
A datetime for the end of the desired range for which to fetch costs. Defaults to the current date. |
Responsesedit
-
200
-
Top-level cost overview for the organization
-
403
-
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 exampleedit
curl -XGET https://{{hostname}}/api/v1/billing/costs/{organization_id} \ -H "Authorization: ApiKey $ECE_API_KEY"