Configure Media Overload Protection
Use this REST API endpoint to define or update specific resource thresholds (like CPU or memory) for media overload protection, helping the Media Gateway automatically detect and respond to high-load conditions to maintain service reliability.
URL Syntax
/management/weblogic/latest/edit/customResources/IntelligentMediaConnector/customResource/mediaOverLoadProtection/resourceThresholds/resourceThreshold
HTTP Methods
- GET
- POST
- DELETE
Parameters
Table 17-25 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:
|
Examples
Example 17-74 Get all media overload protection settings
curl -u 'weblogic:<password>' \
"http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/IntelligentMediaConnector/customResource/mediaOverLoadProtection/resourceThresholds/resourceThreshold?links=none"
Example response:
{
"items": [
{
"identity": [
"customResources",
"IntelligentMediaConnector",
"customResource",
"mediaOverLoadProtection",
"resourceThresholds",
"resourceThreshold",
"CPU"
],
"min": 40,
"max": 90,
"resourceName": "CPU"
},
{
"identity": [
"customResources",
"IntelligentMediaConnector",
"customResource",
"mediaOverLoadProtection",
"resourceThresholds",
"resourceThreshold",
"StreamCount"
],
"min": 40,
"max": 90,
"resourceName": "StreamCount"
}
]
}
Example 17-75 Get a specific resource threshold
curl -X GET -u 'weblogic:<password>' \
"http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/IntelligentMediaConnector/customResource/mediaOverLoadProtection/resourceThresholds/resourceThreshold/CPU?links=none"
Example response body:
{
"identity": [
"customResources",
"IntelligentMediaConnector",
"customResource",
"mediaOverLoadProtection",
"resourceThresholds",
"resourceThreshold",
"CPU"
],
"min": 40,
"max": 90,
"resourceName": "CPU"
}
Example 17-76 Add a resource threshold
curl -X POST -u 'weblogic:<password>' \
-H "X-Requested-By: ConsoleBackendRestClient" \
-H "Content-Type: application/json" \
-d@memory.json \
"http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/IntelligentMediaConnector/customResource/mediaOverLoadProtection/resourceThresholds/resourceThreshold"
Example request body:
{
"min": 40,
"max": 90,
"resourceName": "Memory"
}
The responds with a 201 Created.
Example 17-77 Delete an RTP proxy
curl -X DELETE -u 'weblogic:<password>' \
-H "X-Requested-By: ConsoleBackendRestClient" \
"http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/IntelligentMediaConnector/customResource/mediaOverLoadProtection/resourceThresholds/resourceThreshold/Memory"
The responds with a 200 OK.