Forum Discussion
iAzhar
May 27, 2021Nimbostratus
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.
- iAzharNimbostratus
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.
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