PriorityThreshold
The priorityThreshold REST API endpoint provides access to enable and disable the leaky bucket call-rate threshold.
URL Syntax
For a GET:
/management/weblogic/latest/serverConfig/customResources/prioritycallconfig/customResource/priorityThreshold
For a POST:
/management/weblogic/latest/edit/customResources/prioritycallconfig/customResource/priorityThreshold
HTTP Methods
- GET
- POST
Parameters
Table 17-19 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-56 Get information for all priority thresholds
curl -u 'weblogic:<password>' \
"http://10.0.0.1:7001/management/weblogic/latest/serverConfig/customResources/prioritycallconfig/customResource/priorityThreshold?links=none"
Example response:
{
"items": [{
"identity": [
"customResources",
"prioritycallconfig",
"customResource",
"priorityThreshold",
"leaky-bucket-call-rate-threshold"
],
"evaluationOrder": 1,
"thresholdName": "leaky-bucket-call-rate-threshold",
"enabled": false
}]
}
Example 17-57 Get information for a single priority threshold
curl -u 'weblogic:<password>' \
"http://10.0.0.1:7001/management/weblogic/latest/serverConfig/customResources/prioritycallconfig/customResource/priorityThreshold/leaky-bucket-call-rate-threshold?links=none"
Expected response:
{
"identity": [
"customResources",
"prioritycallconfig",
"customResource",
"priorityThreshold",
"leaky-bucket-call-rate-threshold"
],
"evaluationOrder": 1,
"thresholdName": "leaky-bucket-call-rate-threshold",
"enabled": false
}
Example 17-58 Update information for a single priority threshold
curl -X POST --user weblogic:<password> \
-H "X-Requested-By: MyClient" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{enabled:true}' \
"http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/prioritycallconfig/customResource/priorityThreshold/leaky-bucket-call-rate-threshold"