CreateVmInstanceFromVolume

Creates a VM instance from a volume. For example,
CreateVmInstanceFromVolume name=vm instanceOfferingUuid=80c606e35bc038bbb102e31cae191ea2 l3NetworkUuids=333817afcaf63f13a101f674761c8a77 volumeUuid=23984cd68b903fd4883aa962c70d83fc

Parameters

Name Description Optional Valid Value Starting Version
name The resource name. For more information, see Resource Property. 3.10.0
description The resource description. For more information, see Resource Property. Yes 3.10.0
instanceOfferingUuid The instance offering UUID, which specifies the CPU, memory, and other parameters of a VM instance. Yes 3.10.0
cpuNum The CPU count. Yes 3.10.0
memorySize The memory size. Yes 3.10.0
l3NetworkUuids The L3 network UUID. 3.10.0
type The VM instance type. This parameter is a reserved field for internal use. Yes
  • UserVm
  • ApplianceVm
3.10.0
volumeUuid The volume UUID. 3.10.0
platform The system platform of the volume. Yes 3.10.0
zoneUuid The zone UUID. If specified, the VM instance will be created in the specified zone. This parameter can be overridden by clusterUuid and hostUuid. Yes 3.10.0
clusterUuid The cluster UUID. If specified, the VM instance will be created in the specified cluster. This parameter can be overridden by hostUuid. Yes 3.10.0
hostUuid The host UUID. If specified, the VM instance will be created on the specified host. Yes 3.10.0
primaryStorageUuid The primary storage UUID. If specified, the root volume of the VM instance will be created on the specified primary storage. Yes 3.10.0
defaultL3NetworkUuid The UUID of the default L3 network. If l3NetworkUuids contains the UUIDs of multiple L3 networks, this parameter is required to specify the default L3 network. If l3NetworkUuids has only one L3 network UUID, this parameter is optional. Yes 3.10.0
strategy The VM instance creation strategy. You can choose to start the VM instance immediately after creation or not to start it after creation. Yes 3.10.0
resourceUuid The resource UUID. Yes 3.10.0
tagUuids The tag UUID list. Yes 3.10.0
userTags The user tags. For more information, see CreateUserTag. Yes 3.10.0
systemTags The system tags. For more information, see CreateSystemTag. Yes 3.10.0
timeout Yes