Modifies the session persistence and DDoS mitigation policy settings for a port forwarding rule.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-ddoscoo:ModifyNetworkRuleAttribute |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the Anti-DDoS Pro or Anti-DDoS Premium instance. Note
Call DescribeInstanceIds to query the IDs of all Anti-DDoS Pro and Anti-DDoS Premium instances. |
ddoscoo-cn-mp91j1ao**** |
| ForwardProtocol |
string |
Yes |
The forwarding protocol. Valid values:
|
tcp |
| FrontendPort |
integer |
Yes |
The forwarding port. |
8080 |
| Config |
string |
Yes |
The advanced settings for the port forwarding rule. Specify the settings as a JSON string. The structure is described below. The structure of `TcpConfig` is as follows:
The structure of `Sla` is as follows:
The structure of `Slimit` is as follows:
The structure of `PayloadLen` is as follows:
|
{"Slimit":{"CpsEnable":1,"MaxconnEnable":1,"Cps":1,"Maxconn":1},"Sla":{"CpsEnable":1,"MaxconnEnable":1,"Cps":100,"Maxconn":1000},"PayloadLen":{"Min":0,"Max":1500}} |
| Module |
string |
No |
The module for Layer 7 port support. The default value is sla. Valid value: sla: Speed Limit for Destination |
sla |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc |
Examples
Success response
JSON format
{
"RequestId": "0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.