gdcloud compute disks resize

名称

gdcloud compute disks resize - 调整虚拟机磁盘的大小。

摘要

gdcloud compute disks resize DISK_NAME [flags]

示例

To resize a disk, run:

    gdcloud compute disks resize example-disk \
      --project example-project \
      --size 20GB

可选标志

      --size string      New size of the disk.
                             The value must be a whole number followed by a size unit of GB for gigabyte, or TB for terabyte.
                             For example, "10GB" will produce a 10 gigabyte disk.
                             The disk size must be a multiple of 1 GB.
      --timeout string   Maximum time a resize operation can last before it fails as timeout. Default value is "5m". Max value is "2h". (default "5m")

GDCLOUD 全局标志

以下标志适用于所有命令:--configuration--format--help--project--quiet

如需了解详情,请参阅 gdcloud CLI 参考概览页面。