AddImage

Adds an image. For example,
AddImage name=testimage url=http://192.168.200.100/mirror/diskimages/CentOS6-test-image-4G.qcow2 \
system=false format=qcow2 platform=Linux backupStorageUuids=ab3d53288bd14e6eba6ea56324b66a3f \
mediaType=RootVolumeTemplate

Parameters

Name Description Optional Valid Value Starting Version
name The image name. 0.6
description The detailed description of the image. Yes 0.6
url The URL of the image to be added. 0.6
mediaType The image type. Yes
  • RootVolumeTemplate
  • ISO
  • DataVolumeTemplate
0.6
guestOsType The operating system type of the guest VM instance that corresponds to the image. Yes 0.6
system Whether the image is a system image. Yes 0.6
format The image format.
  • raw
  • qcow2
  • iso
0.6
platform The operating system platform of the image. Yes
  • Linux
  • Windows
  • Windows Virtio
  • Other
  • Paravirtualization
0.6
backupStorageUuids The UUID list of the backup storages on which the image is to be added. 0.6
type The reserved field for internal use. Yes 0.6
resourceUuid The resource UUID. If specified, the image will use the specified value as UUID. Yes 0.6
tagUuids The tag UUIDs. 4.0.0
architecture Yes
  • x86_64
  • aarch64
  • mips64el
4.0.0
userTags The user tags. For more information, see CreateUserTag. The resource type is ImageVO. Yes 0.6
systemTags The system tags. For more information, see CreateSystemTag. The resource type is ImageVO. 0.6
timeout Yes