Forum Discussion
mkozak_166878
Nimbostratus
May 28, 2015Rest add member to gtm pool
I'm trying to add a member to a GTM pool using rest. Is there something wrong with my syntax?
curl -k -u admin:admin -H "Content-Type:application/json" -X PUT -d '{"name":"audit_pool", "members...
steve_laffan_11
Cirrus
Jul 16, 2015Did you resolve this ?
I got it working using this:
curl -sk --max-time 5 -u admin:admin https://X.X.X.X/mgmt/tm/gtm/pool/{GTM-Pool-Name}/members -H 'Content-Type: application/json' -X POST -d '{"name":"{F5-LTM-name}:/Common/{virtual-server-on-LTM"}'
HTH's
Steve
steve_laffan_11
Cirrus
Oct 10, 2016I don't expect it to have changed significantly since I last did this so hopefully this will help:
Here are my variables:
GTM Pool Name = l72xxengx2external
F5 LTM Name = f5l2eng02ppew1b.testing.com
Virtual Server from F5 LTM = dvxxdatx2
This is the rest command from Curl:
curl -sk --max-time 5 -u {administrative-username}:{administrative-password} https://{F5 Management IP}/mgmt/tm/gtm/pool/l72xxengx2external/members -H 'Content-Type: application/json' -X POST -d '{"name":"f5l2eng02ppew1b.testing.com:/Common/dvxxdatx2"}'
HTH
Steve
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects