View Domain Configuration

You can send a GET request to view the WebLogic domain configuration, such as the administration protocol and the production mode. 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}/serverConfig endpoint. This WebLogic Server request uses the following URL structure:
    http://localhost:7001/management/weblogic/latest/serverConfig
  2. Specify the headers on the cURL command line:
    • -H X-Requested-By:MyClient

    • -H Accept:application/json

    • -H Content-Type:application/json

  3. Construct the GET request with the fields for administration protocol and production mode as shown in the following example.

    http://localhost:7001/management/weblogic/latest/serverConfig?fields=administrationProtocol,productionModeEnabled&links=self

The following sample shows the complete GET request for viewing the domain configuration details.

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/serverConfig?fields=administrationProtocol,productionModeEnabled&links=self

The GET request returns the following response:

HTTP/1.1 200 OK

Response Body:
{
    "links": [{
        "rel": "self",
        "href": "http:\//localhost:7001/management/weblogic/latest/serverConfig"
    }],
    "administrationProtocol": "t3s",
    "productionModeEnabled": false
}