Forum Discussion
dotsonpaper_280
Nimbostratus
Oct 14, 2017How To Delete An irule using Rest API with CURL
Hello,
I am a bit stumped. I know I can add an irule using the rest api running the following command:
curl -sku ':' -H "Content-Type: application/json" -X PATCH https://bigip1/mgmt/tm/ltm/virtua...
Hygor
Nimbostratus
Oct 16, 2017Hi, You can do that using python sdk:
import requests
from f5.bigip import ManagementRoot
requests.packages.urllib3.disable_warnings()
connect to your F5
b = ManagementRoot('your_f5_mgmt_ip', 'user', 'pass')
load the rule
rule1 = b.tm.ltm.rules.rule.load(name='irule_delete', partition='Common')
Delete the Rule
rule1.delete()
Regards,
Hygor
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
