cancel
Showing results for 
Search instead for 
Did you mean: 

how to get all pools of a virtual servers with REST or SAOP API ?

Occasional Contributor

how to get all pools of a virtual servers with REST or SAOP API ?

Hello

 

On my Virtual Traffic Manager instance, I have configured multiple virtual servers. Some of them use multiple pools.

 

Now I'm trying to use the API (SOAP or REST) to get the list of ALL the pools used on a virtual server, but guess what, I haven't found a way to have this information.

 

With the REST API :

 - https://my-server:9070/api/tm/3.0/config/active/virtual_servers/my-virtual-server gives me only the default pool...

 - https://my-server:9070/api/tm/3.0/config/active/pools/ gives me all the pools, but no indication of the virtual serveurs using them

 - https://my-server:9070/api/tm/3.0/config/active/pools/ gives me a lot of things, but no pool name...

 

Tried a lot of things with SOAP, but not the good one...

 

Does someone know my error ?

 

Thank you all

 

Marc

 

10 REPLIES 10
Not applicable

Re: how to get all pools of a virtual servers with REST or SAOP API ?

This is the vRouter forum, you are more likely to get a helpful response in the vADC forum. Link below.

 

/t5/vADC-Forum/bd-p/SteelApp-Forum

 

 

Occasional Contributor

Re: how to get all pools of a virtual servers with REST or SAOP API ?

Thanks

 

Was not sure it was the right thread...

Occasional Contributor

Re: how to get all pools of a virtual servers with REST or SAOP API ?

Hi Marc,

 

I  simple moved you Threads into a correct Forum.

New Contributor

Re: how to get all pools of a virtual servers with REST or SAOP API ?

hi ops_mdm

 

Did find a solution in the meantime? I'm looking for the same answer and found your post;

I'm using version 6.1 and I assume that it has to be possible somehow.

 

Thanks for a quick answer

Oliver

Community Manager

Re: how to get all pools of a virtual servers with REST or SAOP API ?

> I'm using version 6.1

 

Can you confirm which version you are using? Do you mean the REST API v6.1?

 

There is a good worked example in the REST reference guide, see http://pulsesecure.net/vadc-docs for more information on where to find the latest. In the current REST reference guide, for vTM software v18.3, this is on page 30, search for "Listing Running Virtual Servers" for an example of how to list the virtual servers which are in use. The example script uses REST API 6.0.

 

The example in the REST reference guide checks which pools are used by a given vServer; however, there is a simpler worked example here, which simply lists all the pools.

 

(corrected link)

https://community.pulsesecure.net/t5/Pulse-Secure-vADC/Tech-Tip-Using-the-RESTful-Control-API-with-P...

 

New Contributor

Re: how to get all pools of a virtual servers with REST or SAOP API ?

hi pwallace

 

I'm using REST API 6.1 and Pulse Secure version 18.3.

I read this document and the example doesn't list the pools for a given virtual server. There is only the

default pool in the retrieved json and I try to get all the pools.

Your second Link doesn't work, but sounds very promising. Smiley Wink

 

Thanks for your answer

Community Manager

Re: how to get all pools of a virtual servers with REST or SAOP API ?

I have corrected the second link - there was an extra character added to the URL, but seems ok now.

 

 

New Contributor

Re: how to get all pools of a virtual servers with REST or SAOP API ?

hi pwallace

The link works now, thanks for that.

I think you don't understand what I try to get to work. Virtual servers and pools are connected somehow, in a relational database you would say there is a N:N relationship. So now I have one virtual server and like to find all connected pools, like it's written in the topic title.

Either I can provide some kind of filter in the request or the retrieved json contains a list of the connected virtual servers. I haven't found any hint to do either.

The example under the second link just lists all pools...

Thanks for you help.

 

Community Manager

Re: how to get all pools of a virtual servers with REST or SAOP API ?

Here's another suggestion: in the segment above, you are looking in the resource which lists all pools:

https://my-server:9070/api/tm/6.1/config/active/pools/

 

You could look in the list of pools in the ts_redirect_pools property of the resource which describes the current state, that might give you a different view:

https://my-server:9070/api/tm/6.1/status/local_tm/state