Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 
Custom Alert Banner

Restart Pool Member - iControl

iAzhar
Nimbostratus
Nimbostratus

How to restart a pool member using REST API?

3 REPLIES 3

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.

Regards,
Dario.

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.

Regards,
Dario.