Skip to content

Latest commit

 

History

History
46 lines (40 loc) · 2.68 KB

CreateLoadBalancerRequest.md

File metadata and controls

46 lines (40 loc) · 2.68 KB

VultrRuby::CreateLoadBalancerRequest

Properties

Name Type Description Notes
region String The Region id to create this Load Balancer.
balancing_algorithm String The balancing algorithm. * roundrobin (default) * leastconn [optional]
ssl_redirect Boolean If `true`, this will redirect all HTTP traffic to HTTPS. You must have an HTTPS rule and SSL certificate installed on the load balancer to enable this option. * true * false [optional]
http2 Boolean If `true`, this will enable HTTP2 traffic. You must have an HTTPS forwarding rule combo (HTTPS -> HTTPS) to enable this option. * true * false [optional]
nodes Integer The number of nodes to add to the load balancer (1-99), must be an odd number. This defaults to 1. [optional]
proxy_protocol Boolean If `true`, you must configure backend nodes to accept Proxy protocol. * true * false (Default) [optional]
health_check CreateLoadBalancerRequestHealthCheck [optional]
forwarding_rules Array<CreateLoadBalancerRequestForwardingRulesInner> An array of forwarding rule objects. [optional]
sticky_session CreateLoadBalancerRequestStickySession [optional]
ssl CreateLoadBalancerRequestSsl [optional]
label String Label for your Load Balancer. [optional]
instances Array<String> An array of instances IDs that you want attached to the load balancer. [optional]
firewall_rules Array<CreateLoadBalancerRequestFirewallRulesInner> An array of firewall rule objects. [optional]
private_network String Use `vpc` instead. ID of the private network you wish to use. If private_network is omitted it will default to the public network. [optional]
vpc String ID of the VPC you wish to use. If a VPC ID is omitted it will default to the public network. [optional]

Example

require 'vultr_ruby'

instance = VultrRuby::CreateLoadBalancerRequest.new(
  region: null,
  balancing_algorithm: null,
  ssl_redirect: null,
  http2: null,
  nodes: null,
  proxy_protocol: null,
  health_check: null,
  forwarding_rules: null,
  sticky_session: null,
  ssl: null,
  label: null,
  instances: null,
  firewall_rules: null,
  private_network: null,
  vpc: null
)