Class: IControl::GlobalLB::Server
- Inherits:
-
Base
- Object
- Base
- IControl::GlobalLB::Server
- Defined in:
- lib/icontrol/global_lb/server.rb,
lib/icontrol/global_lb.rb
Overview
The Server interface enables you to work with servers within a data center.
Defined Under Namespace
Classes: MonitorAssociation, MonitorAssociationSequence, ServerIPDefinition, ServerIPSequence, ServerIPsForUnitID, ServerIPsForUnitIDSequence, ServerMetricLimit, ServerMetricLimitSequence, ServerStatisticEntry, ServerStatisticEntrySequence, ServerStatistics
Instance Method Summary collapse
-
#add_ip(opts) ⇒ Object
Adds the IP addresses to this server.
-
#all_statistics ⇒ ServerStatistics
Gets the statistics for all the server.
-
#allow_path_state ⇒ EnabledState
Gets the states indicating whether path information gathering is allowed for this server.
-
#allow_service_check_state ⇒ EnabledState
Gets the states indicating whether service check is allowed for this server.
-
#allow_snmp_state ⇒ EnabledState
Gets the states indicating whether SNMP information gathering is allowed for this server.
-
#auto_configuration_state ⇒ AutoConfigurationState
Gets the states indicating whether autoconfig is enabled/disabled.
-
#create(opts) ⇒ Object
Creates this server.
-
#data_center ⇒ String
Gets the data centers that this server belong to.
-
#delete_all_servers ⇒ Object
Deletes all server.
-
#delete_server ⇒ Object
Deletes this server.
-
#enabled_state ⇒ EnabledState
Gets the enabled states for this server.
-
#ip ⇒ ServerIPDefinition
Gets the IP addresses that belong to this server.
-
#limit ⇒ ServerMetricLimit
Gets all metrics limits for a sequence of server.
-
#link_auto_configuration_state ⇒ AutoConfigurationState
Gets the states indicating whether autoconfig is enabled/disabled.
-
#list ⇒ String
Gets a list of server.
-
#monitor_association(opts) ⇒ MonitorAssociation
Gets the monitor associations for this server, i.e.
-
#object_status ⇒ ObjectStatus
Gets the statuses of this server.
-
#prober_address ⇒ String
Gets the prober addresses for this server.
-
#remove_ip(opts) ⇒ Object
Removes the IP addresses from this server.
-
#remove_monitor_association(opts) ⇒ Object
Removes the monitor associations for this server.
-
#reset_statistics(opts) ⇒ Object
Resets the statistics for this server.
-
#server_type ⇒ ServerType
Gets the server types of this server.
-
#set_allow_path_state(opts) ⇒ Object
Sets the states indicating whether path information gathering is allowed for this server.
-
#set_allow_service_check_state(opts) ⇒ Object
Sets the states indicating whether service check is allowed for this server.
-
#set_allow_snmp_state(opts) ⇒ Object
Sets the states indicating whether SNMP information gathering is allowed for this server.
-
#set_auto_configuration_state(opts) ⇒ Object
Sets the states indicating whether autoconfig is enabled/disabled.
-
#set_data_center(opts) ⇒ Object
Moves this server to the new data centers.
-
#set_enabled_state(opts) ⇒ Object
Sets the enabled states for this server.
-
#set_limit(opts) ⇒ Object
Sets the limits for server metrics.
-
#set_link_auto_configuration_state(opts) ⇒ Object
Sets the states indicating whether autoconfig is enabled/disabled for the server’ links.
-
#set_monitor_association(opts) ⇒ Object
Sets/creates the monitor associations for this server.
-
#set_prober_address(opts) ⇒ Object
Sets the prober addresses for this server.
-
#set_server_type(opts) ⇒ Object
Sets the server types of this server.
-
#statistics(opts) ⇒ ServerStatistics
Gets the statistics for this server.
-
#version ⇒ String
Gets the version information for this interface.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class IControl::Base
Instance Method Details
#add_ip(opts) ⇒ Object
Adds the IP addresses to this server.
26 27 28 29 |
# File 'lib/icontrol/global_lb/server.rb', line 26 def add_ip(opts) opts = check_params(opts,[:ips]) super(opts) end |
#all_statistics ⇒ ServerStatistics
Gets the statistics for all the server.
72 73 74 |
# File 'lib/icontrol/global_lb/server.rb', line 72 def all_statistics super end |
#allow_path_state ⇒ EnabledState
Gets the states indicating whether path information gathering is allowed for this server.
84 85 86 |
# File 'lib/icontrol/global_lb/server.rb', line 84 def allow_path_state super end |
#allow_service_check_state ⇒ EnabledState
Gets the states indicating whether service check is allowed for this server.
95 96 97 |
# File 'lib/icontrol/global_lb/server.rb', line 95 def allow_service_check_state super end |
#allow_snmp_state ⇒ EnabledState
Gets the states indicating whether SNMP information gathering is allowed for this server.
107 108 109 |
# File 'lib/icontrol/global_lb/server.rb', line 107 def allow_snmp_state super end |
#auto_configuration_state ⇒ AutoConfigurationState
Gets the states indicating whether autoconfig is enabled/disabled. If enabled, GTM will attempt to gather all virtual server based on this server.
119 120 121 |
# File 'lib/icontrol/global_lb/server.rb', line 119 def auto_configuration_state super end |
#create(opts) ⇒ Object
Creates this server.
40 41 42 43 |
# File 'lib/icontrol/global_lb/server.rb', line 40 def create(opts) opts = check_params(opts,[:types,:data_centers]) super(opts) end |
#data_center ⇒ String
Gets the data centers that this server belong to.
130 131 132 |
# File 'lib/icontrol/global_lb/server.rb', line 130 def data_center super end |
#delete_all_servers ⇒ Object
Deletes all server.
51 52 53 |
# File 'lib/icontrol/global_lb/server.rb', line 51 def delete_all_servers super end |
#delete_server ⇒ Object
Deletes this server.
61 62 63 |
# File 'lib/icontrol/global_lb/server.rb', line 61 def delete_server super end |
#enabled_state ⇒ EnabledState
Gets the enabled states for this server.
141 142 143 |
# File 'lib/icontrol/global_lb/server.rb', line 141 def enabled_state super end |
#ip ⇒ ServerIPDefinition
Gets the IP addresses that belong to this server.
152 153 154 |
# File 'lib/icontrol/global_lb/server.rb', line 152 def ip super end |
#limit ⇒ ServerMetricLimit
Gets all metrics limits for a sequence of server.
163 164 165 |
# File 'lib/icontrol/global_lb/server.rb', line 163 def limit super end |
#link_auto_configuration_state ⇒ AutoConfigurationState
Gets the states indicating whether autoconfig is enabled/disabled. If enabled, GTM will attempt to look up the links’s default gateways.
175 176 177 |
# File 'lib/icontrol/global_lb/server.rb', line 175 def link_auto_configuration_state super end |
#list ⇒ String
Gets a list of server.
186 187 188 |
# File 'lib/icontrol/global_lb/server.rb', line 186 def list super end |
#monitor_association(opts) ⇒ MonitorAssociation
Gets the monitor associations for this server, i.e. the monitor rules used by the server.
200 201 202 203 |
# File 'lib/icontrol/global_lb/server.rb', line 200 def monitor_association(opts) opts = check_params(opts,[:server_names]) super(opts) end |
#object_status ⇒ ObjectStatus
Gets the statuses of this server.
212 213 214 |
# File 'lib/icontrol/global_lb/server.rb', line 212 def object_status super end |
#prober_address ⇒ String
Gets the prober addresses for this server.
223 224 225 |
# File 'lib/icontrol/global_lb/server.rb', line 223 def prober_address super end |
#remove_ip(opts) ⇒ Object
Removes the IP addresses from this server.
268 269 270 271 |
# File 'lib/icontrol/global_lb/server.rb', line 268 def remove_ip(opts) opts = check_params(opts,[:ips]) super(opts) end |
#remove_monitor_association(opts) ⇒ Object
Removes the monitor associations for this server. This basically deletes the monitor associations between a server and a monitor rule, i.e. this server will no longer be monitored.
283 284 285 286 |
# File 'lib/icontrol/global_lb/server.rb', line 283 def remove_monitor_association(opts) opts = check_params(opts,[:server_names]) super(opts) end |
#reset_statistics(opts) ⇒ Object
Resets the statistics for this server.
296 297 298 299 |
# File 'lib/icontrol/global_lb/server.rb', line 296 def reset_statistics(opts) opts = check_params(opts,[:server_names]) super(opts) end |
#server_type ⇒ ServerType
Gets the server types of this server.
234 235 236 |
# File 'lib/icontrol/global_lb/server.rb', line 234 def server_type super end |
#set_allow_path_state(opts) ⇒ Object
Sets the states indicating whether path information gathering is allowed for this server.
310 311 312 313 |
# File 'lib/icontrol/global_lb/server.rb', line 310 def set_allow_path_state(opts) opts = check_params(opts,[:states]) super(opts) end |
#set_allow_service_check_state(opts) ⇒ Object
Sets the states indicating whether service check is allowed for this server.
323 324 325 326 |
# File 'lib/icontrol/global_lb/server.rb', line 323 def set_allow_service_check_state(opts) opts = check_params(opts,[:states]) super(opts) end |
#set_allow_snmp_state(opts) ⇒ Object
Sets the states indicating whether SNMP information gathering is allowed for this server.
337 338 339 340 |
# File 'lib/icontrol/global_lb/server.rb', line 337 def set_allow_snmp_state(opts) opts = check_params(opts,[:states]) super(opts) end |
#set_auto_configuration_state(opts) ⇒ Object
Sets the states indicating whether autoconfig is enabled/disabled. If enabled, GTM will attempt to gather all virtual server based on this server.
351 352 353 354 |
# File 'lib/icontrol/global_lb/server.rb', line 351 def set_auto_configuration_state(opts) opts = check_params(opts,[:states]) super(opts) end |
#set_data_center(opts) ⇒ Object
Moves this server to the new data centers.
364 365 366 367 |
# File 'lib/icontrol/global_lb/server.rb', line 364 def set_data_center(opts) opts = check_params(opts,[:data_centers]) super(opts) end |
#set_enabled_state(opts) ⇒ Object
Sets the enabled states for this server.
377 378 379 380 |
# File 'lib/icontrol/global_lb/server.rb', line 377 def set_enabled_state(opts) opts = check_params(opts,[:states]) super(opts) end |
#set_limit(opts) ⇒ Object
Sets the limits for server metrics.
390 391 392 393 |
# File 'lib/icontrol/global_lb/server.rb', line 390 def set_limit(opts) opts = check_params(opts,[:limits]) super(opts) end |
#set_link_auto_configuration_state(opts) ⇒ Object
Sets the states indicating whether autoconfig is enabled/disabled for the server’ links. If enabled, GTM will attempt to look up the links’s default gateways.
404 405 406 407 |
# File 'lib/icontrol/global_lb/server.rb', line 404 def set_link_auto_configuration_state(opts) opts = check_params(opts,[:states]) super(opts) end |
#set_monitor_association(opts) ⇒ Object
Sets/creates the monitor associations for this server. This basically creates the monitor associations between a server and a monitor rule.
418 419 420 421 |
# File 'lib/icontrol/global_lb/server.rb', line 418 def set_monitor_association(opts) opts = check_params(opts,[:monitor_associations]) super(opts) end |
#set_prober_address(opts) ⇒ Object
Sets the prober addresses for this server.
431 432 433 434 |
# File 'lib/icontrol/global_lb/server.rb', line 431 def set_prober_address(opts) opts = check_params(opts,[:addresses]) super(opts) end |
#set_server_type(opts) ⇒ Object
Sets the server types of this server.
444 445 446 447 |
# File 'lib/icontrol/global_lb/server.rb', line 444 def set_server_type(opts) opts = check_params(opts,[:types]) super(opts) end |
#statistics(opts) ⇒ ServerStatistics
Gets the statistics for this server.
247 248 249 250 |
# File 'lib/icontrol/global_lb/server.rb', line 247 def statistics(opts) opts = check_params(opts,[:server_names]) super(opts) end |
#version ⇒ String
Gets the version information for this interface.
256 257 258 |
# File 'lib/icontrol/global_lb/server.rb', line 256 def version super end |