11.4.  Import Existing Storage Domain

The API provides a user with the ability to remove an ISO or Export storage domain from one Red Hat Enterprise Virtualization Manager instance without re-formatting the underlying storage and import it into another instance. Importing is achieved similarly to adding a new storage domain, except the name is not specified.

Example 11.10. Importing an existing export storage domain

POST /api/storagedomains HTTP/1.1
Accept: application/xml
Content-Type: application/xml

    <host id="2ab5e1da-b726-4274-bbf7-0a42b16a0fc3"/>

HTTP/1.1 201 Created
Content-Type: application/xml

<storage_domain id="fabe0451-701f-4235-8f7e-e20e458819ed"