Forum Discussion
kridsana
Jan 29, 2021Cirrocumulus
Disable specific interface via iControl?
Hi Can we disable specific interface via iControl? ie when F5 failover. (status change from Active to standby , ) I want monitoring tool to send icontrol command to disable some interfac...
iaine
Jan 29, 2021Nacreous
Hi
Yes, details for this can be found here -> https://clouddocs.f5.com/api/icontrol-rest/APIRef_tm_net_interface.html
So to enable 1.1 you would send something like
curl -k -u admin:<password> https:/-X PATCH -H "Content-Type: application/json" https://<bigip>/mgmt/tm/net/interface/1.1 -d '{ "enabled":true }'
...and to disable 1.1...
curl -k -u admin:<password> -X PATCH -H "Content-Type: application/json" https://<bigip>/mgmt/tm/net/interface/1.1 -d '{ "disabled":true }'
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