SoftLayer developers.
When ran a script to create an Object Storage in WDC01
in SoftLayer, it failed. I opened a ticket with SoftLayer. Then SL support suggested to post the API code and error here.
Could someone help to solve the problem?
FYI: This API has been used for long and it didn't have any issue to create an Object Storage in DAL05 yesterday.
API Code:
# GET
headers = Hash["X-Auth-Key"=>pkg_apikey,"X-Auth-User"=>pkg_username]
url="https://#{datacenter_name}.objectstorage.softlayer.net/auth/v1.0/"
keys = ["x-auth-token","x-storage-url"]
resp = utilRest.doRestWithHeaders(url,headers,"get",keys)
where
pkg_apikey : ***************
pkg_username : <SL account>
datacenter_name : wdc01
Error:
getaddrinfo: Name or service not known
try using this link:
https://wdc.objectstorage.softlayer.net/auth/v1.0/
you can use the control portal to see the valid URLs
Regards