0

我正在使用 SoftLayer java 客户端 Lib 开发一个云门户。关于 N/W 部分,我正在寻找可以检索负载平衡列表的 API。

我成功地做到了,

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

服务 ID 来自

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

但是,我不能只检索仅与全局 LB 或 LB 设备 Netscaler VPX 有关的 LB 列表。

问题是,我如何才能获得每个本地/全局/Netscaler 的列表?

4

1 回答 1

2

这些 API 请求可以帮助您:

获取全局平衡列表:

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

要获取本地平衡列表,请执行:

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

获取 NetScaler 列表:

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

要获取网络网关设备 (Vyatta):

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

Method: GET

参考资料: 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

问候。

于 2016-01-27T14:31:38.037 回答