停止虛擬機器執行個體。停止 VM 執行個體會執行乾淨的關機程序,就像叫用工作站或筆記型電腦的關機功能一樣。停止已停止的 VM 執行個體時,系統會傳回結果,但不會發生錯誤。
範例
To stop an instance named "example-instance" in project "example-project", run:
gdcloud compute instances stop example-instance --project example-project
[[["容易理解","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 (世界標準時間)。"],[[["\u003cp\u003eThis command stops a specified virtual machine instance.\u003c/p\u003e\n"],["\u003cp\u003eStopping an instance performs a clean shutdown of the VM.\u003c/p\u003e\n"],["\u003cp\u003eThe command will not return errors if the VM is already stopped.\u003c/p\u003e\n"],["\u003cp\u003eYou must specify the instance name, and optionally the project ID.\u003c/p\u003e\n"]]],[],null,["# gdcloud compute instances stop\n\nNAME\n----\n\ngdcloud compute instances stop - Stop a virtual machine instance.\n\nSYNOPSIS\n--------\n\n gdcloud compute instances stop INSTANCE_NAME [flags]\n\nDESCRIPTION\n-----------\n\nStop a virtual machine instance. Stopping a VM instance performs a clean shutdown, much like invoking the shutdown functionality of a workstation or laptop. Stopping a VM instance which is already stopped will return without errors.\n\n### EXAMPLES\n\n To stop an instance named \"example-instance\" in project \"example-project\", run:\n\n gdcloud compute instances stop example-instance --project example-project\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."]]