Enables or disables CNAME reuse for a website.
Debugging
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:
|
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. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=ModifyCnameReuse
&Domain=www.aliyun.com
&Enable=1
&<Common request parameters>
Sample success responses
XML
format
<ModifyCnameReuseResponse>
<RequestId>0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc</RequestId>
</ModifyCnameReuseResponse>
JSON
format
{
"RequestId":"0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc"
}
Error codes
For a list of error codes, visit the API Error Center.