Domain name for API request: teo.intl.tencentcloudapi.com.
When applying for a free certificate, if you need to apply through DNS delegation verification or file verification, you can call this API to initiate the certificate application and get the corresponding verification content based on the application method. The order in which to call the API is as follows:
Step 1: Call ApplyFreeCertificate to specify the verification method for the free certificate application and obtain the verification content.
Step 2: Configure the content for the corresponding domain as required for verification.
Step 3: Call CheckFreeCertificateVerification for verification. The free certificate application is completed after verification passes.
Step 4: Call ModifyHostsCertificate to configure the domain name certificate with an EdgeOne free certificate.
For the introduction to application methods, see the referenced document: Free Certificate Application Description (https://www.tencentcloud.com/document/product/1552/90437?from_cn_redirect=1)
Description:
-Only the CNAME access mode can call this API to specify the free certificate application method. The NS/DNSPod hosting access mode uses automatic validation to apply for a free certificate, with no need to call this API.
-If you need to switch the verification method for a free certificate, you can call this API again to update it by changing the VerificationMethod field.
-A domain name can only apply for one free certificate. After calling this API, the backend will trigger the free certificate application task. You need to complete the domain name verification info configuration within 2 days, and then complete certificate authentication.
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: ApplyFreeCertificate. |
| Version | Yes | String | Common Params. The value used for this API: 2022-09-01. |
| Region | No | String | Common Params. This parameter is not required. |
| ZoneId | Yes | String | Site ID. |
| Domain | Yes | String | Target domain name for free certificate application. |
| VerificationMethod | Yes | String | Verification methods for applying for a free certificate. For detailed verification method descriptions, see Free Certificate Application Method Documentation. Valid values: Note: After triggering this API, you need to complete the verification content configuration based on the returned verification information. Once configured, you also need to verify through the Check Free Certificate Application Result API. After verification passes, the application succeeds. Once the free certificate application is successful, you can call the Configure Domain Name Certificate API to deploy the free certificate for the current domain name. |
| Parameter Name | Type | Description |
|---|---|---|
| DnsVerification | DnsVerification | Verification information related to applying for a free certificate for the domain name when VerificationMethod is dns_challenge. |
| FileVerification | FileVerification | Verification information related to applying for a free certificate for the domain name when VerificationMethod is http_challenge. |
| 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. |
This example shows you how to apply for a free certificate for the domain name (abc.test.com) under the site (ZoneId is zone-2fgd17m17xw) using HTTP access file validation mode.
POST / HTTP/1.1
Host: teo.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ApplyFreeCertificate
<Common request parameters>
{
"ZoneId": "zone-2fgd17m17xw",
"Domain": "abc.test.com",
"VerificationMethod": "http_challenge"
}
{
"Response": {
"RequestId": "064a8c04-2d3e-4c9d-9473-39a8f76276ea",
"FileVerification": {
"Content": "9i8vhsvt9y8y3sx1s2d",
"Path": "/.well-known/teo-verification/yvnu7sesms"
}
}
}
This example shows you how to apply for a free certificate for the domain name (qwe.test.com) under the site (ZoneId is zone-2fgd17m17xw) using DNS delegation validation mode.
POST / HTTP/1.1
Host: teo.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ApplyFreeCertificate
<Common request parameters>
{
"ZoneId": "zone-2fgd17m17xw",
"Domain": "qwe.test.com",
"VerificationMethod": "dns_challenge"
}
{
"Response": {
"RequestId": "064a8c04-2d3e-4c9d-9473-39a8f76276ea",
"DnsVerification": {
"RecordType": "CNAME",
"RecordValue": "_acme-challenge",
"Subdomain": "www.example.com.edgeone.com"
}
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
There is no error code related to the API business logic. For other error codes, please see Common Error Codes.
Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários