Ativa ou desativa o certificado de um nome de domínio e atualiza as informações do certificado.
Descrição da operação
-
Cada conta pode chamar esta operação até 30 vezes por segundo.
-
Método: POST.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
cdn:SetCdnDomainSSLCertificate |
update |
*Domain
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| DomainName |
string |
Sim |
O nome de domínio acelerado para o qual você deseja configurar o certificado SSL. O tipo de solicitação suportado pelo nome de domínio deve ser HTTPS. Você pode especificar apenas um nome de domínio em cada solicitação. |
example.com |
| CertName |
string |
Não |
O nome do certificado. Você pode especificar apenas um nome de certificado. Este parâmetro é opcional se você definir CertType como upload. |
yourCertName |
| CertId |
integer |
Não |
O ID do certificado. Este parâmetro é obrigatório se você definir CertType como cas. |
8089870 |
| CertType |
string |
Não |
O tipo do certificado. Valores válidos:
|
upload |
| SSLProtocol |
string |
Sim |
Especifica se o certificado SSL deve ser ativado.
|
off |
| SSLPub |
string |
Não |
O conteúdo do certificado. Especifique o conteúdo do certificado apenas se desejar ativar o certificado. |
xxx |
| SSLPri |
string |
Não |
A chave privada. Especifique a chave privada apenas se desejar ativar o certificado. |
y**** |
| CertRegion |
string |
Não |
A região do certificado. Este parâmetro entra em vigor apenas quando CertType é definido como cas. Valores válidos: cn-hangzhou e ap-southeast-1. Valor padrão: cn-hangzhou. ap-southeast-1 é recomendado para usuários no site internacional. Valores válidos:
|
cn-hangzhou |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| RequestId |
string |
O ID da solicitação. |
A7C69682-7F88-40DD-A198-10D0309E439D |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "A7C69682-7F88-40DD-A198-10D0309E439D\n"
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | InvalidSSLProtocol.ValueNotSupported | The specified SSLProtocol is invalid. | |
| 400 | SSLPub.MissingParameter | The SSLPub parameter is required. | |
| 400 | SSLPri.MissingParameter | The SSLPri parameter is required. | |
| 400 | InvalidSSLPub | The specified SSLPub is invalid. | |
| 400 | InvalidSSLPri | The specified SSLPri is invalid. | |
| 400 | Certificate.MissMatch | The SSLPri does not match the certificate. | |
| 400 | InvalidCertificate.TooLong | The maximum length of the certificate is exceeded. | |
| 400 | InvalidCertName.TooLong | The length of the certificate name cannot exceed 128 characters. | |
| 400 | AuthenticationFailed | Error performing verification. | |
| 400 | SetDomainCertificate.ParameterError | The specified parameters are invalid. | The specified parameter is invalid. |
| 400 | Certificate.StatusError | The status of the certificate is invalid. | |
| 400 | DeleteFailed | Error deleting the certificate. | |
| 400 | Certificate.NotFind | The certificate does not exist. | |
| 400 | Certificate.Duplicated | The certificate name already exists. | |
| 400 | Certificate.FormatError | The format of the certificate is invalid. | The specified certificate is invalid. |
| 400 | Certificate.KeyNull | The private key is required. | |
| 400 | Key.Malformed | The specified Key format is invalid. | |
| 400 | CertStorage.failed | Error saving the certificate. | |
| 400 | CertificateContent.Duplicated | The certificate has been uploaded; do not upload again. | |
| 400 | Certificate.Expired | The certificate has expired. | |
| 400 | InvalidDomain.notOnline | The domain is offline. Check the status of the domain and try again later. | |
| 400 | Decode.Error | Error decoding the SSLPub or SSLPri certificate. | |
| 400 | sslPub.Error | Error encoding SSLPub. | |
| 400 | sslPri.Error | Error encoding SSLPri. | |
| 400 | DomainInSafeMode | The domain is in safe mode. To request permission, contact Customer Service. | |
| 400 | CreateCertificateFailed | Create certificate failed,please try again. | |
| 400 | Abs.CertRegion.ValueNotSupported | CertRegion is not supported. | The certificate region is not supported. |
| 400 | CertNameAlreadyExists | The CertName already exists. | The certificate name already exists. |
| 400 | InvalidDomain.Offline | The domain provided is offline. | The domain name is disabled. |
| 400 | InvalidEnv | The specified Env is invalid. | The specified Env is invalid. |
| 403 | DomainInProtectedMode | The domain is in protection mode. To request permission, contact Customer Service. | |
| 404 | CertName.MissingParameter | You must specify CertName. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.