Mengonfigurasi apakah fitur Sertifikat diaktifkan untuk Nama domain dan memperbarui informasi Sertifikat.
Deskripsi operasi
Batas laju per pengguna: 30 panggilan per detik.
Metode HTTP: POST.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cdn:SetCdnDomainSSLCertificate |
update |
*Domain.
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DomainName |
string |
Yes |
Nama domain yang dipercepat untuk mengonfigurasi Sertifikat. Nama domain harus menggunakan akselerasi aman HTTPS. Anda hanya dapat menentukan satu Nama domain. |
example.com |
| CertName |
string |
No |
Nama sertifikat. Anda hanya dapat menentukan satu nama sertifikat. Parameter ini bersifat opsional ketika CertType diatur ke upload. Parameter ini menentukan nama sertifikat baru. |
yourCertName |
| CertId |
integer |
No |
ID sertifikat. Parameter ini wajib diisi ketika CertType diatur ke cas. Parameter ini menentukan ID sertifikat yang sudah ada. |
8089870 |
| CertType |
string |
No |
Tipe sertifikat. Nilai valid:
Valid values:
|
upload |
| SSLProtocol |
string |
Yes |
Apakah akan mengaktifkan sertifikat HTTPS. Nilai valid:
|
off |
| SSLPub |
string |
No |
Konten sertifikat SSL. Parameter ini tidak wajib diisi jika sertifikat dinonaktifkan. Jika Anda mengonfigurasi sertifikat, Anda harus memasukkan konten sertifikat. |
xxx |
| SSLPri |
string |
No |
Konten kunci privat. Parameter ini tidak wajib diisi jika sertifikat dinonaktifkan. Jika Anda mengonfigurasi sertifikat, Anda harus memasukkan konten kunci privat. |
y**** |
| CertRegion |
string |
No |
Wilayah tempat sertifikat disimpan. Parameter ini hanya berlaku ketika CertType diatur ke cas. Nilai valid: cn-hangzhou dan ap-southeast-1. Nilai default: cn-hangzhou. Pengguna situs internasional harus menggunakan ap-southeast-1. Valid values:
|
cn-hangzhou |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
A7C69682-7F88-40DD-A198-10D0309E439D |
Contoh
Respons sukses
JSONformat
{
"RequestId": "A7C69682-7F88-40DD-A198-10D0309E439D\n"
}
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. | Parameter SSLPub tidak ada. |
| 400 | SSLPri.MissingParameter | The SSLPri parameter is required. | Parameter SSLPri tidak ada. |
| 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. | Parameter yang ditentukan tidak valid. |
| 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. | Format sertifikat tidak valid. |
| 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. | Wilayah sertifikat tidak didukung. |
| 400 | CertNameAlreadyExists | The CertName already exists. | Nama sertifikat yang ditentukan sudah ada. |
| 400 | InvalidDomain.Offline | The domain provided is offline. | Nama domain telah dinonaktifkan. |
| 400 | InvalidEnv | The specified Env is invalid. | Parameter yang ditentukan untuk penerapan sertifikat rilis canary tidak valid. |
| 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.