Files
ubicloud/cli-commands/lb/post/attach-vm.rb
Jeremy Evans 9fc326c965 Minor CLI help improvements
* Spaces around `|` between name and id.

* `Get program help` -> `Get command help`

* `private-subnet-id` -> `ps-id`
2025-03-13 09:20:15 -07:00

16 lines
369 B
Ruby

# frozen_string_literal: true
UbiCli.on("lb").run_on("attach-vm") do
desc "Attach a virtual machine to a load balancer"
banner "ubi lb (location/lb-name | lb-id) attach-vm vm-id"
args 1
run do |vm_id|
post(lb_path("/attach-vm"), "vm_id" => vm_id) do |data|
["Attached VM with id #{vm_id} to load balancer with id #{data["id"]}"]
end
end
end