8837801ba6
This brings in RST plus YAML files, migrated from the source for [0]. The migration explanation is found on the openstack-dev mailing list [1]. Project instruction is in the OpenStack Documentation Contributor Guide [2]. [0]https://github.com/openstack/api-site/tree/master/api-ref/source/telemetry/v2 [1]http://lists.openstack.org/pipermail/openstack-dev/2016-May/093765.html [2]http://docs.openstack.org/contributor-guide/api-guides.html Change-Id: I21d559f3abea502a0ed237d693ab24a5110d42c5
96 lines
1.3 KiB
ReStructuredText
Executable File
96 lines
1.3 KiB
ReStructuredText
Executable File
.. -*- rst -*-
|
|
|
|
=========
|
|
Resources
|
|
=========
|
|
|
|
Lists all and gets information for resources.
|
|
|
|
|
|
List resources
|
|
==============
|
|
|
|
.. rest_method:: GET /v2/resources
|
|
|
|
Lists definitions for all resources.
|
|
|
|
|
|
Normal response codes: 200
|
|
Error response codes:
|
|
|
|
|
|
Request
|
|
-------
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
- q: q
|
|
- meter_links: meter_links
|
|
|
|
|
|
Response Parameters
|
|
-------------------
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
- user_id: user_id
|
|
- links: links
|
|
- resource_id: resource_id
|
|
- source: source
|
|
- project_id: project_id
|
|
- metadata: metadata
|
|
|
|
|
|
|
|
Response Example
|
|
----------------
|
|
|
|
.. literalinclude:: ../samples/resources-list-response.json
|
|
:language: javascript
|
|
|
|
|
|
|
|
|
|
Show resource details
|
|
=====================
|
|
|
|
.. rest_method:: GET /v2/resources/{resource_id}
|
|
|
|
Shows details for a resource, by resource ID.
|
|
|
|
|
|
Normal response codes: 200
|
|
Error response codes:
|
|
|
|
|
|
Request
|
|
-------
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
- resource_id: resource_id
|
|
|
|
|
|
Response Parameters
|
|
-------------------
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
- user_id: user_id
|
|
- links: links
|
|
- resource_id: resource_id
|
|
- source: source
|
|
- project_id: project_id
|
|
- metadata: metadata
|
|
|
|
|
|
|
|
Response Example
|
|
----------------
|
|
|
|
.. literalinclude:: ../samples/resource-show-response.json
|
|
:language: javascript
|
|
|
|
|
|
|