Associa os nomes de host especificados a um certificado de cliente de origem.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
esa:SetOriginClientCertificateHostnames |
create |
*Site
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| SiteId |
integer |
Sim |
O ID do site. |
123456789**** |
| Id |
string |
Sim |
O ID do certificado. |
babaabcd**** |
| Hostnames |
array |
Sim |
Os nomes de host a serem associados ao certificado. |
|
|
string |
Não |
Um nome de host. |
www.example.com |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
Esquema da resposta. |
||
| RequestId |
string |
O ID da solicitação. |
15C66C7B-671A-4297-9187-2C4477247A74 |
| Id |
string |
O ID do certificado. |
babaabcd**** |
| SiteName |
string |
O nome do site. |
example.com |
| Hostnames |
array |
Os nomes de host associados ao certificado. |
|
|
string |
Um nome de host na lista. |
www.example.com |
|
| SiteId |
integer |
O ID do site. |
123456789**** |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "15C66C7B-671A-4297-9187-2C4477247A74",
"Id": "babaabcd****",
"SiteName": "example.com",
"Hostnames": [
"www.example.com"
],
"SiteId": 0
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 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 | MissingSiteId | Required parameter SiteId missing. Specify SiteId and try again. | Required parameter SiteId missing. Specify SiteId and try again. |
| 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. |
| 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 | Id.MissingParameter | The parameter Id is required. | The required parameter Id is missing. |
| 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. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.