/management/wls/{version}/servers/id/{server-name}/resume

This resource resumes a server.

The resource supports the following methods:

POST Method

The POST method resumes the server instance that is suspended or in the ADMIN state.

Roles

Administrator

Request Query Parameters

This resource launches a job to restart the server.

_detached

(Optional) Specifies whether this method runs in detached (background) mode or synchronously.

If the __detached=true query parameter is specified (detached invocation), then this method returns immediately after launching the job. Otherwise, it waits for the job to complete, fail, or timeout (synchronous invocation).

Response Body

If the method was invoked synchronously and successfully launched the job, the response body includes a ServerJob entity containing the state of the job (completed, failed, or still running in the case of a timeout) as well as a link to the job resource.

This method can return the following links:

  • uri=/wls/jobs/server/{job-id} rel=job title=name

Response Codes

If the method was invoked synchronously and the job successfully completed, the method returns a 200 OK status code. If the job timed out, the method returns a 202 Accepted status code.

If the method was invoked detached and successfully launched the job, the method returns a 202 Accepted status code and a link to the job resource. In this case, the response does not include a ServerJob entity.

Example

Example 1   Resuming a Server

This example uses the POST method to resume a server synchronously.

Example Request

curl -v \
--user username:password \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X POST http://localhost:7001/management/wls/latest/servers/id/Cluster-0-Server-1/resume

Example Response

HTTP/1.1 200 OK

Response Body:
{
    "messages": [{
        "message": "Resumed the server 'Cluster-0-Server-1'.",
        "severity": "SUCCESS"
    }],
    "links": [{
        "rel": "job",
        "uri": "http:\/\/localhost:7001\/management\/wls\/latest\/jobs\/server\/id\/Cluster-0-Server-1:_2_resume"
    }],
    "item": {
        "operation": "resume",
        "status": "completed",
        "beginTime": 1390587004735,
        "endTime": 1390587004747,
        "name": "_2_resume",
        "id": "Cluster-0-Server-1:_2_resume",
        "type": "server",
        "description": "Resuming Cluster-0-Server-1 server ...",
        "serverName": "Cluster-0-Server-1"
    }
}
Example 2   Resuming a Server Asynchronously

This example uses the POST method to resume a server in detached mode.

Example Request

curl -v \
--user username:password \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X POST http://localhost:7001/management/wls/latest/servers/id/Cluster-0-Server-1/resume?__detached=true

Example Response

HTTP/1.1 202 Accepted

Response Body:
{
    "messages": [{
        "message": "Resuming the server 'Cluster-0-Server-1'.",
        "severity": "SUCCESS"
    }],
    "links": [{
        "rel": "job",
        "uri": "http:\/\/localhost:7001\/management\/wls\/latest\/jobs\/server\/id\/Cluster-0-Server-1:_10_resume"
    }]
}