metalcloud-cli vm-type vms¶
List all VMs using a specific VM type
Synopsis¶
List all virtual machines that are currently using a specific VM type.
This command helps you understand which VMs are dependent on a particular VM type, which is useful before making changes or deleting the VM type.
ARGUMENTS: vm_type_id The numeric ID of the VM type to check
OPTIONAL FLAGS: –limit string Number of records per page (optional) –page string Page number to retrieve (optional, requires –limit)
EXAMPLES:
List all VMs using VM type 123¶
metalcloud vm-type vms 123
List VMs with pagination (10 per page, page 1)¶
metalcloud vm-type vms 123 –limit 10 –page 1
Check VM usage before deletion¶
metalcloud vm-type vms 123 metalcloud vm-type delete 123
metalcloud-cli vm-type vms vm_type_id [flags]
Options¶
-h, --help help for vms
--limit string Number of records per page
--page string Page number
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¶
metalcloud-cli vm-type - Manage VM types and configurations