Configure HTTP MPS

Use the REST API endpoint below to configure the HTTP message counter.

URL Syntax

/management/weblogic/latest/edit/customResources/sipserver/customResource/HTTPMPSConfig

HTTP Methods

  • GET
  • POST

Parameters

Table 17-17 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:
.../HTTPMPSConfig?links=parent
fields Set to an enumerated list of the fields to return. For example:
.../HTTPMPSConfig?links=none&fields=HTTPMPSLimit

Examples

Example 17-45 Get the HTTP MPS details

curl -u 'weblogic:<password>' \
    "http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/sipserver/customResource/HTTPMPSConfig"

Example response:

{
  "links": [
    {
      "rel": "parent",
      "href": "http://127.0.0.1:7001/management/weblogic/latest/serverConfig/customResources/sipserver/customResource"
    },
    {
      "rel": "self",
      "href": "http://127.0.0.1:7001/management/weblogic/latest/serverConfig/customResources/sipserver/customResource/HTTPMPSConfig"
    },
    {
      "rel": "canonical",
      "href": "http://127.0.0.1:7001/management/weblogic/latest/serverConfig/customResources/sipserver/customResource/HTTPMPSConfig"
    }
  ],
  "identity": [
    "customResources",
    "sipserver",
    "customResource",
    "HTTPMPSConfig"
  ],
  "excludedRequestPaths": " ",
  "licenseWarningThreshold": 80,
  "name": null,
  "includedRequestPaths": "*",
  "historicHTTPPersistenceInterval": 12,
  "HTTPBreachInfo": "Threshold limit crossed during period Tue Jul 14 18:47:30 IST 2026  and  Tue Jul 14 18:52:30 IST 2026",
  "HTTPMPSLimit": 200
}

Example 17-46 Create a custom resource

Send a POST request to create a custom HTTPMPSConfig.

curl -X POST \
    -u 'weblogic:<password>' \
    -d@config.json \
    -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/sipserver/customResource/HTTPMPSConfig"

The contents of config.json:

{
    "HTTPMPSLimit": 1000,
    "historicHTTPPersistenceInterval": 24,
    "HTTPBreachInfo": " ",
    "licenseWarningThreshold": 75,
    "includedRequestPaths": "*",
    "excludedRequestPaths": "/rest/api/*"
}