Files
ubicloud/cli-commands/lb/post/attach-vm.rb
Jeremy Evans 9f4280f722 Use id instead of ubid in cli usage lines
ubid is an internal concept that users will not be familiar with.
When the cli lists/shows objects, it uses the ubid when displaying
the id, so users already understand that is the id, they never see
the actual uuid.  This should make the usage lines a bit more
understandable.
2025-02-21 15:27:03 -08:00

14 lines
316 B
Ruby

# frozen_string_literal: true
UbiCli.on("lb").run_on("attach-vm") do
options("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