Forum Discussion
iControl REST call for switching a specific traffic-group to standby
Hi all, we are looking for a way to trigger a failover for a specific traffic-group through an iControl REST call. Specifically, an equivalent for the tmsh command "run sys failover standby traffic-group my-traffic-group" is needed. Can anybody help? Many thanks in advance! Regards Martin
5 Replies
- Arnaud_Lemaire
Employee
Which version are you using ?
- tatmotiv
Cirrostratus
11.6.0 HF1
- Arnaud_Lemaire
Employee
can you try (seems ok but i don't have a cluster to test on) :
POST /mgmt/tm/sys/failover/ { "command":"run", "standby":true, "trafficGroup":"traffic-group-1" } - tatmotiv
Cirrostratus
Thanks, Arnaud! We'll give it a try and report about the results.
- tatmotiv
Cirrostratus
curl -k -u admin:password https://x.x.x.x/mgmt/tm/sys/failover/ -H 'Content-Type: application/json' -X POST -d '{"command":"run","standby":true,"trafficGroup":"traffic-group-1"}'
works perfectly! Thanks for the hint, Arnaud!
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