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:
parent
0db8a8e186
commit
cf73b435e6
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"name": "test_node",
|
||||||
|
"description": "node1",
|
||||||
|
"flavor_id": "90dd7dcd-166a-43c9-a6af-bcf3fbe67b66"
|
||||||
|
}
|
@ -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
|
||||||
--------
|
--------
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user