X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=docs%2FMultiCloud-Deployment-Guide.rst;h=0160e1c58b33892e02b3d5259a17a3032da66b1f;hb=refs%2Fchanges%2F01%2F19001%2F1;hp=f3c26c485f26ad4dca1cc2d7e8819610708df8d1;hpb=d632f7f344723864bbfa44f3e17fbe021b4f5084;p=multicloud%2Fframework.git 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 in url path .. code-block:: console $ curl -X POST -d '{"reboot":{"type":"HARD"}}' -H 'X-Auth-Token: -H 'Content-Type:application/json' http://$HOST_IP/api/multicloud-vio/v0//nova//servers//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": ""}, + "import_from_format": "", + "import_from": ""}, + "type": "import"}' + -H 'X-Auth-Token:' -H 'Content-Type:application/json' http://$HOST_IP/api/multicloud-vio/v0//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:' http://$HOST_IP/api/multicloud-vio/v0//glance/v2/tasks/ + +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:' http://$HOST_IP/api/multicloud-vio/v0//glance/v2/images/ + + + + + + +