Enables or disables CNAME reuse for a website.

Note This API operation is suitable only for Anti-DDoS Premium.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ModifyCnameReuse

The operation that you want to perform. Set the value to ModifyCnameReuse.

Domain String Yes www.aliyun.com

The domain name of the website.

Note A forwarding rule must be configured for the domain name. You can call the DescribeDomains operation to query all domain names.
Enable Integer Yes 1

Specifies whether to enable CNAME reuse. Valid values:

  • 1: enables CNAME reuse.
  • 2: disables CNAME reuse.
RegionId String No ap-southeast-1

The region ID of the instance. Set the value to ap-southeast-1, which indicates an Anti-DDoS Premium instance.

ResourceGroupId String No default

The ID of the resource group to which the instance belongs in Resource Management. This parameter is empty by default, which indicates that the instance belongs to the default resource group.

Cname String No 4o6ep6q217k9****.aliyunddos0004.com

The CNAME record that you want to reuse for the website.

Response parameters

Parameter Type Example Description
RequestId String 0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc

The ID of the request.


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format


Error codes

For a list of error codes, visit the API Error Center.