Skip to content

Instantly share code, notes, and snippets.

@huskercane
Created July 29, 2014 20:28
Show Gist options
  • Select an option

  • Save huskercane/10a1b816b7e4aca2cdf9 to your computer and use it in GitHub Desktop.

Select an option

Save huskercane/10a1b816b7e4aca2cdf9 to your computer and use it in GitHub Desktop.
List SoftLayer Data Center Locations
require 'softlayer_api'
require 'pp'
softlayer_client = SoftLayer::Client.new()
datacenter_service = softlayer_client[:Location]
datacenters = datacenter_service.getDatacenters
puts datacenters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment