zstackio / doc-ch

ZStack Chinese user manual
Apache License 2.0
12 stars 21 forks source link

[0.6][Vm]org.zstack.header.vm.APICreateVmInstanceMsg #71

Closed xuexuemiao closed 7 years ago

xuexuemiao commented 7 years ago

描述

创建云主机(CreateVmInstance) 用户可以用CreateVmInstance来创建一台云主机

API

org.zstack.header.vm.APICreateVmInstanceMsg

举例(Example)

管理员可以使用CreateVmInstance来创建一个云主机. 例如:

CreateVmInstance name=testvm imageUuid=c56c58d5a5954bcf89d574b29deac3be instanceOfferingUuid=fc676d3efa624afe9c0ba0e100ec7bb2 l3NetworkUuids=7c58161234074fe99d2094952fe63b6e

参数(Parameters)

名字 描述 可选的参数 起始支持版本
name 云主机名称 0.6
imageUuid 创建云主机所用镜像uuid 0.6
instanceOfferingUuid 创建云主机所用规格uuid 0.6
l3NetworkUuids 创建云主机所用3层网络uuid列表 0.6
clusterUuid 集群uuid,如果非null,云主机将在所指定的集群上创建;hostUuid优先于本参数设置 0.6
dataDiskOfferingUuids 数据盘规格uuid 0.6
rootDiskOfferingUuid 数据盘规格uuid 0.6
description 资源的描述 0.6
hostUuid 如果非null,云主机将在所指定的物理机上创建 0.6
defaultL3NetworkUuid 如果l3NetworkUuids包含了多余一个的L3网络的UUID,这个参数指定哪个L3网络是默认的 0.6
resourceUuid 指定资源的uuid 0.6
strategy InstantStart or JustCreate 0.x
systemTags 0.x
type 保留的域,默认为UserVm 0.6
userTags
zoneUuid 如果非null, 云主机将在所指定的区域上创建; clusterUuid和hostUuid优先于这个参数的设置 0.6
rootPassword 创建云主机时可同时设置root password 1.8
primaryStorageUuidForRootVolume 创建云主机时可设置根云盘所使用的主存储 1.8

备注

xuexuemiao commented 7 years ago

Duplicated with https://github.com/zstackorg/doc-ch/issues/67