Modifies an accelerated domain name.
Description
You can call this operation to modify an accelerated domain name. If the modified accelerated domain name is hosted in the Chinese mainland, you must obtain an ICP number for the domain name.
You cannot repeatedly call the UpdateDomain operation by using the same Alibaba Cloud account within a specific period of time.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | UpdateDomain | The operation that you want to perform. Set the value to UpdateDomain. |
RegionId | String | No | cn-hangzhou | The ID of the region where the GA instance is deployed. Set the value to cn-hangzhou. |
TargetDomain | String | Yes | example.com | The accelerated domain name to be modified. |
Domain | String | Yes | example.net | The new accelerated domain name. Only the primary domain name can be added, such as |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 04F0F334-1335-436C-A1D7-6C044FE73368 | The request ID. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=UpdateDomain
&RegionId=cn-hangzhou
&TargetDomain=example.com
&Domain=example.net
Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<UpdateDomainResponse>
<RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>
</UpdateDomainResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "04F0F334-1335-436C-A1D7-6C044FE73368"
}
Error codes
For a list of error codes, see Service error codes.