You are viewing an older version of this section. Click here to navigate to the latest version.

Restart a Server

Restarts the specified server. You invoke the resource /mmc/api/servers/<myServerId>/restart with the HTTP POST operation to restart the server specified by <myServerId>.

You need to substitute <myServerId> with the URL to the server. The URL is the href property of the server. You must also append the parameter /restart to the URL of the server.

Example Request

The following is an example of invoking this request.

POST http://localhost:8080/mmc/api/servers/local$fa1b187e-0436-4d44-a6c1-140416d4d440/restart

Example Response

If successful, the above request restarts the specified server and returns the following response.

200 OK
Server: Apache-Coyote/1.1
Date: Mon, 09 Nov 2009 19:38:42 GMT