/management/wls/{version}/jobs

This resource lists the jobs running in this WLS domain.

The resource supports the following methods:

GET Method

The GET method on this resource returns a listing of all the jobs in this WLS domain.

Roles

Administrator, Deployer, Operator, Monitor

Response Body

The response body returned includes a collection of Job entities. It also contains links to their corresponding resources.

This method can return the following links:

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

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

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

  • uri=/management/wls/{version}/jobs/{job-type}/id/{job-id} rel=items.id title=id

Response Codes

This method returns one of the Standard HTTP Status Codes.

Example

Example 1   Viewing All Jobs

This example uses the GET method to obtain information about all 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

Example Response

HTTP/1.1 200 OK

Response Body:
{
    "links": [
        {
            "rel": "parent",
            "uri": "http:\/\/localhost:7001\/management\/wls\/latest"
        },
        {
            "rel": "server",
            "uri": "http:\/\/localhost:7001\/management\/wls\/latest\/jobs\/server"
        },
        {
            "rel": "deployment",
            "uri": "http:\/\/localhost:7001\/management\/wls\/latest\/jobs\/deployment"
        },
        {
            "rel": "items.id",
            "uri": "http:\/\/localhost:7001\/management\/wls\/latest\/jobs\/server\/id\/Cluster-0-Server-1:_0_start",
            "title": "Cluster-0-Server-1:_0_start"
        }
    ],
    "items": [{
        "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 ..."
    }]
}