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

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 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 in each call.

VerifyType String Yes dnsCheck

The verification method.

Response parameters

Parameter Type Example Description
Content String verify_dffeb6610035dcb77b413a59c32c****

The verification content.

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.