Class: IControl::LocalLB::Rule
- Inherits:
-
Base
- Object
- Base
- IControl::LocalLB::Rule
- Defined in:
- lib/icontrol/local_lb/rule.rb,
lib/icontrol/local_lb.rb
Overview
The Rule interface enables you to manipulate a local load balancer’s rules. For example, use the Rule interface to get a list of all rules, create rules, delete rules, modify rules, and query rules.
Defined Under Namespace
Classes: RuleDefinition, RuleDefinitionSequence, RuleStatisticEntry, RuleStatisticEntrySequence, RuleStatistics
Instance Method Summary collapse
-
#all_statistics ⇒ RuleStatistics
Gets the statistics for all the rule.
-
#create(opts) ⇒ Object
Creates this rule.
-
#delete_all_rules ⇒ Object
Deletes all user-defined rule.
-
#delete_rule ⇒ Object
Deletes this rule.
-
#list ⇒ String
Gets a list of all rule.
-
#modify_rule(opts) ⇒ Object
Modifies this rule.
-
#query_all_rules ⇒ RuleDefinition
Queries all rule.
-
#query_rule ⇒ RuleDefinition
Queries this rule.
-
#reset_statistics ⇒ Object
Resets the statistics for this rule.
-
#statistics ⇒ RuleStatistics
Gets the statistics for this rule.
-
#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
#all_statistics ⇒ RuleStatistics
Gets the statistics for all the rule.
55 56 57 |
# File 'lib/icontrol/local_lb/rule.rb', line 55 def all_statistics super end |
#create(opts) ⇒ Object
Creates this rule.
22 23 24 25 |
# File 'lib/icontrol/local_lb/rule.rb', line 22 def create(opts) opts = check_params(opts,[:rules]) super(opts) end |
#delete_all_rules ⇒ Object
Deletes all user-defined rule.
33 34 35 |
# File 'lib/icontrol/local_lb/rule.rb', line 33 def delete_all_rules super end |
#delete_rule ⇒ Object
Deletes this rule. An exception will be raised when attempting to delete a default system rule.
44 45 46 |
# File 'lib/icontrol/local_lb/rule.rb', line 44 def delete_rule super end |
#list ⇒ String
Gets a list of all rule.
66 67 68 |
# File 'lib/icontrol/local_lb/rule.rb', line 66 def list super end |
#modify_rule(opts) ⇒ Object
Modifies this rule.
97 98 99 100 |
# File 'lib/icontrol/local_lb/rule.rb', line 97 def modify_rule(opts) opts = check_params(opts,[:rules]) super(opts) end |
#query_all_rules ⇒ RuleDefinition
Queries all rule.
109 110 111 |
# File 'lib/icontrol/local_lb/rule.rb', line 109 def query_all_rules super end |
#query_rule ⇒ RuleDefinition
Queries this rule.
120 121 122 |
# File 'lib/icontrol/local_lb/rule.rb', line 120 def query_rule super end |
#reset_statistics ⇒ Object
Resets the statistics for this rule.
130 131 132 |
# File 'lib/icontrol/local_lb/rule.rb', line 130 def reset_statistics super end |
#statistics ⇒ RuleStatistics
Gets the statistics for this rule.
77 78 79 |
# File 'lib/icontrol/local_lb/rule.rb', line 77 def statistics super end |
#version ⇒ String
Gets the version information for this interface.
85 86 87 |
# File 'lib/icontrol/local_lb/rule.rb', line 85 def version super end |