添加镜像(AddImage)

管理员可以使用AddImage添加镜像。例如:
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 镜像名称 0.6
description 镜像的详细描述 0.6
url 被添加镜像的URL地址 0.6
mediaType 镜像的类型
  • RootVolumeTemplate
  • ISO
  • DataVolumeTemplate
0.6
guestOsType 镜像对应客户机操作系统的类型 0.6
system 是否系统镜像 0.6
format 镜像的格式
  • raw
  • qcow2
  • iso
0.6
platform 镜像的系统平台
  • Linux
  • Windows
  • Windows Virtio
  • Other
  • Paravirtualization
0.6
backupStorageUuids 指定添加镜像的镜像服务器uuid列表 0.6
type 内部使用字段 0.6
resourceUuid 资源uuid。若指定,镜像会使用该字段值作为uuid 0.6
userTags 用户标签,请参见 创建用户标签(CreateUserTag);资源类型是 ImageVO 0.6
systemTags 系统标签,请参见 创建系统标签(CreateSystemTag); 资源类型是 ImageVO 0.6
timeout