Forum Discussion
Kupauw_233756
Nimbostratus
Aug 14, 2018How to remove 1 line from a virtual server config with REST
I have a virtual server where i want to add or remove irules with the push of a button. It is easy to add the irule with a POST command but removing this specific irule gets a lot trickier when there are more irules attached to this specific virtual server.
To remove it i now send a PATCH or PUT command to with the following body:
{"rules":[]}
But clearly this removes all the rules from the vip. Is it possible to only remove the rules i just added to the vip?- jaikumar_f5
Noctilucent
I'm kinda positive that there's no method for that. Its like none or the items you include.
For none
- "rules": [""]
for Multiples
- "rules": ["/Common/rule1", "/Common/rule2"]
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