SoftLayer API : How to get NetScaler list in Softlayer

走远了吗. 提交于 2019-12-23 05:07:13

问题


I am developing a cloud portal using SoftLayer java client Lib. Regarding N/W part, I'm looking for API that can retrieve the list of load balance.

I succeeded to do it through,

SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service
/[Service_id]/getObject?objectMask=status
-425437/getObject?objectMask=object

with service ID from

SoftLayer_Account/getAdcLoadBalancers? 
objectMask=adcLoadBalancers.virtualServers.serviceGroups.services.id

However I couldn't only retrieve the list of LB that only regarding global LB or LB appliance, Netscaler VPX.

The question is, How can I get the list only for local/global/Netscaler per each?


回答1:


These API requests can help you:

To get Global balancing list:

https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Account/getGlobalLoadBalancerAccounts
Method: GET

To get local balancing list, execute:

https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Account/getAdcLoadBalancers?objectMask=mask[loadBalancerHardware[datacenter],ipAddress] 
Method: GET

To get NetScaler list:

https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Account/getApplicationDeliveryControllers
Method: GET

To get Network Gateway Appliance (Vyatta):

https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Account/SoftLayer_Account/getNetworkGateways

Method: GET

References: http://sldn.softlayer.com/reference/services/SoftLayer_Account/getGlobalLoadBalancerAccounts http://sldn.softlayer.com/reference/services/SoftLayer_Account/getAdcLoadBalancers http://sldn.softlayer.com/reference/services/SoftLayer_Account/getApplicationDeliveryControllers http://sldn.softlayer.com/reference/services/SoftLayer_Account/getNetworkGateways

Regards.



来源:https://stackoverflow.com/questions/35031725/softlayer-api-how-to-get-netscaler-list-in-softlayer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!