LeakyBucketCallRateThreshold
The LeakyBucketCallRateThreshold REST API endpoint allows you to configure and manage leaky bucket call admission control settings—including rate limits and priority-based call categories—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-22 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: |
Examples
Example 17-58 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",
"All"
],
"callCategoryId": "All",
"maximumBucketFillPerCategory": 100,
"breachErrorId": [
"customResources",
"prioritycallconfig",
"customResource",
"priorityErrorResponseConfig",
"wlss.threshold.violation.callrate.protection"
],
"callsAllowed": []
}
]
}
Example 17-59 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/All?links=none"
Expected response:
{
"identity": [
"customResources",
"prioritycallconfig",
"customResource",
"priorityLeakyBucketCallRateThreshold",
"All"
],
"callCategoryId": "All",
"maximumBucketFillPerCategory": 100,
"breachErrorId": [
"customResources",
"prioritycallconfig",
"customResource",
"priorityErrorResponseConfig",
"wlss.threshold.violation.callrate.protection"
],
"callsAllowed": []
}
Example 17-60 Update information for a single Leaky Bucket call rate threshold
An example of updating the maximumBucketFillPerCategory parameter.
curl -X POST --user weblogic:<password> \
-H "X-Requested-By: MyClient" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"maximumBucketFillPerCategory":90}' \
"http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/prioritycallconfig/customResource/priorityLeakyBucketCallRateThreshold/All"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/All"