Returns a list of actual costs
Returns a list of actual costs
Query Parameters
workspace string
Identifier of a workspace to filter costs for
asset string
Identifier of an asset to filter costs for
from string
Start of time range to return costs for
to string
End of time range to return costs for
provider string
Cloud provider (e.g. gcp, aws, azure) to return costs for
account string
Account/project/subscription to return costs for
invoice string
Invoice to return costs for, in the formay YYYYMM
Responses
- 200
- 401
- 403
- 500
A list of costs known to the system, filtered by the above parameters
- application/json
- Schema
- Example (from schema)
Schema
items undefined[]
account string
assetIdentifier string
cost int64
costIdentifier string
description string
invoice string
provider string
retrievedAt string
usageAmount string
usageEndTime string
usageStartTime string
usageType string
usageUnit string
workspaceIdentifier string
{
"items": [
{
"account": "string",
"assetIdentifier": "string",
"cost": 0,
"costIdentifier": "string",
"description": "string",
"invoice": "string",
"provider": "string",
"retrievedAt": "string",
"usageAmount": "string",
"usageEndTime": "string",
"usageStartTime": "string",
"usageType": "string",
"usageUnit": "string",
"workspaceIdentifier": "string"
}
]
}
If not authenticated
If authenticated but not authorized
A generic API error containing the cause of the error
- application/json
- Schema
- Example (from schema)
Schema
code int32
detail string
message string
uri string
verb string
{
"code": 0,
"detail": "string",
"message": "string",
"uri": "string",
"verb": "string"
}
Loading...