Vincula nomes de host a um certificado CA de cliente especificado. Se você não especificar um certificado, os nomes de host serão vinculados ao certificado CA do ESA.
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. |
123456**** |
| Hostnames |
array |
Sim |
Uma lista de nomes de host. |
|
|
string |
Não |
Um nome de host. |
www.example.com |
|
| Id |
string |
Não |
O ID do certificado CA de cliente. |
babaabcd**** |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
O objeto de resposta. |
||
| SiteId |
integer |
O ID do site. Você pode obter o ID chamando a API ListSites. |
123456**** |
| SiteName |
string |
O nome do site. |
example.com |
| Id |
string |
O ID do certificado CA de cliente. |
babaabcd**** |
| Hostnames |
array |
Uma lista de nomes de host vinculados. |
|
|
string |
Um nome de host. |
www.example.com |
|
| RequestId |
string |
O ID da solicitação. |
34DCBC8A-****-****-****-6DAA11D7DDBD |
Exemplos
Resposta de sucesso
JSON formato
{
"SiteId": 0,
"SiteName": "example.com",
"Id": "babaabcd****",
"Hostnames": [
"www.example.com"
],
"RequestId": "34DCBC8A-****-****-****-6DAA11D7DDBD"
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | MissingSiteId | Required parameter SiteId missing. Specify SiteId and try again. | Required parameter SiteId missing. Specify SiteId and try again. |
| 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 | The specified parameter is invalid. | The specified parameter is invalid. |
| 400 | QuotaCheckFailed.Function | The feature is unavailable in your plan. Upgrade the plan or contact your account manager to request the feature. | The feature is unavailable in your plan. Upgrade the plan or contact your account manager to request the feature. |
| 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. |
| 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.