Assets API

Assets API (Querying)

GET http://app.kubecost.com/query/assets/query

The Assets API retrieves backing cost data broken down by individual assets in your cluster but also provides various aggregations of this data.

Path Parameters

Name
Type
Description

window*

string

format

string

File type when exporting query. Currently only supports json.

aggregate

string

Used to consolidate cost model data. Supported values are account, category, cluster, name, project, providerid, provider, service, type, department, environment, owner, product, team, and label:<name>. Passing an empty value for this parameter or none at all returns data by an individual asset. Supports multi-aggregation (aggregation of multiple categories) in a comma separated list, such as aggregate=account,project.

accumulate

boolean

If true, sum the entire range of time intervals into a single set. Default value is false.

limit

int

Refers to the number of line items per page. Currently, only supported together with accumulate=true to obtain a single list of line items.

filter

string

Assets API (Total)

GET http://app.kubecost.com/query/assets/totals

The /totals endpoint does not aggregate, and accepts only a window and an optional filter, returning a single total cost.

Path Parameters

Name
Type
Description

window*

string

format

string

File type when exporting query. Currently only supports json.

filter

string

Last updated