2013-02-17 18:14:17 -05:00
|
|
|
module Fog
|
|
|
|
module Bluebox
|
|
|
|
class BLB
|
|
|
|
class Real
|
|
|
|
# Get list of load balancing services
|
|
|
|
#
|
|
|
|
# ==== Parameters
|
|
|
|
# * lb_application_id<~String> - Id of application services to list
|
|
|
|
#
|
|
|
|
# ==== Returns
|
|
|
|
# * response<~Excon::Response>:
|
|
|
|
# * body<~Array>:
|
2013-02-18 14:54:47 -05:00
|
|
|
# * backend<~Hash>:
|
|
|
|
# * name<~String> - service name
|
|
|
|
# * port<~Integer> - port of load balanced service
|
|
|
|
# * private<~Boolean> - whether service is only available internally
|
|
|
|
# * status_username<~String> - HTTP basic auth username
|
|
|
|
# * status_password<~String> - HTTP basic auth password
|
|
|
|
# * status_url<~String> - URL of stats page
|
|
|
|
# * service_type<~String> - proto being load balanced (e.g. 'http', 'tcp')
|
|
|
|
# * created<~DateTime> - when service was created
|
2013-02-17 18:14:17 -05:00
|
|
|
def get_lb_services(lb_application_id)
|
|
|
|
request(
|
|
|
|
:expects => 200,
|
|
|
|
:method => 'GET',
|
|
|
|
:path => "api/lb_applications/#{lb_application_id}/lb_services.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
|