3.40.1. List usage information for all tenants

 
MethodURIDescription
GET/v2/{tenant_id}/os-simple-tenant-usage

Lists usage information for all tenants.

Normal response codes: 200

 3.40.1.1. Request

This table shows the URI parameters for the list usage information for all tenants request:

NameTypeDescription

{tenant_id}

​String

The ID for the tenant or account in a multi-tenancy cloud.

 3.40.1.2. Response

 

Example 3.332. List usage information for all tenants: JSON response

{
    "tenant_usages": [
        {
            "start": "2012-10-08T21:10:44.587336",
            "stop": "2012-10-08T22:10:44.587336",
            "tenant_id": "openstack",
            "total_hours": 1.0,
            "total_local_gb_usage": 1.0,
            "total_memory_mb_usage": 512.0,
            "total_vcpus_usage": 1.0
        }
    ]
}

 

Example 3.333. List usage information for all tenants: XML response

<?xml version='1.0' encoding='UTF-8'?>
<tenant_usages>
  <tenant_usage>
    <tenant_id>openstack</tenant_id>
    <total_local_gb_usage>1.0</total_local_gb_usage>
    <total_vcpus_usage>1.0</total_vcpus_usage>
    <total_memory_mb_usage>512.0</total_memory_mb_usage>
    <total_hours>1.0</total_hours>
    <start>2012-10-08 21:10:51.902640</start>
    <stop>2012-10-08 22:10:51.902640</stop>
    <server_usages/>
  </tenant_usage>
</tenant_usages>

This operation does not return a response body.

Questions? Discuss on ask.openstack.org
Found an error? Report a bug against this page


loading table of contents...