Forum Discussion

tatmotiv's avatar
tatmotiv
Icon for Cirrostratus rankCirrostratus
Oct 22, 2014

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

  • 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"
     }
    
  • Thanks, Arnaud! We'll give it a try and report about the results.

     

  • 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!