SoftLayer API:如何在Softlayer中获取NetScaler列表 [英] SoftLayer API : How to get NetScaler list in Softlayer

查看:87
本文介绍了SoftLayer API:如何在Softlayer中获取NetScaler列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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.

我成功地做到了,

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列表.

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

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

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

推荐答案

这些API请求可以为您提供帮助:

These API requests can help you:

要获取全局平衡列表:

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

要获取NetScaler列表,请执行以下操作:

To get NetScaler list:

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

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

To 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

致谢.

这篇关于SoftLayer API:如何在Softlayer中获取NetScaler列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆