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

查看:21
本文介绍了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/getGlobalLoadBalancerAccountshttp://sldn.softlayer.com/reference/services/SoftLayer_Account/getAdcLoadBalancershttp://sldn.softlayer.com/reference/services/SoftLayer_Account/getApplicationDeliveryControllershttp://sldn.softlayer.com/reference/services/SoftLayer_Account/getNetworkGateways

问候.

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

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