Mengonfigurasi apakah fitur sertifikat diaktifkan untuk nama domain dan mengubah informasi sertifikat.
Deskripsi operasi
Dapatkan nama domain streaming langsung terlebih dahulu, lalu panggil operasi ini untuk mengonfigurasi apakah sertifikat diaktifkan untuk nama domain tersebut dan mengubah informasi sertifikat.
Batas QPS
Batas QPS per pengguna tunggal untuk operasi ini adalah 30 panggilan per detik. Jika batas terlampaui, panggilan API akan dibatasi (throttled), yang dapat memengaruhi bisnis Anda. Panggil operasi ini dengan tepat.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:SetLiveDomainCertificate |
update |
*Domain.
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DomainName |
string |
Yes |
Nama domain yang dipercepat tempat sertifikat berada. Nama domain bertipe akselerasi |
developer.aliyundoc.com. |
| CertName |
string |
No |
Nama sertifikat. |
Cert-**** |
| CertType |
string |
No |
Tipe sertifikat. Nilai valid:
Valid values:
|
free. |
| SSLProtocol |
string |
Yes |
Apakah akan mengaktifkan sertifikat HTTPS. Nilai valid:
|
off. |
| SSLPub |
string |
No |
Konten kunci publik. Catatan
Parameter ini hanya diperlukan jika SSLProtocol diatur ke on. |
**** |
| SSLPri |
string |
No |
Konten kunci privat. Catatan
Parameter ini hanya diperlukan jika SSLProtocol diatur ke on. |
**** |
| ForceSet |
string |
No |
Mengabaikan pemeriksaan duplikasi nama sertifikat dan menimpa informasi sertifikat yang ada dengan nama yang sama. Nilai tetap: 1. |
1 |
| DryRun |
boolean |
No |
Apakah akan melakukan dry run saja, tanpa benar-benar menjalankan operasi. Nilai valid:
Dry run memeriksa validitas parameter, izin RAM, dan status Sumber daya. Jika dry run gagal, kode kesalahan yang sesuai dikembalikan. Jika dry run berhasil, operasi tidak benar-benar dijalankan. |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
16A96B9A-F203-4EC5-8E43-CB92E68F4CD8 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "16A96B9A-F203-4EC5-8E43-CB92E68F4CD8"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
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 | IllegalOperationDomain | You are not authorized to operate the domain. | |
| 400 | Certificate.NotPermittedOff | Turn off certificate will change domain scheduling, please contact customer service | |
| 400 | Certificate.SettedNotEffect | Certificate was successfully setted but does't take effect for protecting current service, please contact customer service | |
| 400 | Certificate.NotFind | Not find the certificate info. | |
| 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.Duplicated | The certificate name is duplicated. | |
| 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! | |
| 400 | FunctionMutex | Function is mutex with other function. | |
| 400 | DomainOffline | The domain is not online, please check the domain status and try again later. | Nama domain tidak diaktifkan. Periksa status nama domain dan coba lagi. |
| 403 | IllegalOperation | Illegal domain operate is not permitted. | |
| 404 | CertName.MissingParameter | The CertName parameter is required. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.