Create A New WLDF System Resource Control Runtime By Uploading Its XML Descriptor File

post

/management/weblogic/{version}/serverRuntime/WLDFRuntime/WLDFControlRuntime/systemResourceControls

Create a WLDF system resource control by uploading its xml descriptor file.

This method supports both asynchronous and best effort synchronous invocations. The behavior is controlled by the 'Prefer' header.

Request

Supported Media Types
Path Parameters
Header Parameters
  • The 'Prefer' header parameter can be used to specify the preference on how this method runs. A value of 'respond-async' specifies a preference to submit the request and return immediately without waiting for completion. Alternatively a value of 'wait=#seconds' specifies a preference to wait for #seconds for method completion before returning. If the Prefer header is not specified or invalid, then a 300 second wait will be used.
  • The 'X-Requested-By' header is used to protect against Cross-Site Request Forgery (CSRF) attacks. The value is an arbitrary name such as 'MyClient'.
Form Parameters
  • The xml descriptor file to upload.

  • A WLDFSystemResourceControlRuntime model containing the rest of the information needed to create the new WLDF system resource control.

    This string parameter must contain a JSON object matching the following schema:

    {
        "type":"object",
        "properties":{
            "enabled":{
                "type":"boolean",
                "description":"is the descriptor enabled"
            },
            "name":{
                "readOnly":true,
                "x-weblogic-unharvestable":true,
                "type":"string",
                "description":"The name of this configuration. WebLogic Server uses an MBean to implement and persist the configuration."
            },
            "type":{
                "readOnly":true,
                "x-weblogic-unharvestable":true,
                "type":"string",
                "description":"Returns the type of the MBean."
            }
        }
    }
Security
  • Type: basic
    Description: A user in the Admin security role.
Back to Top

Response

201 Response

Back to Top

Examples

serverRuntime/WLDFRuntime/WLDFControlRuntime/systemResourceControls

This example shows how to create a WLDF system resource control by using a multi part form to upload the descriptor.

Example Request
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:multipart/form-data \
-F "model={
        name: 'myWLDFSystemResource',
        enabled: true
    }" \
-F "descriptor=@/descriptors/systemResourceControl-1.xml" \
-X POST http://localhost:7001/management/weblogic/latest/serverRuntime/WLDFRuntime/WLDFControlRuntime/systemResourceControls
Example Response
HTTP/1.1 100 Continue HTTP/1.1 201 Created

Location: http://localhost:7001/management/weblogic/latest/serverRuntime/WLDFRuntime/WLDFControlRuntime/systemResourceControls/myWLDFSystemResource

Response Body:
{}
Back to Top