Configure l'activation de la fonctionnalité de certificat pour un nom de domaine spécifié et modifie les informations du certificat.
Description de l'opération
Actuellement, l'adresse du service ne prend en charge que la région Chine (Shanghai).
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
|
vod:SetVodDomainCertificate |
create |
*All Resource
|
Aucune | Aucune |
Paramètres de requête
|
Paramètre |
Type |
Requis |
Description |
Exemple |
| DomainName |
string |
Oui |
Le nom de domaine accéléré auquel le certificat appartient. Le nom de domaine doit être de type accélération HTTPS. |
example.com |
| CertName |
string |
Non |
Le nom du certificat. |
cert_name |
| SSLProtocol |
string |
Oui |
Indique si le certificat HTTPS doit être activé. Valeurs valides :
|
off |
| SSLPub |
string |
Non |
Le contenu du certificat de sécurité. Si vous n'activez pas le certificat, vous n'avez pas besoin de renseigner ce paramètre. Si vous configurez un certificat, saisissez le contenu du certificat. |
**** |
| SSLPri |
string |
Non |
Le contenu de la clé privée. Si vous n'activez pas le certificat, vous n'avez pas besoin de renseigner ce paramètre. Si vous configurez un certificat, saisissez le contenu de la clé privée. |
**** |
Éléments de réponse
|
Élément |
Type |
Description |
Exemple |
|
object |
|||
| RequestId |
string |
L'identifiant de la requête. |
04F0F334-1335-436C-****-6C044FE73368 |
Exemples
JSON format
{
"RequestId": "04F0F334-1335-436C-****-6C044FE73368"
}
Codes d'erreur
|
Code de statut HTTP |
Code d'erreur |
Message d'erreur |
Description |
|---|---|---|---|
| 400 | InvalidSSLProtocol.ValueNotSupported | The specified value of parameter SSLProtocol is not supported. | |
| 400 | SSLPub.MissingParameter | An input parameter "SSLPub" that is mandatory for processing the request is not supplied. | |
| 400 | SSLPri.MissingParameter | An input parameter "SSLPri" that is mandatory for processing the request is not supplied. | |
| 400 | InvalidSSLPub | The SSLPub you provided is malformed! | |
| 400 | InvalidSSLPri | The SSLPri you provided is malformed! | |
| 400 | Certificate.MissMatch | The SSLPri does not math the specified Certificate! | |
| 400 | InvalidCertificate.TooLong | The Certificate you provided is over the max length! | |
| 400 | InvalidCertName.TooLong | The Certificate name you provided is over the max length 128! | |
| 400 | Certificate.NotPermittedOff | Turn off certificate will change domain scheduling, please contact customer service | |
| 400 | Certificate.SetNotEffect | Certificate was successfully set but doesn't take effect for protecting current service. Please contact customer service. | |
| 400 | AuthenticationFailed | Authentication failed. | |
| 400 | SetDomainCertificate.ParameterError | Parameters have error. | |
| 400 | InvalidSSLPubOrInvalidSSLPri | The SSLPri or SSLPub you provided is malformed! | |
| 400 | Certificate.StatusError | Certificate is not exist or its status is error. | |
| 400 | DeleteFailed | Delete certificate is failed. | |
| 400 | Certificate.NotFind | Not find the certificate info. | |
| 400 | Certificate.Duplicated | The certificate name is duplicated. | The certificate name already exists. |
| 400 | Certificate.FormatError | The certificate format is error. | |
| 400 | Certificate.KeyNull | The private key is not null. | |
| 400 | Key.Malformed | The private key format is error. | |
| 400 | CertStorage.failed | The certificate storage failed. | |
| 400 | CertificateContent.Duplicated | The certificate is already uploaded, please don't upload again. | |
| 400 | Certificate.Expired | The certificate is expired. | |
| 400 | InvalidDomain.notOnline | The domain is not online, please check the domain status and try again later. | |
| 400 | Decode.Error | The certificate sslpub or sslpri decode error. | |
| 400 | sslPub.Error | The SSLPub encoded failed. | |
| 400 | sslPri.Error | The SSLPri encoded failed. | |
| 400 | DomainInSafeMode | This domain is in the safe mode. if you want to do this operation, please contact us! | |
| 400 | DomainInProtectedMode | This domain is in the protected mode. if you want to do this operation, please contact us! | |
| 403 | IllegalOperation | Illegal domain operate is not permitted. | |
| 403 | ServiceBusy | The specified Domain is configuring, please retry later |
Consultez Codes d'erreur pour la liste complète.
Notes de version
Consultez Notes de version pour la liste complète.