This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.
Applies for a free SSL certificate.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
esa:ApplyCertificate | create | *Site acs:esa:{#regionId}:{#accountId}:site/{#SiteId} |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
SiteId | long | Yes | Site ID. | 1234567890123 |
Domains | string | Yes | List of domains, separated by commas. | www.example.com,blog.example.com |
Type | string | No | The certificate type. Valid values: lets_encrypt, digicert_single, and digicert_wildcard. | lets_encrypt |
Response parameters
Examples
Sample success responses
JSON
format
{
"SiteName": "example.com ",
"TotalCount": 2,
"Result": [
{
"Domain": "*.example.com ",
"Status": "Applying",
"Id": "30000478"
}
],
"RequestId": "156A6B-677B1A-4297B7-9187B7-2B44792"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | SiteNotFound | The specified site is not found. | The site you specified does not exist. Please check whether the site you entered is correct. |
400 | SiteNotActivated | The site is not activated, the process is not allowed. | The operation is not supported because the site is not activated. |
400 | MissingSiteId | Required parameter SiteId missing. Specify SiteId and try again. | Required parameter SiteId missing. Specify SiteId and try again. |
400 | InvalidParameter.Domains | You have already submitted a certificate application for the domain name. | You have already submitted a certificate application for the domain name. |
400 | InternalException | Failed to call the service. Try again later or contact technical support. | Failed to call the service. Try again later or contact technical support. |
400 | InvalidParameter.Domains | The maximum number of domain names specified by parameter Domains has been reached. Adjust your configurations and try again. The upper limit of lets.encrypt type domain name is 50, the upper limit of digicert.single type domain name is 10, and the upper limit of digicert.wildcard type domain name is 1. | The maximum number of domain names specified by parameter Domains has been reached. Adjust your configurations and try again. The upper limit of lets_encrypt type domain name is 50, the upper limit of digicert_single type domain name is 10, and the upper limit of digicert_wildcard type domain name is 1. |
400 | InvalidParameter.Domains | The domain specified in Domains parameter is not a valid domain name, please check and try again. | Domains there is an invalid domain name in the parameter, please check and try again. |
400 | InvalidParameter.Domains | One or more domain names specified by parameter Domains do not belong to the current website. Check and try again. | One or more domain names specified by parameter Domains do not belong to the current website. Check and try again. |
400 | QuotaCheckFailed | Failed to check free certificate Quota, please try again later. | Failed to check free certificate Quota, please try again later. |
400 | InvalidParameter.Type | The specified Type parameter is invalid, please check and try again. | The Type parameter you configured is incorrect. Please check and try again. Certificate application type support lets_encrypt, digicert_single, digicert_wildcard. |
400 | QuotaExceed.RecordCount | The maximum number of records has been reached. Delete some and try again or upgrade your plan. | The maximum number of records has been reached. Delete some and try again or upgrade your plan. |
400 | InvalidParameter.Domains | The site which is configured in CNAME mode does not support wildcard domain certificate application. | The CNAME site does not support applying for a free certificate for wildcard domain names. |
403 | Unauthorized.InvalidTime | The specified authentication time is invalid. | The authentication time parameter you entered is invalid. Check the parameter value and try again. |
403 | Unauthorized.InvalidToken | Token authentication failed. | The token you entered is invalid. Please check and enter the correct token and try again. |
403 | QuotaExceeded | The quota is exceeded. | The quota is exceeded. |
For a list of error codes, visit the Service error codes.