Get Usage Overview
The API allows you to get a summary of the usage information for a given service identifier and metric identifier in an organization. The API returns the total usage, commitment, and overage values based on the latest updated usage information. You can specify an end date to filter the usages by their latest update time prior to the time specified. If you do not specify an end date, the API will use the latest update time as the end date.
Unique identifier (GUID) of the organization
Unique identifier of the service
Unique identifier of the metric
Locale with language preference (e.g. en_US)
Filtering criteria based on latest update time (yyyy-mm-dd)
OK
{
"metadata": {
"metric_id": "<metric ID for vRNI vCPUs Public Cloud>",
"service_definition_id": "<service definition ID for VMC-AWS>",
"display_name": "i3en US West 2",
"unit_of_measure_display_name": "Hosts",
"charge_attributes": {
"category": "HOST_USAGE"
}
},
"usages": [
{
"commitment": 3,
"usage": 3,
"overage": 0,
"status": "AT_COMMITMENT",
"seller": "VMWARE",
"last_updated": "2021-06-20T01:02:03.000Z",
"resources": [
{
"resource_id": "res1",
"usage_quantity": 10
}
]
}
]
}
Bad Request
{
"error_code": "string",
"error_message": "string",
"error_details": [
{
"error_code": "string",
"error_message": "string"
}
]
}
The code associated with the error
A description of the error that occurred
Additional error details for ValidationException errors
Unauthorized
Forbidden