Documentation Fix for Region Create

Currently the region create command doesn't work because of
Cloud_id change. This patch fixes this since in order to create
a region, we first need a cloud id to associate with.

Change-Id: I6aaef86cb1960b3fee77c48d0c53754177d3b9cf
This commit is contained in:
Syed Ahsan Shamim Zaidi 2017-03-02 20:02:41 +00:00
parent 39683822da
commit 7318f067ad
1 changed files with 10 additions and 1 deletions

View File

@ -190,10 +190,19 @@ Create a Region
# export MY_IP=xxx.xxx.xxx.xxx
* Next create a cloud to which the region is associated to::
# curl -i "http://${MY_IP}:7780/v1/clouds" \
-d '{"name": "Cloud_Sample"}' \
-H "Content-Type: application/json" \
-H "X-Auth-Token: demo" \
-H "X-Auth-User: demo" \
-H "X-Auth-Project: 717e9a216e2d44e0bc848398563bda06"
* To create region, execute the following command::
# curl -i "http://${MY_IP}:7780/v1/regions" \
-d '{"name": "DFW", "project_id": "717e9a216e2d44e0bc848398563bda06"}' \
-d '{"name": "DFW", "project_id": "717e9a216e2d44e0bc848398563bda06", "cloud_id": 1}' \
-H "Content-Type: application/json" \
-H "X-Auth-Token: demo" \
-H "X-Auth-User: demo" \