distil/api-ref/source/products.inc
Fei Long Wang 7a606bbb87 Add API ref
To get a better API spec, this patch is following the OpenStack
community way to describe API ref. Only /products endpoint is
included, costs and usage endpoint will be added in following
patches.

Implement blueprint: api-ref

Change-Id: Icaa121c4257fcc27df93e63ec8c2bb095ac41c43
2017-09-15 14:37:13 +12:00

34 lines
606 B
HTML

===================
Products (products)
===================
Product is the resource cloud provider can charge the tenant users.
List products
=============
.. rest_method:: GET /v2/products
Lists products.
This operation lists products and the price, unit information of each product.
Normal response codes: 200
Error response codes:
- BadRequest (400)
- ServiceUnavailable (503)
Request Parameters
------------------
.. rest_parameters:: parameters.yaml
- regions: regions
Response Example
----------------
.. literalinclude:: samples/get-products-response.json
:language: javascript