I'm hoping someone can help me figure out how to create a Gtm Pool and related members via the IContro Rest API. I have scoured the interwebs and have not found an example. The API Documentation for /gtm/pool shows a subcollection of 'members' but does not expand on what the structure of this subcollection looks like.
I don't know if I have to create a pool first and then add members to it with subsequent operations or whether I can do it all at once. Either way, I don't know how to create a pool nor do I know how to add a member to an existing pool.
Thanks in advance.
Does anyone have any examples of them doing this.
I got a solution after exploring the API for one hour , so well:
The first step is to determine the virtual servers configured on the DNS system calling the api:
GET https://"Your_IP"/mgmt/tm/gtm/server/~Common~"Name of your server"/virtual-servers?ver=18.104.22.168
Then, to create the pool you need to send a post to:
And then use the body in JSON format:
In the Body Example, I add two virtual servers to the pool, VS_HAchazon and VS-WAF.
I hope it´s help.