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.
14 lines
320 B
Ruby
14 lines
320 B
Ruby
# frozen_string_literal: true
|
|
|
|
UbiCli.on("ps").run_on("connect") do
|
|
options("ubi ps location/(ps-name|_ps-id) connect ps-id")
|
|
|
|
args 1
|
|
|
|
run do |ps_id|
|
|
post(ps_path("/connect"), "connected-subnet-ubid" => ps_id) do |data|
|
|
["Connected private subnets with ids #{ps_id} and #{data["id"]}"]
|
|
end
|
|
end
|
|
end
|