Class: Ansible::Ruby::Modules::Oneandone_load_balancer
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Oneandone_load_balancer
- Defined in:
- lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_load_balancer.rb
Overview
Create, remove, update load balancers. This module has a dependency on 1and1 >= 1.0
Instance Method Summary collapse
-
#add_rules ⇒ Array<Hash>, ...
A list of rules that will be added to an existing load balancer.
-
#add_server_ips ⇒ Array<String>, ...
A list of server identifiers (id or name) to be assigned to a load balancer.
-
#api_url ⇒ Object?
Custom API URL.
-
#auth_token ⇒ String
Authenticating API token provided by 1&1.
-
#datacenter ⇒ :US, ...
ID or country code of the datacenter where the load balancer will be created.
-
#description ⇒ String?
Description of the load balancer.
-
#health_check_interval ⇒ Integer
Health check period in seconds.
-
#health_check_parse ⇒ Object?
Regular expression to check.
-
#health_check_path ⇒ Object?
Url to call for cheking.
-
#health_check_test ⇒ :NONE, ...
Type of the health check.
-
#load_balancer ⇒ String
The identifier (id or name) of the load balancer used with update state.
-
#method ⇒ :ROUND_ROBIN, :LEAST_CONNECTIONS
Balancing procedure.
-
#name ⇒ String
Load balancer name used with present state.
-
#persistence ⇒ Boolean
Persistence.
-
#persistence_time ⇒ Integer
Persistence time in seconds.
-
#remove_rules ⇒ Array<String>, ...
A list of rule ids that will be removed from an existing load balancer.
-
#remove_server_ips ⇒ Array<String>, ...
A list of server IP ids to be unassigned from a load balancer.
-
#rules ⇒ Array<Hash>, Hash
A list of rule objects that will be set for the load balancer.
-
#state ⇒ :present, ...
Define a load balancer state to create, remove, or update.
-
#wait ⇒ :yes, ...
Wait for the instance to be in state ‘running’ before returning.
-
#wait_interval ⇒ Integer?
Defines the number of seconds to wait when using the _wait_for methods.
-
#wait_timeout ⇒ Integer?
How long before wait gives up, in seconds.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#add_rules ⇒ Array<Hash>, ...
Returns A list of rules that will be added to an existing load balancer. It is syntax is the same as the one used for rules parameter. Used in combination with update state.
77 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_load_balancer.rb', line 77 attribute :add_rules |
#add_server_ips ⇒ Array<String>, ...
Returns A list of server identifiers (id or name) to be assigned to a load balancer. Used in combination with update state.
69 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_load_balancer.rb', line 69 attribute :add_server_ips |
#api_url ⇒ Object?
Returns Custom API URL. Overrides the ONEANDONE_API_URL environement variable.
24 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_load_balancer.rb', line 24 attribute :api_url |
#auth_token ⇒ String
Returns Authenticating API token provided by 1&1.
16 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_load_balancer.rb', line 16 attribute :auth_token |
#datacenter ⇒ :US, ...
Returns ID or country code of the datacenter where the load balancer will be created.
57 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_load_balancer.rb', line 57 attribute :datacenter |
#description ⇒ String?
Returns Description of the load balancer. maxLength=256.
65 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_load_balancer.rb', line 65 attribute :description |
#health_check_interval ⇒ Integer
Returns Health check period in seconds. minimum=5, maximum=300, multipleOf=1.
35 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_load_balancer.rb', line 35 attribute :health_check_interval |
#health_check_parse ⇒ Object?
Returns Regular expression to check. Required for HTTP health check. maxLength=64.
42 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_load_balancer.rb', line 42 attribute :health_check_parse |
#health_check_path ⇒ Object?
Returns Url to call for cheking. Required for HTTP health check. maxLength=1000.
39 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_load_balancer.rb', line 39 attribute :health_check_path |
#health_check_test ⇒ :NONE, ...
Returns Type of the health check. At the moment, HTTP is not allowed.
31 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_load_balancer.rb', line 31 attribute :health_check_test |
#load_balancer ⇒ String
Returns The identifier (id or name) of the load balancer used with update state.
20 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_load_balancer.rb', line 20 attribute :load_balancer |
#method ⇒ :ROUND_ROBIN, :LEAST_CONNECTIONS
Returns Balancing procedure.
53 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_load_balancer.rb', line 53 attribute :method |
#name ⇒ String
Returns Load balancer name used with present state. Used as identifier (id or name) when used with absent state. maxLength=128.
27 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_load_balancer.rb', line 27 attribute :name |
#persistence ⇒ Boolean
Returns Persistence.
45 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_load_balancer.rb', line 45 attribute :persistence |
#persistence_time ⇒ Integer
Returns Persistence time in seconds. Required if persistence is enabled. minimum=30, maximum=1200, multipleOf=1.
49 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_load_balancer.rb', line 49 attribute :persistence_time |
#remove_rules ⇒ Array<String>, ...
Returns A list of rule ids that will be removed from an existing load balancer. Used in combination with update state.
81 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_load_balancer.rb', line 81 attribute :remove_rules |
#remove_server_ips ⇒ Array<String>, ...
Returns A list of server IP ids to be unassigned from a load balancer. Used in combination with update state.
73 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_load_balancer.rb', line 73 attribute :remove_server_ips |
#rules ⇒ Array<Hash>, Hash
Returns A list of rule objects that will be set for the load balancer. Each rule must contain protocol, port_balancer, and port_server parameters, in addition to source parameter, which is optional.
61 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_load_balancer.rb', line 61 attribute :rules |
#state ⇒ :present, ...
Returns Define a load balancer state to create, remove, or update.
12 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_load_balancer.rb', line 12 attribute :state |
#wait ⇒ :yes, ...
Returns wait for the instance to be in state ‘running’ before returning.
85 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_load_balancer.rb', line 85 attribute :wait |
#wait_interval ⇒ Integer?
Returns Defines the number of seconds to wait when using the _wait_for methods.
93 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_load_balancer.rb', line 93 attribute :wait_interval |
#wait_timeout ⇒ Integer?
Returns how long before wait gives up, in seconds.
89 |
# File 'lib/ansible/ruby/modules/generated/cloud/oneandone/oneandone_load_balancer.rb', line 89 attribute :wait_timeout |