Verify that the Managed Servers are Running

You can send a GET request to verify or monitor the state of the Managed servers in your WebLogic domain. The following steps show how to build this GET request using cURL:
  1. Identify the host name and port of your domain's Administration Server and construct the GET request using the /management/weblogic/{version}/domainRuntime/serverRuntimes endpoint. This WebLogic Server request uses the following URL structure:
    http://localhost:7001/management/weblogic/latest/domainRuntime/serverRuntimes
  2. Specify the headers on the cURL command line:
    • -H X-Requested-By:MyClient

    • -H Accept:application/json

  3. Construct the GET request and specify 'name' and 'state' in the fields parameter so that the request returns the name of the server and its state as shown in the following example.

    http://localhost:7001/management/weblogic/latest/domainRuntime/serverRuntimes?links=none&fields=name,state

The following sample shows the complete GET request.

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/serverRuntimes?links=none&fields=name,state

The GET request returns the name of the servers in the domain along with their state.

HTTP/1.1 200 OK
Response Body:
{"items": [
    {
        "state": "RUNNING",
        "name": "Cluster1Server1"
    },
    {
        "state": "RUNNING",
        "name": "AdminServer"
    },
    {
        "state": "RUNNING",
        "name": "Cluster1Server2"
    }
]}