Get Tenant Platform Usage
API code: GET_TENANT_PLATFORM_USAGE
Pre-authorized role(s): PROVIDER_ADMIN
Platform(s): CLOUDIAN
The full tenant ID or tenant name. It must be URL encoded.
The type of service usage data to retrieve. Supported values are: SB, SO, HG, HP and HD. Please refer Cloudian Usage API document for the details.
The start time of the interval for which to retrieve usage data. Format is yyyyMMddHHmm. For retrieving bucket usage data, the start time's "mm" (the minutes) must be 00.
The end time in GMT of the interval for which to retrieve usage data. Format is yyyyMMddHHmm. For retrieving bucket usage data, the end time's "mm" (the minutes) must be 00.
The time period granularity of the usage data to retrieve or generate or delete. Supported values are: hour (Hourly rollup data), day (Daily rollup data), month (Monthly rollup data) and raw (Raw transactional data not rolled up). This is supported only for a GET or DELETE. For a GET with granularity "raw", the interval between "startTime" and "endTime" must not exceed 24 hours.
The region of a resource.
Specifies the region to start with when query muti-region usage items. When a request use a "region" value of "ALL", then use the "regionOffset" parameter to specify the region name of your local region. This helps with pagination of the result set.
The maximum number of results to return per request. This parameter is not supported if you are retrieving bucket usage data.
Specifies the timestamp to start with when query usage items. When the number of usage items in the response exceeds the value of page-size, nextTimestampMarker in the response specifies the first timestamp not returned that satisfies the search criteria. Use this value for the timestamp-marker request parameter in a subsequent request.
OK
{
"granularity": "string",
"timestampMarker": "string",
"nextTimestampMarker": "string",
"regionOffset": "string",
"nextRegionOffset": "string",
"items": [
{
"operation": "string",
"unit": "string",
"value": "string",
"count": "string",
"averageValue": "string",
"maxValue": "string",
"tenantId": "string",
"storageTenantId": "string",
"region": "string",
"timestamp": "string",
"uri": "string",
"ip": "string",
"policyId": "string",
"whitelistAverageValue": "string",
"whitelistCount": "string",
"whitelistMaxValue": "string",
"whitelistValue": "string",
"shared": false
}
],
"truncated": false
}
granularity
timestampMarker
nextTimestampMarker
regionOffset
nextRegionOffset
truncated