Add HTTP request example for node composition via flavor

Current valence support two ways to specify required hardware
resource.
* Specify every details in "properties" attribution
* Specify node flavor via "flavor_id"

Added example to show how to compose through flavor.

Change-Id: Ieab02fe2f2a46fa8cd28285fb88bc5fba8e5b6ff
Closes-Bug: #1677080
This commit is contained in:
Lin Yang 2017-03-28 18:19:35 -07:00
parent 0db8a8e186
commit cf73b435e6
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,5 @@
{
"name": "test_node",
"description": "node1",
"flavor_id": "90dd7dcd-166a-43c9-a6af-bcf3fbe67b66"
}

View File

@ -37,6 +37,11 @@ Request
.. literalinclude:: mockup/composed-node-create-request.json .. literalinclude:: mockup/composed-node-create-request.json
:language: javascript :language: javascript
**Example Node creation via flavor request:**
.. literalinclude:: mockup/composed-node-create-via-flavor-request.json
:language: javascript
Response Response
-------- --------