Configure Server Debugging
Use the REST API endpoint below to configure server debugging. A GET
        request to the CreateForm URL retrieves both the default parameters and the
            create URL. Send a POST request to the create URL to
        create the child MBean.
               
URL Syntax
For the GET:
/management/weblogic/latest/edit/customResources/serverdebug/customResource/serverCreateForm
                  For the POST or DELETE:
/management/weblogic/latest/edit/customResources/serverdebug/customResource/serversHTTP Methods
- GET
 - POST
 - DELETE
 
Parameters
Table 17-16 URL Parameters
| Names | Description | 
|---|---|
| links | Set to none if you want to remove
                                the links from the response. Set to an enumerated list of the links
                                to return. For
                                example: | 
                           
| fields | Set to an enumerated list of the fields to return.
                                For
                                example: | 
                           
Examples
Example 17-48 Get the CreateForm
curl -u weblogic:<password> \
  'http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/serverdebug/customResource/serverCreateForm'
                  Example response:
{
    "links": [
        {
            "rel": "parent",
            "href": "http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/serverdebug/customResource"
        },
        {
            "rel": "self",
            "href": "http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/serverdebug/customResource/serverCreateForm"
        },
        {
            "rel": "canonical",
            "href": "http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/serverdebug/customResource/serverCreateForm"
        },
        {
            "rel": "create",
            "href": "http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/serverdebug/customResource/servers"
        }
    ],
    "name": null
}
                  Example 17-49 Create a custom resource
Send a POST request to create the server element.
curl -X POST \
  -d@config.xml \
  -u weblogic:<password> \
  -H 'X-Requested-By: MyClient' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  'http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/serverdebug/customResource/servers'
                  The contents of config.json:
{   
  "name": "AdminServer"
}
                  Example 17-50 Retrieve the created resource
After the resource has been created, send a GET request to view its links, attributes, and subcategories. The URL syntax is:
/management/weblogic/latest/edit/customResources/serverdebug/customResource/servers/<name>
                  For example:
curl -u weblogic:<password> \
  'http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/serverdebug/customResource/servers/AdminServer'
                  An example response:
{
    "links": [
        {
            "rel": "parent",
            "href": "http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/serverdebug/customResource/servers"
        },
        {
            "rel": "self",
            "href": "http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/serverdebug/customResource/servers/AdminServer"
        },
        {
            "rel": "canonical",
            "href": "http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/serverdebug/customResource/servers/AdminServer"
        },
        {
            "rel": "debugAttributes",
            "href": "http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/serverdebug/customResource/servers/AdminServer/debugAttributes"
        },
        {
            "rel": "debugAttributeCreateForm",
            "href": "http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/serverdebug/customResource/servers/AdminServer/debugAttributeCreateForm"
        }
    ],
    "identity": [
        "customResources",
        "serverdebug",
        "customResource",
        "servers",
        "AdminServer"
    ],
    "name": "AdminServer"
}