Skip to main content
POST
Get daily cost breakdown (pay-as-you-go only)

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234_abcdef

Body

application/json
time_from
string<date-time>
required

The start date of the report period (ISO 8601). The report starts from the beginning of this day in UTC.

Example:

"2023-01-01T00:00:00Z"

time_to
string<date-time>
required

The end date of the report period (ISO 8601). The report ends just before the beginning of this day in UTC.

Example:

"2023-02-01T00:00:00Z"

enable_last_day
boolean
default:false

Expenses for the last specified day are taken into account. As the default, False.

Example:

false

group_by
enum<string>
default:region

Dimension the daily rows are summed down to. Only one grouping per request.

Available options:
flavor,
project,
region,
type
Example:

"region"

project_ids
integer[]

List of project IDs. Omit for all accessible projects.

Minimum array length: 1
Example:
region_ids
integer[]

List of region IDs. Omit for all regions and global usage; an empty list is rejected. Use 0 for global usage that has no region.

Minimum array length: 1
Example:
response_format
enum<string>
default:json

Format of the response: json (default) or csv_records.

Available options:
csv_records,
json
Examples:

"csv_records"

"json"

tags
TagsFilterSerializer · object

Filter by tags

Example:
types
enum<string>[]

List of resource types. Omit for all types.

Minimum array length: 1

Resource types for prebilling report

Available options:
ai_cluster,
ai_virtual_cluster,
backup,
baremetal,
basic_vm,
containers,
dbaas_postgresql_connection_pooler,
dbaas_postgresql_cpu,
dbaas_postgresql_memory,
dbaas_postgresql_public_network,
dbaas_postgresql_volume,
egress_traffic,
external_ip,
file_share,
floatingip,
functions,
functions_calls,
functions_traffic,
image,
inference,
inference_public_models,
instance,
load_balancer,
log_index,
snapshot,
volume
Example:

Response

200 - application/json

Daily cost breakdown

count
integer
required

Count of returned rows

Required range: x >= 0
Example:

7

price_status
enum<string>
required

'show' when the client may see prices, 'hide' for trial clients, clients with no product status, and clients of a reseller that does not expose prices. This report never returns 'error'.

Available options:
error,
hide,
show
results
CostReportBreakdownResultSerializer · object[]
required