August 9, 2017


Create a Security group

Example for creating a Security Group.

=begin
@author Ryan Tiffany
=end

require 'softlayer_api'
require 'pp'

client = SoftLayer::Client.new(:timeout => 120)
objectTemplate = { 
	'name' => 'rubyExampleCreation',
    	'description' => 'Sec Group created via ruby'
}

createGroup = client['SoftLayer_Network_SecurityGroup'].createObjects([objectTemplate])

pp createGroup