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
This is the vRouter forum, you are more likely to get a helpful response in the vADC forum. Link below.
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
> 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.
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.
Thanks for your answer
I have corrected the second link - there was an extra character added to the URL, but seems ok now.
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.
Here's another suggestion: in the segment above, you are looking in the resource which lists all 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: