我正在使用SoftLayer java客户端Lib开发云门户。 关于N / W部分,我正在寻找可以检索负载平衡列表的API。
我成功完成了,
SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service
/[Service_id]/getObject?objectMask=status
-425437/getObject?objectMask=object
来自
的服务IDSoftLayer_Account/getAdcLoadBalancers?
objectMask=adcLoadBalancers.virtualServers.serviceGroups.services.id
但是,我不能仅检索仅关于全球LB或LB设备,Netscaler VPX的LB列表。
问题是, 我怎样才能获得每个本地/全球/ Netscaler的列表?
答案 0 :(得分:1)
这些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
获取Network Gateway Appliance(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
问候。