1

We can retrieve the datacenters for Network Gateway service from softlayer using below api. "https://api.softlayer.com/rest/v3.1/SoftLayer_Location_Datacenter/getDatacenters.json" It lists all the datacenters but I want those datacenter which will have servers to provision Network Gateway.

Is there any way to filter out those datacenter having servers?

Sagar Kale
  • 11
  • 1
  • I`ll provide an answer with a rest call, if it´s not what you require please upload an screenshot of what you need using the portal UI. – Fernando Iquiza Aug 20 '18 at 19:49

1 Answers1

0

Try the following rest api example:

https://[apiUsername]:[apiKey]@api.softlayer.com/rest/v3.1/SoftLayer_Product_Package_Server/getAllObjects?objectFilter={"packageType":{"operation":"BARE_METAL_GATEWAY"}}
Fernando Iquiza
  • 531
  • 3
  • 7