Files
ubicloud/spec/routes/api/cli/golden-files/vm vmdzyppz6j166jh5e9t2dwrfasa show.txt
Jeremy Evans f5dae4f79f Use more accurate error for object reference containing ubid
Previously, it would treat an argument containing a ubid as a ubid,
even if it had more than 26 characters.

Add a test that checks that a string longer than 26 characters that
contains a string in ubid format is not treated as a ubid.

Without this change, you would get a "no * with id * exists" error.
With this change, you get a "invalid * reference (*), should be in
location/*-name or *-id format" error.
2025-08-21 12:41:25 -07:00

25 lines
833 B
Plaintext

! Invalid vm reference ("vmdzyppz6j166jh5e9t2dwrfasa"), should be in location/vm-name or vm-id format
Manage virtual machines
Usage:
ubi vm command [...]
ubi vm (location/vm-name | vm-id) [post-options] post-command [...]
Commands:
list List virtual machines
Post Commands:
create Create a virtual machine
destroy Destroy a virtual machine
restart Restart a virtual machine
scp Copy files to or from virtual machine using `scp`
sftp Copy files to or from virtual machine using `sftp`
show Show details for a virtual machine
ssh Connect to a virtual machine using `ssh`
Post Options:
-4, --ip4 use IPv4 address
-6, --ip6 use IPv6 address
-u, --user user override username