/management/wls/{version}/targets

This resource lists all servers and clusters in this WLS domain.

The resource supports the following methods:

GET Method

The GET method on this resource returns all servers and clusters in this WLS domain.

Roles

Administrator, Deployer, Operator, Monitor

Response Body

The response body contains a collection of Target entities.

This method can return the following links:

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

Response Codes

This method returns one of the Standard HTTP Status Codes.

Example

Example 1   Viewing WLS Targets

This example uses the GET method to return a list of all targets in this domain.

Example Request

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

Example Response

HTTP/1.1 200 OK

Response Body:
{
    "links": [{
        "rel": "parent",
        "uri": "http:\/\/localhost:7001\/management\/wls\/latest"
    }],
    "items": [
        {
            "name": "myserver",
            "type": "server"
        },
        {
            "name": "Cluster-0",
            "type": "cluster"
        }
    ]
}