When you upload the machine image from the web console, an image list is automatically created using the name that you specified for the image. The new machine image becomes the default (and only) entry in the image list.
Ensure that the .tar.gz
file is available on the local disk or software library of the Enterprise Manager UI.
Uploading a private template using the CLI requires you to add the machine image, create an image list, and add an image list entry.
Use the following commands to upload a private template:
Add a machine image.
oracle-compute add machineimage name file [--attributes] [--quota]
Add an image list.
oracle-compute add imagelist name description [--default]
Add an image list entry.
oracle-compute add imagelistentry imagelist name machineimages version [--attributes]
For more information, see CLI Reference for Oracle Compute Cloud Service.
The following table lists the API method for uploading a template.
Action | Method and URI |
---|---|
Add a machine image by creating and uploading a machine image |
|
Add an image list | POST https://api.oc.example.com/imagelist/ |
Add an image list entry | POST https://api.oc.example.com/imagelist/name/entry/ |
For more information, see REST API Reference for Oracle Compute Cloud Service.