28f8bd4a73
The quote API method has been broken for a while now. This patch fixes
the API and makes it work again. To use it, one can issue the following
command.
curl -s -X POST "http://cloudkitty_server_and_port/v1/rating/quote" -H "Accept: application/json" -H "User-Agent: python-keystoneclient" -H "Content-Type: application/json" -H "X-Auth-Token: ${ACCESS_TOKEN_KEYSTONE}" -d '{"resources": [{"service": "<cloudkitty_service_name>", "volume": "<quantity_to_quote>", "desc": {"metadata": {"<field_name_used_to_define_price>": "<value_to_activate_a_price>"}}}]}'
Change-Id: Ia6ef6543a5100445b203196d39b404bc74b75ba0
Story: 2009022
Task: 42744
(cherry picked from commit
|
||
---|---|---|
.. | ||
__init__.py | ||
collector.py | ||
info.py | ||
rating.py | ||
report.py | ||
storage.py |