Forum Discussion
Lazaro_Pereira_
Nimbostratus
Jul 23, 2014REST API Pool Member Creation
If I use the REST API and create a pool can I have a different Name than address? I looked at the example but when you run it the member in the pool shows up as the IP in both the node name field and...
kunjan
Nimbostratus
Nov 05, 2014Try this
curl -sk -u 'admin:admin' -H "Content-Type: application/json" -X POST -d '{"name":" VCS.com:80"}'
- dfosborne2_2224Dec 13, 2014
Nimbostratus
kunjan, dude you just saved me from failling any further down that rabbit hole. Thank you! - Mike_BiancanielNov 11, 2016
Nimbostratus
So, this adds the member, but returns a 404, which kind of screws up any automation that tries to manage members.
ver=11.5.4
Is this fixed in a later release?
- Mike_BiancanielNov 23, 2016
Nimbostratus
Returning a 404 after successfully adding a member is definitely a bug, however, there is a workaround: add a "partition" attribute:
curl -sk -u 'admin:admin' -H "Content-Type: application/json" -X POST https://x.x.x.x/mgmt/tm/ltm/pool/test-pool/members -d '{"name":" VCS.com:80", "partition":"Common"}'
Until they fix this, just modify your code to add the "partition" for any POSTs to members/.
edit: I just found another post that references this same behavior in v12.0.
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