v1

latestOpenAPI 3.0.02026-07-241310301.1 KB
Assets

Get Cost Assets

Retrieve the list of assets defined in the account

get/api/v2/usage/assets

Query parameters

startDatestring date required

Start date for getting the data

endDatestring date required

End date for getting the data

isK8Sboolean required

A flag indicating whether to get 'regular' assets or Kubernets ones. (Bool. 1 = K8S assets, 0 = Regular Assets)

granLevelstring required

Granularity level of the period in the output data. (enum. Possible values: month, week, day)

columnsstring required

The different columns for the required assets-

costTypestring required

The different cost types for the required assets. Possible options are: cost, discount, refund, credit. If you are getting K8S assets, the possible options are: compute, dataTransfer, storage

isUnblendedboolean required

Should the returned data be unblended. (See additional options in the note above)

tokenstring

Pagination indicator. The next token to return in this call. This will be returned from the previous call to this API.

Headers

Authorizationstring required
apikeystring required

Response

usageDatestring
payeraccountstring
servicestring
totalcostinteger
totalUsageQuantityinteger