2013-02-17 18:14:17 -05:00
|
|
|
module Fog
|
|
|
|
module Bluebox
|
|
|
|
class BLB
|
|
|
|
class Real
|
2013-02-18 14:54:47 -05:00
|
|
|
# Get list of applications
|
2013-02-17 18:14:17 -05:00
|
|
|
#
|
|
|
|
# ==== Returns
|
|
|
|
# * response<~Excon::Response>:
|
|
|
|
# * body<~Array>:
|
2013-02-18 14:54:47 -05:00
|
|
|
# * 'application'<~Hash>:
|
|
|
|
# * 'id'<~String> - UUID of application
|
|
|
|
# * 'ip_v4'<~Array> - IPv4 addresses
|
|
|
|
# * 'ip_v6'<~String> - IPv6 address
|
|
|
|
# * 'name'<~String> - The hostname
|
|
|
|
# * 'lb_services'<~Array> - Listening services
|
|
|
|
# * 'source_ip_v4'<~String> - address that application connects to pool members from (v1 only)
|
2013-02-17 18:14:17 -05:00
|
|
|
def get_lb_applications
|
|
|
|
request(
|
|
|
|
:expects => 200,
|
|
|
|
:method => 'GET',
|
|
|
|
:path => 'api/lb_applications.json'
|
|
|
|
)
|
|
|
|
end
|
|
|
|
end
|
2013-02-18 14:54:47 -05:00
|
|
|
|
2013-02-17 18:14:17 -05:00
|
|
|
class Mock
|
|
|
|
end
|
2013-02-18 14:54:47 -05:00
|
|
|
|
2013-02-17 18:14:17 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|