18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# File 'lib/bbgapi/lb_applications.rb', line 18
def self.list
partial = '/api/lb_applications'
api_response = BBGAPI::Client.geturl(partial,"")
apps = []
api_response.each {|x|
apps << {"name" => "#{x["name"]}","id" => "#{x["id"]}"}
puts "\n"
puts "Name: #{x["name"]}"
puts "ID: #{x["id"]}"
puts "Description: #{x["description"]}"
puts "External IP: #{x["ip_v4"]}"
puts "Internal IP: #{x["source_ip_v4"]}"
puts "Created: #{x["created"]}"
}
puts "\n"
end
|