This operation enables or disables the SSL certificate feature for a domain name and updates certificate information.
Operation description
-
This operation is available only in the China (Shanghai) region.
-
The rate limit for this operation is 30 calls per second per user.
-
The request method is POST.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:SetVodDomainSSLCertificate |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DomainName |
string |
Yes |
The accelerated domain name for ApsaraVideo VOD. |
example.com |
| CertName |
string |
No |
The name of the certificate. |
cert_name |
| CertId |
integer |
No |
The ID of the certificate. |
12342707 |
| CertType |
string |
No |
The type of the certificate.
|
cas |
| SSLProtocol |
string |
Yes |
Specifies whether to enable the HTTPS certificate. Valid values:
|
off |
| SSLPub |
string |
No |
The content of the security certificate. You must specify this parameter to configure a certificate. You do not need to specify this parameter if you disable the certificate. |
**** |
| SSLPri |
string |
No |
The content of the private key. You must specify this parameter to configure a certificate. You do not need to specify this parameter if you disable the certificate. |
**** |
| CertRegion |
string |
No |
The region of the certificate. Valid values:
The default value is cn-hangzhou. |
cn-hangzhou |
| Env |
string |
No |
Specifies whether to enable grayscale release for the certificate. Valid value: staging: enables grayscale release. If you do not set this parameter or set it to another value, the certificate is officially released. |
staging |
Response parameters
|
Parameter |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
F4C6D5BE-BF13-45*****6C-516EA8906DCD |
Examples
Success response
JSON format
{
"RequestId": "F4C6D5BE-BF13-45*****6C-516EA8906DCD"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidSSLProtocol.ValueNotSupported | The specified SSLProtocol is invalid. | |
| 400 | SSLPub.MissingParameter | The SSLPub parameter is required. | |
| 400 | SSLPri.MissingParameter | The SSLPri parameter is required. | |
| 400 | InvalidSSLPub | The specified SSLPub is invalid. | |
| 400 | InvalidSSLPri | The specified SSLPri is invalid. | |
| 400 | Certificate.MissMatch | The SSLPri does not match the certificate. | |
| 400 | InvalidCertificate.TooLong | The maximum length of the certificate is exceeded. | |
| 400 | InvalidCertName.TooLong | The length of the certificate name cannot exceed 128 characters. | |
| 400 | AuthenticationFailed | Error performing verification. | |
| 400 | SetDomainCertificate.ParameterError | The specified parameters are invalid. | |
| 400 | Certificate.StatusError | The status of the certificate is invalid. | |
| 400 | DeleteFailed | Error deleting the certificate. | |
| 400 | Certificate.NotFind | The certificate does not exist. | |
| 400 | Certificate.Duplicated | The certificate name already exists. | |
| 400 | Certificate.FormatError | The format of the certificate is invalid. | |
| 400 | Certificate.KeyNull | The private key is required. | |
| 400 | Key.Malformed | The specified Key format is invalid. | |
| 400 | CertStorage.failed | Error saving the certificate. | |
| 400 | CertificateContent.Duplicated | The certificate has been uploaded; do not upload again. | |
| 400 | Certificate.Expired | The certificate has expired. | |
| 400 | InvalidDomain.notOnline | The domain is offline. Check the status of the domain and try again later. | |
| 400 | Decode.Error | Error decoding the SSLPub or SSLPri certificate. | |
| 400 | sslPub.Error | Error encoding SSLPub. | |
| 400 | sslPri.Error | Error encoding SSLPri. | |
| 400 | DomainInSafeMode | The domain is in safe mode. To request permission, contact Customer Service. | |
| 400 | CreateCertificateFailed | Create certificate failed,please try again. | |
| 400 | Abs.CertRegion.ValueNotSupported | CertRegion is not supported. | |
| 400 | CertNameAlreadyExists | The CertName already exists. | |
| 400 | InvalidDomain.Offline | The domain provided is offline. | |
| 400 | DomainOwnerVerifyFail | Owner verification of the root domain failed. | Failed to verify domain ownership. |
| 403 | DomainInProtectedMode | The domain is in protection mode. To request permission, contact Customer Service. | |
| 404 | CertName.MissingParameter | You must specify CertName. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.