Associe les noms d'hôte spécifiés à un certificat client d'origine.
Testez maintenant
Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale. Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale.
Test
Autorisation RAM
|
esa:SetOriginClientCertificateHostnames |
create |
*Site
|
Aucune | Aucune |
Paramètres de requête
|
Paramètre |
Type |
Requis |
Description |
Exemple |
| SiteId |
integer |
Oui |
L'identifiant du site. |
123456789**** |
| Id |
string |
Oui |
L'identifiant du certificat. |
babaabcd**** |
| Hostnames |
array |
Oui |
Les noms d'hôte à associer au certificat. |
|
|
string |
Non |
Un nom d'hôte. |
www.example.com |
Éléments de réponse
|
Élément |
Type |
Description |
Exemple |
|
object |
Schéma de la réponse. |
||
| RequestId |
string |
L'identifiant de la requête. |
15C66C7B-671A-4297-9187-2C4477247A74 |
| Id |
string |
L'identifiant du certificat. |
babaabcd**** |
| SiteName |
string |
Le nom du site. |
example.com |
| Hostnames |
array |
Les noms d'hôte associés au certificat. |
|
|
string |
Un nom d'hôte dans la liste. |
www.example.com |
|
| SiteId |
integer |
L'identifiant du site. |
123456789**** |
Exemples
JSON format
{
"RequestId": "15C66C7B-671A-4297-9187-2C4477247A74",
"Id": "babaabcd****",
"SiteName": "example.com",
"Hostnames": [
"www.example.com"
],
"SiteId": 0
}
Codes d'erreur
|
Code de statut HTTP |
Code d'erreur |
Message d'erreur |
Description |
|---|---|---|---|
| 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. |
Consultez Codes d'erreur pour la liste complète.
Notes de version
Consultez Notes de version pour la liste complète.