August 9, 2017


Get Security Group Details

Get the rules and associated servers in a Security Group.

=begin
@author Ryan Tiffany
=end

require 'softlayer_api'
require 'pp'

client = SoftLayer::Client.new(:timeout => 120)
secGroupId = 70501

getAll = client['SoftLayer_Network_SecurityGroup'].object_with_id(secGroupId).getAllObjects
pp getAll

Feedback?

If this article contains any error, or leaves any of your questions unanswered, please help us out by opening up a github issue.
Open an issue