Get Usage
Operation ID: getUsage
Get the platform usage of global (without query parameter), tenant (only with tenant_id) or user (with tenant_id and user_id).
Request
URI
GET
https://{api_host}/osis/api/v1/usage
COPY
Query Parameters
string
tenant_id
Optional
The ID of the storage tenant to get its usage.
string
user_id
Optional
The ID of the storage user to get its usage.
Responses
200
The usage of the tenant or user is returned
Returns OsisUsage of type(s) application/json
{
"bucket_count": 532,
"object_count": 298635,
"total_bytes": 80948230763,
"available_bytes": 48193854929,
"used_bytes": 32754375834
}
integer As int64 As int64
bucket_count
Required
bucket count of tenant or user
integer As int64 As int64
object_count
Required
object count of tenant or user
integer As int64 As int64
total_bytes
Required
total storage bytes of tenant or user
integer As int64 As int64
available_bytes
Optional
available storage bytes of tenant or user
integer As int64 As int64
used_bytes
Required
used storage bytes of tenant or user
501
The optional API is not implemented
Operation doesn't return any data structure
Usage Operations
GET
Get Usage