11-Feb-2020 07:03
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?
12-Feb-2020 14:16
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 |jq
Like tmsh modify that you don't want to.
If you found another way, please share with me.
Regards.