Reputation: 22
I have tried all methods listed in the answer here: SoftLayer API : How to get NetScaler list in Softlayer and only ever get back the physical load balancers on our account.
Upvotes: 0
Views: 103
Reputation: 531
UPDATED:
Currently the portal requires to use another service different to SoftLayer_Account to display IBM Bluemix Load Balancers as shown in the portal's LB list, the proper service and method is SoftLayer_Network_LBaaS_LoadBalancer::getAllObjects.
Try the following REST request:
https://[username]:[apiKey]@api.softlayer.com/rest/v3.1/SoftLayer_Network_LBaaS_LoadBalancer/getAllObjects
To retrieve other type of load balancer the request should make use of Object Masks, this will include the proper parameters you require in the response, for example in this case physical load balancer is on loadBalancerHardware property but virtual details you require, are on ipAddress object.
Try the following REST request:
http://[username]:[apiKey]@stable.application.qadal0501.softlayer.local/v3.1/sldn/rest/SoftLayer_Account/getAdcLoadBalancers?objectMask=mask[id, accountId, loadBalancerHardware[hostname, id, fullyQualifiedDomainName], ipAddress[ipAddress, id]]
Currently the portal displays Local and Global Load balancers, the request above works with getAdcLoadBalancers method to retrieve Local Load Balancers, for Global you should use SoftLayer_Account:getGlobalLoadBalancerAccounts
For more information I recommend the following:
https://sldn.softlayer.com/article/object-masks
Upvotes: 2