We can specify zone id when calling create-volume-from-snapshot in QingCloud CLI. The zone parameter is useful in region.
# qingcloud iaas create-volume-from-snapshot -h
usage: qingcloud iaas create-volume-from-snapshot -s "snapshot_id" -n <name> [-f <conf_file>]
Create volume from snapshot.
optional arguments:
-h, --help show this help message and exit
-z ZONE, --zone ZONE the ID of zone you want to access, this will override
zone ID in config file.
-f CONF_FILE, --config CONF_FILE
config file of your access keys
-s SNAPSHOT, --snapshot SNAPSHOT
the ID of snapshot you want to create volume from it.
-N VOLUME_NAME, --volume-name VOLUME_NAME
the name of new volume.
We can specify zone id when calling
create-volume-from-snapshot
in QingCloud CLI. The zone parameter is useful in region.Would you please add zone in CreateVolumeFromSnapshotInput and CreateVolumeInput? https://github.com/yunify/qingcloud-sdk-go/blob/ac222d4999629785bf5ca28344fadd65d9d5efb3/service/snapshot.go#L251-L254