Get Deployment Expense History By Id

Get Deployment Expense History By Id

Returns the deployment expense history with the supplied ID.

Request
URI
GET
https://{api_host}/deployment/api/deployments/{deploymentId}/expense-history
COPY
Path Parameters
string
deploymentId
Required

Deployment ID

Query Parameters
string
from
Optional

The timestamp from when history is requested. Should be of ISO_INSTANT format.

string
to
Optional

The timestamp until when history is requested. Should be of ISO_INSTANT format.

string
interval
Optional

The interval of the expense history. Should be one of daily, weekly or monthly.


Authentication
This operation uses the following authentication methods.
Responses
200

OK

Returns DeploymentExpenseHistory of type(s) application/json
{
    "currency": "string",
    "data": [
        {
            "timestamp": "string",
            "value": "number"
        }
    ],
    "interval": "string"
}
string
currency
Optional

The currency code of the expense history.

array of object
data
Optional

The list of expense history metric.

string
interval
Optional

The requested interval type.

Possible values are : daily, weekly, monthly,

401

Unauthorized

Returns DeploymentExpenseHistory of type(s) application/json
"DeploymentExpenseHistory Object"
string
currency
Optional

The currency code of the expense history.

array of object
data
Optional

The list of expense history metric.

string
interval
Optional

The requested interval type.

Possible values are : daily, weekly, monthly,

404

Not Found

Returns DeploymentExpenseHistory of type(s) application/json
"DeploymentExpenseHistory Object"
string
currency
Optional

The currency code of the expense history.

array of object
data
Optional

The list of expense history metric.

string
interval
Optional

The requested interval type.

Possible values are : daily, weekly, monthly,

Code Samples
COPY
                    curl -H 'Authorization: <value>' https://{api_host}/deployment/api/deployments/{deploymentId}/expense-history