Modifies the DDoS defense policy of a forwarding rule.

Request parameters

Name Type Required Description
Ip String Yes The Anti-DDoS Pro IP to be operated.
LbId String Yes The policy change identifier.
FrontPort Integer Yes The forwarding port to be operated.
ConfigJson String Yes The configuration to be delivered. The format is JSON. For a structure description, see ConfigJson. For example, {"payload_len":{"min":0,"max":6000},"synproxy":"on","slimit":{"pps":0,"maxconn_enable":1,"bps":0,"maxconn":124,"cps":123,"cps_enable":1},"sla":{"pps":0,"maxconn_enable":1,"outbps":536870912,"cps":125,"maxconn":1226,"inbps":0,"cps_enable":1},"nodata_conn":"off"}.
Table 1. ConfigJson
Name Type Required Description
check Object Yes The DDoS defense policy. For a structure description, see Config.
Note The name of this parameter begins with a lower case letter.
Table 2. Config
Name Type Required Description
PayloadLength Object Yes Filters packets by length. Packets that do not meet the minimum or maximum length requirements are discarded.
PersistenceTimeout Integer Yes The session timeout value, in seconds.
NoDataConn String Yes The status of false source monitoring for TCP-based rules. Value:
SynProxy String Yes The status of null session connection monitoring. Value:
Sla Object Yes The destination IP limits. For a structure description, see Sla.
Slimit Object Yes The source IP limits. For a structure description, see Slimit.
Table 3. Sla
Name Type Required Description
MaxConnEnable Integer Yes Determines whether to limit the concurrent connection speed for the destination IP. Value:
  • 0: no
  • 1: yes
Maxconn Integer Yes The maximum number of concurrent connections to the destination IP.
CpsEnable Integer Yes Determines whether to limit the new connection speed for the destination IP. Value:
  • 0: no
  • 1: yes
Cps Integer Yes The maximum number of new connections per second to the destination IP.
Table 4. Slimit
Name Type Required Description
MaxConnEnable Integer Yes Determines whether to limit the concurrent connection speed for the source IP. Value:
  • 0: no
  • 1: yes
MaxConn Integer Yes The maximum number of concurrent connections to the source IP.
CpsEnable Integer Yes Determines Whether to limit the new connection speed for the source IP. Value:
  • 0: no
  • 1: yes
Cps Integer Yes The maximum number of new connections per second to the source IP.

Response parameters

Name Type Description
RequestId String The unique identifier (ID) for this request.

Example

Request example
https://ddospro.cn-hangzhou.aliyuncs.com/?Action=ModifyHealthCheckConfig
&Ip=1.1.1.1
&FrontPort=255
&LbId=xxxxxxx-xxxx-xxxx-xxxxxxxx
&ConfigJson={"payload_len":{"min":0,"max":6000},"synproxy":"on","slimit":{"pps":0,"maxconn_enable":1,"bps":0,"maxconn":124,"cps":123,"cps_enable":1},"sla":{"pps":0,"maxconn_enable":1,"outbps":536870912,"cps":125,"maxconn":1226,"inbps":0,"cps_enable":1},"nodata_conn":"off"}
&public parameters
Response example
  • JSON format
    {
    	"RequestId": "C33EB3D5-AF96-43CA-9C7E-37A81BC06A1E"
    }