Sets priority for the Anti-DDoS Pro IPs that are associated with the same domain name.

Request parameters

Name Type Required Description
Domain String Yes The domain name to be operated.
Config String Yes The priority configuration of the Anti-DDoS Pro IPs associated with the domain name. The format is JSON. For a structure description, see Config. For example, [{"ip": "1.1.1.1", "priority": 50}].
Table 1. Config
Name Type Required Description
ip String Yes The Anti-DDoS Pro IP.
priority Integer Yes The priority value. Value range: 1-999. The smaller the value, the higher the priority.

Response parameters

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

Example

Request example
https://ddospro.cn-hangzhou.aliyuncs.com/?Action=ConfigSwitchPriority
&Domain=www.aliyun.com
&Config=[{"ip": "1.1.1.1", "priority": 50}]
&public parameters
Response example
  • JSON format
    {
    	"RequestId": "C33EB3D5-AF96-43CA-9C7E-37A81BC06A1E"
    }