CreateDataVolumeFromVolumeTemplate

Creates a volume from image. For example,
CreateDataVolumeFromVolumeTemplate name=new-volume imageUuid=bbe7c4538bfb420c84d417c8af0cfcc2 \
primaryStorageUuid=49304a747e2046618befdba8f64a5e47

Parameters

Name Description Optional Valid Value Starting Version
imageUuid The image UUID. 0.6
name The volume name. 0.6
description The detailed description of the volume. Yes 0.6
primaryStorageUuid The primary storage UUID. 0.6
hostUuid The host UUID. Yes 0.6
resourceUuid The resource UUID. Yes 0.6
userTags The user tags. For more information, see CreateUserTag. The resource type is VolumeVO. Yes 0.6
systemTags The system tags. For more information, see CreateSystemTag. The resource type is VolumeVO. Yes 0.6
timeout Yes
Note:
  • When you create a volume from an image in ZStack Cloud, you can create a shared volume by adding the shareable option to SystemTags. The SystemTag is passed by using the shareable parameter. Note that you will create a shared volume if you add this SystemTag. If you do not add this SystemTag, you will create a normal volume.