Enables Anti-DDoS Pro for a domain name.

Request parameters

Name Type Required Description
Domain String Yes The domain name to be protected.
Ips List Yes The list of Anti-DDoS Pro IP addresses to associate with the domain name.
RealServer List Yes The list of origin servers. Depending on the value of Type, you can specify an IP address or domain name for the origin server.
Type String Yes The origin server type. Value:
  • IP
  • DOMAIN
CcEnable Boolean Yes Determines whether to enable HTTP flood protection for the domain name.
ProxyType List Yes The list of supported protocol types. Valid value:
  • http
  • https
  • websocket
  • websockets

Response parameters

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

Example

Request example
https://ddospro.cn-hangzhou.aliyuncs.com/?Action=CreateDomain
&Domain=www.aliyun.com
&Ips=["1.1.1.1", "2.2.2.2"]
&RealServer=["1.1.1.1", "2.2.2.2"]
&Type=IP
&CcEnable=true
&ProxyType=["http", "https"]
&public parameters
Response example
  • JSON format
    {
    	"RequestId": "C33EB3D5-AF96-43CA-9C7E-37A81BC06A1E"
    }