Local Storage

AddLocalPrimaryStorage

Adds local storage as the primary storage. For example,
AddLocalPrimaryStorage url="/Cloud_ps_test" name=PS1 zoneUuid=61092e77aedd41f0b8857b40652e5b1e

Parameters

Name Description Optional Valid Value Starting Version
url The URL of the local storage. 0.6
name The name of the local storage. 0.6
description The detailed description of the local storage. Yes 0.6
type The primary storage type: LocalStorage. Yes 0.6
zoneUuid The zone UUID. 0.6
resourceUuid The resource UUID. Yes 0.6
userTags The user tags. For more information, see CreateUserTag. The resource type is PrimaryStorageVO. Yes 0.6
systemTags The system tags. For more information, see CreateSystemTag. The resource type is PrimaryStorageVO. Yes 0.6
timeout Yes

QueryLocalStorageResourceRef

Queries the resource reference of a local storage. For example,
QueryLocalStorageResourceRef primaryStorageUuid=037bd212f7a1488da4f94360ccfaf6ab
QueryLocalStorageResourceRef image.uuid=e5b9040e6395346d96de25a93a07f65f

Primitive Fields of Query

See Local Storage Inventory.

Nested and Expanded Fields of Query

Field Inventory Description Starting Version
image Image Inventory 0.6
snapshot Snapshot Inventory 0.6
volume Volume Inventory The volumes in the local storage. 0.6

LocalStorageMigrateVolume

Migrates the volumes that are stored on a local storage. For example,
LocalStorageMigrateVolume volumeUuid=30b1f7abb7884b80bbdacaf0fd1c7fe9
destHostUuid=5e0f90f7e44e471c96cf878f30301b42

Parameters

Name Description Optional Valid Value Starting Version
volumeUuid The volume UUID. 0.6
destHostUuid The UUID of the destination host. 0.6
userTags The user tags. For more information, see CreateUserTag. The resource type is PrimaryStorageVO. Yes 0.6
systemTags The system tags. For more information, see CreateSystemTag. The resource type is PrimaryStorageVO. Yes 0.6
timeout Yes

GetLocalStorageHostDiskCapacity

Obtains the local storage capacity of a host. For example,
GetLocalStorageHostDiskCapacity hostUuid=5e0f90f7e44e471c96cf878f30301b42
primaryStorageUuid=c52a6fa9968345f8a1c09da6cb62d966

Parameters

Name Description Optional Valid Value Starting Version
hostUuid The host UUID. Yes 0.6
primaryStorageUuid The primary storage UUID. 0.6
userTags The user tags. For more information, see CreateUserTag. The resource type is PrimaryStorageVO. Yes 0.6
systemTags The system tags. For more information, see CreateSystemTag. The resource type is PrimaryStorageVO. Yes 0.6
timeout Yes

LocalStorageGetVolumeMigratableHosts

Obtains the hosts that are available for migrating volumes stored on the local storage. For example,
LocalStorageGetVolumeMigratableHosts volumeUuid=30b1f7abb7884b80bbdacaf0fd1c7fe9

Parameters

Name Description Optional Valid Value Starting Version
volumeUuid The volume UUID. 0.6
userTags The user tags. For more information, see CreateUserTag. The resource type is PrimaryStorageVO. Yes 0.6
systemTags The system tags. For more information, see CreateSystemTag. The resource type is PrimaryStorageVO. Yes 0.6
timeout Yes
CLI Command Manual | 4.8.38 | ZStack Cloud · ZCF | ZStack Resource Center