2.6.14 Importing Assemblies

The final example in this guide is designed to show how to import an assembly containing a configuration of one or more virtual machines along with their virtual disks and any inter-connectivity between them, to ease set up and creation of your virtual machines within Oracle VM Manager.

An assembly is imported into a repository and its import is handled by an action request on the repository. You can import an assembly into a repository by submitting a PUT request to the following URI:

https://hostname:port/ovm/core/wsapi/rest/Repository/id/importAssembly?url=url

Once the assembly has been imported into the repository, you can import a virtual machine from within the assembly into your environment by submitting a PUT request to the following URI:

https://hostname:port/ovm/core/wsapi/rest/Vm/createFromAssemblyVm/Assemblyid