April 25, 2018


cutomerIssueBAMbrand.rb
cutomerIssueBAMbrand.rb

require 'softlayer_api'
require 'pp'
puts "INFO: connecting...."

account_service = SoftLayer::Service.new("SoftLayer_Account",
:username => "",
:api_key => "apikey_goes_here")

brand_service = SoftLayer::Service.new("SoftLayer_Brand",
:username => "",
:api_key => "apikey_goes_here")

brands = account_service.getOwnedBrands()
puts "INFO: printing brands...."
pp (brands)
puts "INFO: printing customers for the brands...."
for brand in brands
  accounts = brand_service.object_with_id(brand['id']).getAllOwnedAccounts()
  pp (accounts)
end

Feedback?

We would love to hear it
Open an issue