summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorxinhuili <lxinhui@vmware.com>2017-10-17 06:53:55 +0000
committerGerrit Code Review <gerrit@onap.org>2017-10-17 06:53:55 +0000
commit4a45e6eede206262a1f42e1c7157834eb2725a5d (patch)
treea287631a03dec1d7cb51d53675fbec8155d0d33c /docs
parent78b4b4243bec8c0cce6b398915c149967031ddfe (diff)
parent6b0e4fdb6b3c47f5995729deb9ba41b0bd3e3064 (diff)
Merge "Add uploading image guide"
Diffstat (limited to 'docs')
-rw-r--r--docs/MultiCloud-Deployment-Guide.rst34
1 files changed, 34 insertions, 0 deletions
diff --git a/docs/MultiCloud-Deployment-Guide.rst b/docs/MultiCloud-Deployment-Guide.rst
index f3c26c4..0160e1c 100644
--- a/docs/MultiCloud-Deployment-Guide.rst
+++ b/docs/MultiCloud-Deployment-Guide.rst
@@ -317,3 +317,37 @@ you need to input <server-id> in url path
.. code-block:: console
$ curl -X POST -d '{"reboot":{"type":"HARD"}}' -H 'X-Auth-Token:<token> -H 'Content-Type:application/json' http://$HOST_IP/api/multicloud-vio/v0/<vimid>/nova/<tenantid>/servers/<server-id>/action
+
+
+Upload Image Task
+-----------------
+
+create uploading image task by image url:
+
+.. code-block:: console
+ $ curl -X POST -d '{"input": {"image_properties":
+ {"container_format": "bare", "name": "<image_name>"},
+ "import_from_format": "<disk_format>",
+ "import_from": "<image_url>"},
+ "type": "import"}'
+ -H 'X-Auth-Token:<token>' -H 'Content-Type:application/json' http://$HOST_IP/api/multicloud-vio/v0/<vimid>/glance/v2/tasks
+
+get the taskid from response body,then query the task status by taskid.
+
+.. code-block:: console
+ $ curl -X GET -H 'X-Auth-Token:<token>' http://$HOST_IP/api/multicloud-vio/v0/<vimid>/glance/v2/tasks/<taskid>
+
+You can see the description and properties of task in response body,if 'status' is success, it will show image_id in
+result block.
+
+query the image status by image_id
+
+.. code-block:: console
+ $ curl -X GET -H 'X-Auth-Token:<token>' http://$HOST_IP/api/multicloud-vio/v0/<vimid>/glance/v2/images/<image_id>
+
+
+
+
+
+
+