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")
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-09-04 UTC。"],[],[],null,["# gdcloud compute disks resize\n\nNAME\n----\n\ngdcloud compute disks resize - Resize virtual machine disks.\n\nSYNOPSIS\n--------\n\n gdcloud compute disks resize DISK_NAME [flags]\n\n### EXAMPLES\n\n To resize a disk, run:\n\n gdcloud compute disks resize example-disk \\\n --project example-project \\\n --size 20GB\n\n### OPTIONAL FLAGS\n\n --size string New size of the disk.\n The value must be a whole number followed by a size unit of GB for gigabyte, or TB for terabyte.\n For example, \"10GB\" will produce a 10 gigabyte disk.\n The disk size must be a multiple of 1 GB.\n --timeout string Maximum time a resize operation can last before it fails as timeout. Default value is \"5m\". Max value is \"2h\". (default \"5m\")\n\n### GDCLOUD WIDE FLAGS\n\nThese flags are available to all commands: `--configuration`, `--format`, `--help`, `--project`, `--quiet`.\n\nFor more information, see the [gdcloud CLI reference overview](/distributed-cloud/hosted/docs/latest/appliance/resources/gdcloud-reference/gdcloud) page."]]