Forum Discussion
REST API - Remove WideIPs from Distributed Applications
I am working on putting together a script that monitors servers that are down in BIG-IP DNS and clean up all configuration items they are related to.
When attempting to delete a distributed application that contains a wide ip, the API provides a 400 error response and states that the application is referenced by one or more wideips.
Attempting to put a patch in place with a blank wideip list results in an error:
PATCH Body:
{"wideips": [] }
Response:
"code": 400,
"message": "one or more configuration identifiers must be provided",
Does anyone know of a better way to utilize the API to remove all wideips from a distributed application other than using the bash command to run a tmsh modify command?
1 Reply
- cjunior
Nacreous
Hey buddy, are you still facing this issue?
I can clear ltm pool members but I can't clear gtm distributed application as you said. So bad 😕
I can't find way another than run it:curl -kv -u admin:admin -X POST -H 'Content-Type: application/json' -d '{"command":"run","utilCmdArgs":"-c \"tmsh modify gtm distributed-app app_dc_group wideips delete { all }\""}' https://bigip/mgmt/tm/util/bash |jqLike tmsh modify that you don't want to.
If you found another way, please share with me.
Regards.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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
