Sha256: af8e9bff1e5469b6e2a2d3f75b14bb5dcd5ab22a31c9c7f9079c4a6c1e44cda3
Contents?: true
Size: 970 Bytes
Versions: 100
Compression:
Stored size: 970 Bytes
Contents
module Fog module Bluebox class BLB class Real # change machine attributes (port &c) in a single backend # # === Parameters # * lb_backend_id<~String> - ID of backend # * lb_machine_id<~String> - ID of machine # * options<~Hash>: # * port<~Integer> - port machine listens on # * maxconn<~Integer> - maximum number of connections server can be sent # * backup<~Boolean> - only send traffic to machine if all others are down def update_lb_backend_machine(lb_backend_id, lb_machine_id, options = {}) # inconsistent, no? request( :expects => 202, :method => 'PUT', :path => "/api/lb_backends/#{lb_backend_id}/lb_machines/#{lb_machine_id}", :body => options.map {|k,v| "#{CGI.escape(k)}=#{CGI.escape(v.to_s)}"}.join('&') ) end end class Mock end end end end
Version data entries
100 entries across 98 versions & 10 rubygems