Gary Sutherland
Gary Sutherland

Reputation: 79

Get SoftLayer load balancer location

I am using https://api.softlayer.com/rest/v3/SoftLayer_Account/getAdcLoadBalancers.json to retrieve all the account Load Balancers.

I looked at the data types returned and it isn't obvious how to get the location of the load balancer. Can you help?

Thanks.

Upvotes: 0

Views: 48

Answers (1)

You could use an objectMask to retrieve additional relational data. For example, the next mask retrieves the load balancer hardware and the data center where it’s located.

objectMask=mask[loadBalancerHardware[datacenter]]

https://$username:[email protected]/rest/v3/SoftLayer_Account/getAdcLoadBalancers.json?objectMask=mask[loadBalancerHardware[datacenter]]

The next links provide further information:

https://sldn.softlayer.com/article/object-masks

https://sldn.softlayer.com/article/object-filters

Upvotes: 0

Related Questions