For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

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?

3 Replies

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

      • Dario_Garrido's avatar
        Dario_Garrido
        Icon for Noctilucent rankNoctilucent

        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.