Forum Discussion
Nigel_Benns_660
Jun 26, 2013Nimbostratus
This is working for me in Ruby on Version 11 api:
!/usr/bin/env ruby
require 'rubygems'
require 'f5-icontrol'
require 'json'
require 'socket'
bigip = F5::IControl.new(
'host',
'user',
'pass',
[
'Management.Partition',
'LocalLB.Class'
]
).get_interfaces
env = ARGV.shift
nodes = ARGV
begin
bigip["LocalLB.Class"].create_string_class([
{
"name" => "test-auto",
"members" => [
"test1",
"test2"
]
}
])
bigip["LocalLB.Class"].set_string_class_member_data_value(
[
{
'name' => "test-auto",
'members' => [
"test1",
"test2"
]
}
],
[
[
"hi",
"meow"
]
]
)