Mengatur apakah fitur sertifikat diaktifkan untuk nama domain tertentu dan memperbarui informasi sertifikat.
Deskripsi operasi
-
Operasi ini saat ini hanya mendukung wilayah China East 2 (Shanghai).
-
Panggilan maksimum per pengguna: 30 panggilan per detik.
-
Metode permintaan: POST.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:SetVodDomainSSLCertificate |
update |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DomainName |
string |
Yes |
Nama domain yang dipercepat untuk ApsaraVideo VOD. |
example.com. |
| CertName |
string |
No |
Nama sertifikat. |
cert_name. |
| CertId |
integer |
No |
ID sertifikat. |
12342707 |
| CertType |
string |
No |
Tipe sertifikat. Nilai valid:
|
cas. |
| SSLProtocol |
string |
Yes |
Apakah akan mengaktifkan sertifikat HTTPS. Nilai valid:
|
off. |
| SSLPub |
string |
No |
Konten sertifikat keamanan. Jika Anda tidak mengaktifkan sertifikat, Anda tidak perlu menentukan parameter ini. Jika Anda mengonfigurasi sertifikat, masukkan konten sertifikat. |
**** |
| SSLPri |
string |
No |
Konten kunci privat. Jika Anda tidak mengaktifkan sertifikat, Anda tidak perlu menentukan parameter ini. Jika Anda mengonfigurasi sertifikat, masukkan konten kunci privat. |
**** |
| CertRegion |
string |
No |
Wilayah sertifikat. Nilai valid:
Nilai default: cn-hangzhou. |
cn-hangzhou. |
| Env |
string |
No |
Apakah akan mendistribusikan sertifikat di lingkungan rilis canary. Nilai valid:
Jika parameter ini tidak ditentukan atau diatur ke nilai lain, sertifikat didistribusikan secara formal. |
staging. |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
F4C6D5BE-BF13-45*****6C-516EA8906DCD. |
Contoh
Respons sukses
JSONformat
{
"RequestId": "F4C6D5BE-BF13-45*****6C-516EA8906DCD"
}
Kode kesalahan
|
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. | |
| 403 | DomainInProtectedMode | The domain is in protection mode. To request permission, contact Customer Service. | |
| 404 | CertName.MissingParameter | You must specify CertName. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.