Skip to content

Latest commit

 

History

History
68 lines (47 loc) · 1.98 KB

machineImage_downloadFile.rst

File metadata and controls

68 lines (47 loc) · 1.98 KB

machineImage_downloadFile

.. function:: GET /users/{uid}/appliances/{aid}/images/{itid}/downloads/{fileName}

Summary

  • Method: GET
  • Response Code: 200 / 304
  • Response Formats: */*
  • Since: UForge 1.0

Downloads a generated machine image.

This request is the same as :ref:`machineImage-download`

Note

You can only download a generated machine image if the initial generation request included the compress flag. For more information, see :ref:`machineImage-generate`.

The machine image can be downloaded without authentication if an downloadId is added as a query parameter. To retrieve the downloadId, use :ref:`machineImage-get`.

Note

The downloadId can only be used once, afterwards it expires, and a new downloadId must be retrieved.

Security Summary

  • Requires Authentication: false
  • Entitlements Required: None

URI Parameters

HTTP Request Body Parameters

None

Example Request

curl "https://uforge.example.com/api/users/{uid}/appliances/{aid}/images/{itid}/downloads/{fileName}" -X GET \
-u USER_LOGIN:PASSWORD -H "Accept: application/xml"
.. seealso::

         * :ref:`appliance-object`
         * :ref:`image-object`
         * :ref:`imagepkgs-object`
         * :ref:`machineImageGeneration-cancel`
         * :ref:`machineImageStatus-get`
         * :ref:`machineImageStatus-getAll`
         * :ref:`machineImage-delete`
         * :ref:`machineImage-deleteAll`
         * :ref:`machineImage-download`
         * :ref:`machineImage-generate`
         * :ref:`machineImage-get`
         * :ref:`machineImage-getAll`
         * :ref:`machineImage-regenerate`