Cria ou atualiza uma configuração de servidor keyless.
Experimente agora
Testar
Autorização RAM
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| SiteId |
integer |
Sim |
O ID do site. Você pode obter este ID chamando a operação ListSites. |
123456**** |
| Host |
string |
Sim |
O nome de host do servidor keyless. O valor pode ser um nome de domínio ou um endereço IP. |
keyless.example.com |
| Port |
integer |
Sim |
A porta do servidor keyless. |
443 |
| Verify |
boolean |
Não |
Especifica se o certificado do servidor keyless deve ser verificado. Valor padrão: false. |
true |
| CaCertificate |
string |
Não |
O certificado CA usado para verificar o certificado do servidor keyless. Este parâmetro se aplica somente quando |
-----BEGIN CERTIFICATE-----**** |
| ClientCertificate |
string |
Não |
O certificado do cliente. Este parâmetro deve ser usado em conjunto com o parâmetro |
-----BEGIN CERTIFICATE-----**** |
| ClientPrivateKey |
string |
Não |
A chave privada do cliente. Este parâmetro deve ser usado em conjunto com o parâmetro |
-----BEGIN RSA PRIVATE KEY-----**** |
| Id |
string |
Não |
O ID do servidor keyless. |
baba39055622c008b90285a8838e**** |
| Name |
string |
Sim |
O nome do servidor keyless. |
example |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
O objeto de resposta. |
||
| RequestId |
string |
O ID da solicitação. |
34DCBC8A-****-****-****-6DAA11D7DDBD |
| Id |
string |
O ID do servidor keyless. |
babaabcd**** |
| SiteId |
integer |
O ID do site. |
123456**** |
| SiteName |
string |
O nome do site. |
example.com |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "34DCBC8A-****-****-****-6DAA11D7DDBD",
"Id": "babaabcd****",
"SiteId": 0,
"SiteName": "example.com"
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | Certificate.Duplicated | The certificate name already exists. | The certificate is duplicated. |
| 400 | InvalidParameter | The specified parameter is invalid. | The specified parameter is invalid. |
| 400 | InvalidCertificate.NotFound | The specified certificate does not match the website. Check the validity of the certificate and try again. | The specified certificate does not match the website. Check the validity of the certificate and try again. |
| 400 | PrivateKey.MissingParameter | The PrivateKey parameter is required. | Missing PrivateKey parameter. |
| 400 | Certificate.MissingParameter | The Certificate parameter is required. | Missing Certificate parameter. |
| 400 | InvalidParameter.SiteId | Failed to query the website based on the SiteID you specified. Check parameter SiteId and try again. | Failed to query the website based on the SiteID you specified. Check parameter SiteId and try again. |
| 400 | InvalidSSLPub | The specified Certificate is invalid. | The value specified for the Certificate parameter is invalid. |
| 400 | InvalidSSLPri | The specified PrivateKey is invalid. | The value specified for the PrivateKey parameter is invalid. |
| 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 | UpdateFreeCertificate.NotSupport | The free certificate does not support the update operation. | The free certificate does not support the update operation. |
| 400 | CertificateDomainNotMatchSite | The domain name in the specified certificate does not match the site. | The domain name in the certificate does not match the current site. |
| 400 | CertificateNotMatchPrivateKey | The specified certificate does not match the private key. | The specified certificate and private key do not match. |
| 400 | CertQuotaCheckFailed | The custom certificate quota verification failed. The number of uploaded certificates exceeds the upper limit allowed for the plan. | The custom certificate quota verification failed. The number of uploaded certificates exceeds the upper limit allowed for the plan. |
| 404 | Certificate.NotFound | The specified certificate does not exist. | The specified certificate does not exist. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.