Modifies a port forwarding rule, namely, the IP addresses of the origin server.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ConfigNetworkRules |
The operation that you want to perform. Set the value to ConfigNetworkRules. |
NetworkRules | String | Yes | [{"InstanceId":"ddoscoo-cn-mp91j1ao****","Protocol":"tcp","FrontendPort":8080,"BackendPort":8080,"RealServers":["1.1.1.1","2.2.2.2","3.3.3.3"]}] |
Details about the port forwarding rule. This parameter is a JSON string. The fields in the value are described as follows:
Note You can only modify the value of RealServers when you modify a port forwarding rule.
|
RegionId | String | No | cn-hangzhou |
The region ID of the instance. Valid values:
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | CC042262-15A3-4A49-ADF0-130968EA47BC |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=ConfigNetworkRules
&NetworkRules=[{"InstanceId":"ddoscoo-cn-mp91j1ao****","Protocol":"tcp","FrontendPort":8080,"BackendPort":8080,"RealServers":["1.1.1.1","2.2.2.2","3.3.3.3"]}]
&<Common request parameters>
Sample success responses
XML
format
<ConfigNetworkRulesResponse>
<RequestId>CC042262-15A3-4A49-ADF0-130968EA47BC</RequestId>
</ConfigNetworkRulesResponse>
JSON
format
{
"RequestId": "CC042262-15A3-4A49-ADF0-130968EA47BC"
}
Error codes
For a list of error codes, visit the API Error Center.