LeakyBucketCallRateThreshold

The LeakyBucketCallRateThreshold REST API endpoint allows you to configure and manage leaky bucket call admission control settings—including rate limits and priority-based partitions—for regulating how different types of calls are admitted under Priority Call Handling.

URL Syntax

For a GET:

/management/weblogic/latest/serverConfig/customResources/prioritycallconfig/customResource/priorityLeakyBucketCallRateThreshold

For a POST:

/management/weblogic/latest/edit/customResources/prioritycallconfig/customResource/priorityLeakyBucketCallRateThreshold

HTTP Methods

  • GET
  • POST

Parameters

Table 17-20 URL Parameters for the customResource endpoint

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:
.../customResource/priorityLeakyBucketCallRateThreshold?links=none

Examples

Example 17-59 Get information for all Leaky Bucket call rate thresholds

curl -u 'weblogic:<password>' \
    "http://10.0.0.1:7001/management/weblogic/latest/serverConfig/customResources/prioritycallconfig/customResource/priorityLeakyBucketCallRateThreshold?links=none"

Example response:

{
  "items": [
    {
      "identity": [
        "customResources",
        "prioritycallconfig",
        "customResource",
        "priorityLeakyBucketCallRateThreshold",
        "45"
      ],
      "subLevelId": "45",
      "callsAcceptablePartition": 100,
      "breachErrorId": [
        "customResources",
        "prioritycallconfig",
        "customResource",
        "priorityErrorResponseConfig",
        "wlss.priority.call.violation.queue.maximum.wait.timeout"
      ],
      "callsAllowed": []
    }
  ]
}

Example 17-60 Get information for a single Leaky Bucket call rate threshold

curl -u 'weblogic:<password>' \
    "http://10.0.0.1:7001/management/weblogic/latest/serverConfig/customResources/prioritycallconfig/customResource/priorityLeakyBucketCallRateThreshold/45?links=none"

Expected response:

{
  "identity": [
    "customResources",
    "prioritycallconfig",
    "customResource",
    "priorityLeakyBucketCallRateThreshold",
    "45"
  ],
  "subLevelId": "45",
  "callsAcceptablePartition": 100,
  "breachErrorId": [
    "customResources",
    "prioritycallconfig",
    "customResource",
    "priorityErrorResponseConfig",
    "wlss.priority.call.violation.queue.maximum.wait.timeout"
  ],
  "callsAllowed": []
}

Example 17-61 Update information for a single Leaky Bucket call rate threshold

An example of updating the callsAcceptablePartition parameter.

curl -X POST --user weblogic:<password> \
  -H "X-Requested-By: MyClient" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"callsAcceptablePartition":"90"}' \
  "http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/prioritycallconfig/customResource/priorityLeakyBucketCallRateThreshold/45"

An example of updating the breachErrorId parameter.

curl -X POST --user weblogic:<password> \
  -H "X-Requested-By: MyClient" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"breachErrorId":[
            "customResources",
            "prioritycallconfig",
            "customResource",
            "priorityErrorResponseConfig",
            "wlss.threshold.violation.callrate.protection"
        ]
}' \
  "http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/prioritycallconfig/customResource/priorityLeakyBucketCallRateThreshold/45"