Module: Lunanode::APIActions::LB

Included in:
Lunanode::APIActions
Defined in:
lib/lunanode/api_actions/lb.rb,
lib/lunanode/api_actions/default/lb.rb

Instance Method Summary collapse

Instance Method Details

#lb_associate(region:, lb_id:, ip:) ⇒ Object


30
31
32
# File 'lib/lunanode/api_actions/default/lb.rb', line 30

def lb_associate(region:, lb_id:, ip:)
  action(:lb, :associate, region: region, lb_id: lb_id, ip: ip)
end

#lb_create(region:, net_id:, name:, method:, protocol:, connection_limit:, port:) ⇒ Object


10
11
12
# File 'lib/lunanode/api_actions/default/lb.rb', line 10

def lb_create(region:, net_id:, name:, method:, protocol:, connection_limit:, port:)
  action(:lb, :create, region: region, net_id: net_id, name: name, method: method, protocol: protocol, connection_limit: connection_limit, port: port)
end

#lb_delete(region:, lb_id:) ⇒ Object


14
15
16
# File 'lib/lunanode/api_actions/default/lb.rb', line 14

def lb_delete(region:, lb_id:)
  action(:lb, :delete, region: region, lb_id: lb_id)
end

#lb_info(region:, lb_id:) ⇒ Object


18
19
20
# File 'lib/lunanode/api_actions/default/lb.rb', line 18

def lb_info(region:, lb_id:)
  action(:lb, :info, region: region, lb_id: lb_id)
end

#lb_list(region:, net_id: nil) ⇒ Object


6
7
8
# File 'lib/lunanode/api_actions/default/lb.rb', line 6

def lb_list(region:, net_id: nil)
  action(:lb, :list, region: region, net_id: net_id)
end

#lb_member_add(region:, lb_id:, ip:, port:) ⇒ Object


22
23
24
# File 'lib/lunanode/api_actions/default/lb.rb', line 22

def lb_member_add(region:, lb_id:, ip:, port:)
  action(:lb, :member_add, region: region, lb_id: lb_id, ip: ip, port: port)
end

#lb_member_remove(region:, lb_id:, member_id:) ⇒ Object


26
27
28
# File 'lib/lunanode/api_actions/default/lb.rb', line 26

def lb_member_remove(region:, lb_id:, member_id:)
  action(:lb, :member_remove, region: region, lb_id: lb_id, member_id: member_id)
end