/management/wls/{version}/jobs/server

The resource supports the following methods:

GET Method

The GET method on this resource returns information about each job that is related to a server lifecycle operation.

Roles

Administrator, Deployer, Operator, Monitor

Response Body

The response body returned includes a ServerJob entity.

This method can return the following links:

  • uri=/management/wls/{version}/jobs rel=parent

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

Response Codes

This method returns one of the Standard HTTP Status Codes.

Example

Example 1   Getting All Server Jobs

This example uses the GET method to obtain information about all server lifecycle jobs.

Example Request

curl -v \
--user username:password \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/wls/latest/jobs/server

Example Response

HTTP/1.1 200 OK

Response Body:
{
    "links": [
        {
            "rel": "parent",
            "uri": "http:\/\/localhost:7001\/management\/wls\/latest\/jobs"
        },
        {
            "rel": "server",
            "uri": "http:\/\/localhost:7001\/management\/wls\/latest\/jobs\/server\/id\/Cluster-0-Server-1:_0_start",
            "title": "Cluster-0-Server-1:_0_start"
        }
    ],
    "items": [{
        "operation": "start",
        "status": "completed",
        "beginTime": 1390586983126,
        "endTime": 1390586998781,
        "name": "_0_start",
        "id": "Cluster-0-Server-1:_0_start",
        "type": "server",
        "description": "Starting Cluster-0-Server-1 server ...",
        "serverName": "Cluster-0-Server-1"
    }]
}