2016-04-12 09:03:46 -04:00
|
|
|
.. -*- rst -*-
|
2016-04-20 16:10:51 -04:00
|
|
|
.. needs:parameter_verification
|
|
|
|
.. needs:example_verification
|
|
|
|
.. needs:body_verification
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
========================================
|
|
|
|
Usage reports (os-simple-tenant-usage)
|
|
|
|
========================================
|
|
|
|
|
|
|
|
Reports usage statistics on compute and storage resources.
|
|
|
|
|
|
|
|
List Tenant Usage For All Tenants
|
|
|
|
=================================
|
|
|
|
|
|
|
|
.. rest_method:: GET /v2.1/{tenant_id}/os-simple-tenant-usage
|
|
|
|
|
|
|
|
Lists usage information for all tenants.
|
|
|
|
|
|
|
|
Normal response codes: 200
|
|
|
|
|
2016-04-23 01:48:40 +08:00
|
|
|
Error response codes: badRequest(400), unauthorized(401), forbidden(403)
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Request
|
2016-04-14 13:10:59 -04:00
|
|
|
-------
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- tenant_id: tenant_id
|
|
|
|
|
|
|
|
Response
|
2016-04-14 13:10:59 -04:00
|
|
|
--------
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-04-19 17:52:18 +09:00
|
|
|
**Example List Tenant Usage For All Tenants: JSON response**
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-04-18 08:58:58 -04:00
|
|
|
.. literalinclude:: ../../doc/api_samples/os-simple-tenant-usage/simple-tenant-usage-get.json
|
2016-04-12 09:03:46 -04:00
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
Show Usage Details For Tenant
|
|
|
|
=============================
|
|
|
|
|
|
|
|
.. rest_method:: GET /v2.1/{tenant_id}/os-simple-tenant-usage/{tenant_id}
|
|
|
|
|
|
|
|
Shows usage details for a tenant.
|
|
|
|
|
|
|
|
Normal response codes: 200
|
|
|
|
|
2016-04-23 01:48:40 +08:00
|
|
|
Error response codes: badRequest(400), unauthorized(401), forbidden(403)
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Request
|
2016-04-14 13:10:59 -04:00
|
|
|
-------
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- tenant_id: tenant_id
|
|
|
|
|
|
|
|
Response
|
2016-04-14 13:10:59 -04:00
|
|
|
--------
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-04-19 17:52:18 +09:00
|
|
|
**Example Show Usage Details For Tenant: JSON response**
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-04-18 08:58:58 -04:00
|
|
|
.. literalinclude:: ../../doc/api_samples/os-simple-tenant-usage/simple-tenant-usage-get-specific.json
|
2016-04-12 09:03:46 -04:00
|
|
|
:language: javascript
|