Solicita um certificado gratuito.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
esa:ApplyCertificate |
create |
*Site
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| SiteId |
integer |
Sim |
O ID do site. |
1234567890123 |
| Domains |
string |
Sim |
Uma lista de nomes de domínio separados por vírgulas. |
www.example.com,blog.example.com |
| Type |
string |
Não |
O tipo de certificado. Valores válidos: lets_encrypt para um certificado Let's Encrypt, digicert_single para um certificado de domínio único Digicert e digicert_wildcard para um certificado curinga Digicert. Valores válidos:
|
lets_encrypt |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
O objeto de resposta. |
||
| SiteName |
string |
O nome do site. |
example.com |
| TotalCount |
integer |
O número total de certificados solicitados, que corresponde ao número de nomes de domínio fornecidos na solicitação. |
2 |
| Result |
array<object> |
Uma lista de detalhes da solicitação para cada certificado gratuito. |
|
|
object |
Os detalhes de uma solicitação de certificado gratuito. |
||
| Domain |
string |
O nome de domínio do certificado. |
*.example.com |
| Status |
string |
O status da solicitação do certificado. |
Applying |
| Id |
string |
O ID do certificado. |
30000478 |
| RequestId |
string |
O ID da solicitação. |
156A6B-677B1A-4297B7-9187B7-2B44792 |
Exemplos
Resposta de sucesso
JSON formato
{
"SiteName": "example.com ",
"TotalCount": 2,
"Result": [
{
"Domain": "*.example.com ",
"Status": "Applying",
"Id": "30000478"
}
],
"RequestId": "156A6B-677B1A-4297B7-9187B7-2B44792"
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 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 | 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. |
| 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. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.