.. function:: POST /users/{uid}/scannedinstances/{siid}/scans/{sid}/imports
Summary
- Method:
POST
- Response Code:
201
- Response Formats:
application/xml
application/json
- Since:
UForge 3.4
Request to import a scan report to your Appliance Library
, creating a new appliance
.
This response body is an scan import ticket
that provides the meta-data of the appliance to be created from the scan report. The actual import is done asynchronously. To poll the status of this import, use :ref:`scanImportToTemplateStatus-get`.
To cancel an import use :ref:`scanImportToTemplate-cancel`
- Requires Authentication:
true
- Entitlements Required:
migration_access
uid
(required): the user name (login name) of the :ref:`user-object`siid
(required): the id of the :ref:`scannedinstance-object`sid
(required): the id of the :ref:`scan-object`
A :ref:`scanImport-object` object
curl "https://uforge.example.com/api/users/{uid}/scannedinstances/{siid}/scans/{sid}/imports" -X POST \
-u USER_LOGIN:PASSWORD -H "Accept: application/xml"-H "Content-type: application/xml" --data-binary "@representation.xml"
Example of representation.xml content (the request body):
<ns0:scanImport xmlns:ns0="http://www.usharesoft.com/uforge">
<importedObjectName>Import Example</importedObjectName>
<importedObjectVersion>1.0</importedObjectVersion>
<orgUri>orgs/1</orgUri>
</ns0:scanImport>
.. seealso:: * :ref:`appliance-object` * :ref:`machinescan-api-resources` * :ref:`machinescaninstance-api-resources` * :ref:`scan-object` * :ref:`scanImportToTemplateStatus-get` * :ref:`scanImportToTemplate-cancel` * :ref:`scanImportToTemplate-delete` * :ref:`scanImportToTemplate-getAll` * :ref:`scanimport-object` * :ref:`scannedinstance-object`