metalcloud-cli vm-instance power-status

Get VM instance power status

Synopsis

Get VM instance power status.

This command retrieves the current power state of a VM instance, indicating whether it is running, stopped, starting, stopping, or in another power state. This is useful for monitoring and understanding the operational status of virtual machines.

ARGUMENTS: infrastructure_id The ID of the infrastructure containing the VM instance vm_instance_id The ID of the VM instance to check power status for

EXAMPLES:

Get power status of VM instance 67890 in infrastructure 12345

metalcloud-cli vm-instance power-status 12345 67890

Get power status using alias

metalcloud-cli vm power-status 12345 67890

metalcloud-cli vm-instance power-status infrastructure_id vm_instance_id [flags]

Options

  -h, --help   help for power-status

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

Auto generated by spf13/cobra on 11-Aug-2025