Usage Count By Cloud Type V2
POST/license/api/v2/usage
Get a full breakdown of resources used per account for selected cloud types in a paginated way.
By default, you will receive your paginated usage data in the response object. You can control the number of items in the response object through the limit request body parameter. If data beyond what's in the response object is available, the response object attribute nextPageToken will provide a token you can set in the request parameter pageToken of your next request to get the next page of usage data.
Request
- application/json;charset=UTF-8
Body
required
List of account IDs
Limit of items per request. Default is 1000.
List of cloud types
timeRange objectrequired
Model for TimeRangeConfig
Possible values: [relative
]
value object
Model for RelativeTimeDuration
Possible values: [minute
, hour
, day
, week
, month
, year
, epoch
, login
, INVALID
, minute, hour, day, week, month, year, epoch, login
]
Time unit
Number of time units
Possible values: [BACKWARD
]
Page token for pagination
Offset
Responses
- 200
- 400
- 403
Table query paginated Api response.
- application/json;charset=UTF-8
- Schema
- Example (from schema)
Schema
- Array [
- ]
Total number of rows for the query
stats object
Statistics to be shown. This contains the total workload per resource type
Statistics to be shown. This contains the total workload per resource type
items object[]
List of items. Each item contains cloud account name and the workload count of resource type
account object
resourceTypeCount object
Token to be used for next page call
PlanType of the selected time range
{
"totalRows": 0,
"stats": {},
"items": [
{
"account": {
"name": "string",
"id": "string"
},
"cloudType": "string",
"total": 0,
"resourceTypeCount": {}
}
],
"nextPageToken": "string",
"planType": "string"
}
invalid_parameter_value
- application/json;charset=UTF-8
- Schema
- Example (from schema)
Schema
timestamp
Http status
Error message
Error message
Request path
{
"timestamp": "string",
"status": 0,
"error": "string",
"message": "string",
"path": "string"
}
Forbidden
- application/json;charset=UTF-8
- Schema
- Example (from schema)
Schema
timestamp
Http status
Error message
Error message
Request path
{
"timestamp": "string",
"status": 0,
"error": "string",
"message": "string",
"path": "string"
}