Domain name for API request: teo.intl.tencentcloudapi.com.
In CNAME access mode, you need to verify the ownership of the site or domain name. This API is used to trigger the verification. If the site passes ownership verification, no need to verify again when adding domains subsequently. For details, see Site/Domain Name Ownership Verification.
In NS access mode, you can also query through this API whether the NS server switch is successful. For details, see Modify DNS Server.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: VerifyOwnership. |
| Version | Yes | String | Common Params. The value used for this API: 2022-09-01. |
| Region | No | String | Common Params. This parameter is not required. |
| Domain | Yes | String | Site domain name or acceleration domain name under the site. |
| Parameter Name | Type | Description |
|---|---|---|
| Status | String | Ownership verification result. |
| Result | String | When the verification result is failed, this field will return the reason to help you troubleshoot the problem. |
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
Validate ownership of the domain test.example.com.
POST / HTTP/1.1
Host: teo.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: VerifyOwnership
<Common request parameters>
{
"Domain": "test.example.com"
}
{
"Response": {
"Status": "success",
"Result": "",
"RequestId": "9kl50bew-89ga-44f4-91ce-78125d53vd2a"
}
}
Validate ownership of the site example.com (site ID: zone-xxxxx).
POST / HTTP/1.1
Host: teo.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: VerifyOwnership
<Common request parameters>
{
"Domain": "example.com"
}
{
"Response": {
"Status": "fail",
"Result": "Parse xx to get the content of type xx: xx.\n Access http://xxx/.. Parse xx. Unable to connect"
"RequestId": "9kl50bew-89ga-44f4-91ce-78125d53vd2a"
}
}
Verify whether the DNS server of example.com has been switched successfully.
POST / HTTP/1.1
Host: teo.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: VerifyOwnership
<Common request parameters>
{
"Domain": "example.com"
}
{
"Response": {
"Status": "fail",
"Result": "The DNS server of the current domain is xxx, which does not match the expected server xxx"
"RequestId": "9kl50bew-89ga-44f4-91ce-78125d53vd2a"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Error Code | Description |
|---|---|
| InternalError.RouteError | Backend service routing address error. |
| OperationDenied.ResourceLockedTemporary | Currently there are parallel request operations that repel each other. Please try again later. |
| ResourceNotFound | The resource does not exist. |
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback