Forum Discussion

iAzhar's avatar
iAzhar
Icon for Nimbostratus rankNimbostratus
May 27, 2021

Restart Pool Member - iControl

How to restart a pool member using REST API?

  • Hello iAzhar.

    Could you clarify what do you mean with "restart a pool member"?

    If you mean restart an F5 device, take into account that you can run BASH commands using iControlREST

    curl -sku admin:<PASSWORD> -X POST -H "Content-Type: application/json" -d "{\"command\":\"run\", \"utilCmdArgs\": \"-c 'full_box_reboot'\"}" https://localhost/mgmt/tm/util/bash

    Regards,

    Dario.

    • iAzhar's avatar
      iAzhar
      Icon for Nimbostratus rankNimbostratus

      Thank you, But I am unfamiliar with Curl. I am trying to do this from the postman.

       

      P.S:-

      I was unable to import the above curl code into postman using the import option on the postman.

      • Hello.

        If you are familiar with Postman, this is the translation:

        URL: https://localhost/mgmt/tm/util/bash
        HTTP Method: POST
        HTTP Auth Username: admin
        HTTP Auth Passowrd: <PASSWORD>
        HTTP Header Name: Content-Type
        HTTP Header Value: application/json
        Payload: {\"command\":\"run\", \"utilCmdArgs\": \"-c 'full_box_reboot'\"}

        Let me know if it suits for you

        Regards,

        Dario.