metalcloud-cli vm-instance shutdown
Shutdown a VM instance
Synopsis
Section titled “Synopsis”Shutdown a VM instance gracefully.
This command initiates a graceful shutdown process for a running VM instance. The instance will receive a shutdown signal and will attempt to properly terminate all running processes before powering off. This is the recommended way to stop a VM instance to prevent data loss.
ARGUMENTS: infrastructure_id The ID of the infrastructure containing the VM instance vm_instance_id The ID of the VM instance to shutdown
EXAMPLES:
Shutdown VM instance 67890 in infrastructure 12345
Section titled “Shutdown VM instance 67890 in infrastructure 12345”metalcloud-cli vm-instance shutdown 12345 67890
Shutdown instance using alias
Section titled “Shutdown instance using alias”metalcloud-cli vm shutdown 12345 67890
metalcloud-cli vm-instance shutdown infrastructure_id vm_instance_id [flags]Options
Section titled “Options” -h, --help help for shutdownOptions inherited from parent commands
Section titled “Options inherited from parent commands” -k, --api_key string MetalCloud API key -c, --config string Config file path -d, --debug Set to enable debug logging -e, --endpoint string MetalCloud API endpoint -f, --format string Output format. Supported values are 'text','csv','md','json','yaml'. (default "text") -i, --insecure_skip_verify Set to allow insecure transport -l, --log_file string Log file path -v, --verbosity string Log level verbosity (default "INFO")SEE ALSO
Section titled “SEE ALSO”- metalcloud-cli vm-instance - Manage individual VM instances within infrastructures