Forum Discussion
Darrell_G_36120
Altocumulus
May 16, 2012Icontrol:Ruby set_monitor_rule API restriction failure
Hello,
I'm having problems with the NodeAddressV2:set_monitor_rule Ruby API. I'm trying to add a basic monitor rule to a node however, always fail with a restriction error no matter what I ...
George_Watkins_
May 17, 2012Historic F5 Account
Hi Darrell,
Here is the syntax I used:
irb(main):001:0> bigip = F5::IControl.new("test-ltm-ve-03", "admin", "admin", ["LocalLB.NodeAddressV2"]).get_interfaces
=> {"LocalLB.NodeAddressV2"=>>}
irb(main):002:0> bigip["LocalLB.NodeAddressV2"].set_monitor_rule(["test-ubuntu-lucid-01"], [ { "type" => "MONITOR_RULE_TYPE_SINGLE", "quorum" => 0, "monitor_templates" => [ "icmp" ] } ])
=> nil That sets the ICMP node-specific monitor for node test-ubuntu-lucid-01. I tested using version 11.0.0.1 of the Ruby iControl library on an LTM running version 11.1.0 build 2027.0 HF2. Hope that helps, George
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
