Verifies the ownership of a specified domain name.
Note The maximum number of times that each user can call this operation per second is 100.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | VerifyDomainOwner |
The operation that you want to perform. Set the value to VerifyDomainOwner. |
DomainName | String | Yes | example.com |
The domain name of which you want to verify the ownership. You can specify only one domain name. |
VerifyType | String | Yes | dnsCheck |
The verification method. Valid values:
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Content | String | verify_dffeb6610035dcb77b413a59c32c**** |
The verification result. Note This parameter is returned if the operation fails. The verification result is returned
if the operation succeeds.
|
RequestId | String | 34AB41F1-04A5-496F-8C8D-634BDBE6A9FB |
The ID of the request. |
Examples
Sample requests
http(s)://cdn.aliyuncs.com/?Action=VerifyDomainOwner
&DomainName=example.com
&VerifyType=dnsCheck
&<Common request parameters>
Sample success responses
XML
format
<VerifyDomainOwnerResponse>
<Content>verify_dffeb6610035dcb77b413a59c32c****</Content>
<RequestId>34AB41F1-04A5-496F-8C8D-634BDBE6A9FB</RequestId>
</VerifyDomainOwnerResponse>
JSON
format
{
"Content": "verify_dffeb6610035dcb77b413a59c32c****",
"RequestId": "34AB41F1-04A5-496F-8C8D-634BDBE6A9FB"
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | DomainOwnerVerifyFail | Owner verification of the root domain failed. | The error message returned because you must prove the ownership of the domain name before you can add it to Alibaba Cloud CDN. The first time a domain name is added to Alibaba Cloud CDN, you must prove the ownership of the domain name. You can prove the ownership by adding a DNS record or upload a verification file. |
For a list of error codes, visit the API Error Center.