Mengunggah sertifikat CA server asal.
Deskripsi operasi
Anda dapat menambahkan beberapa origin ke sebuah situs. Edge Security Acceleration (ESA) mendukung berbagai jenis origin, termasuk nama domain, alamat IP, OSS, dan S3. Autentikasi origin didukung untuk origin OSS atau S3.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
esa:UploadOriginCaCertificate |
create |
*Site
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| SiteId |
integer |
Yes |
ID situs. Anda dapat memanggil operasi ListSites untuk mendapatkan ID ini. |
1234567890*** |
| Certificate |
string |
Yes |
Konten sertifikat CA. |
-----BEGIN CERTIFICATE----- |
| Name |
string |
No |
Nama sertifikat. |
example |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Objek respons. |
||
| RequestId |
string |
ID permintaan. |
EEEBE525-F576-1196-8DAF-2D70CA3F4D2F |
| Id |
string |
ID sertifikat. |
babaabcd**** |
| Status |
string |
Status sertifikat. |
OK |
| CommonName |
string |
Nama umum (common name) dari sertifikat. |
www.example.com |
| NotBefore |
string |
Waktu mulai masa berlaku sertifikat. |
2023-12-01T02:13:07Z |
| NotAfter |
string |
Waktu akhir masa berlaku sertifikat. |
2024-12-01T02:13:07Z |
| Issuer |
string |
Penerbit sertifikat. |
GlobalSign nv-sa |
| SerialNumber |
string |
Nomor seri sertifikat. |
babaded901474b9693acf530e0fb1daa |
| FingerprintSha256 |
string |
Sidik jari SHA-256 dari sertifikat. |
1dc5fc9af4eead2570c70d94b416130baeb6d4429b51fd3557379588456aca66 |
| SignatureAlgorithm |
string |
Algoritma tanda tangan dari sertifikat. |
SHA256-RSA |
| ValidityDays |
string |
Masa berlaku sertifikat dalam hari. |
365 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "EEEBE525-F576-1196-8DAF-2D70CA3F4D2F\n",
"Id": "babaabcd****",
"Status": "OK",
"CommonName": "www.example.com ",
"NotBefore": "2023-12-01T02:13:07Z",
"NotAfter": "2024-12-01T02:13:07Z",
"Issuer": "GlobalSign nv-sa",
"SerialNumber": "babaded901474b9693acf530e0fb1daa",
"FingerprintSha256": "1dc5fc9af4eead2570c70d94b416130baeb6d4429b51fd3557379588456aca66",
"SignatureAlgorithm": "SHA256-RSA",
"ValidityDays": "365"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Certificate.StatusError | The status of the certificate is invalid. | The specified certificate status is invalid. |
| 400 | InvalidParameter.SiteId | Failed to query the website based on the SiteID you specified. Check parameter SiteId and try again. | Failed to query the website based on the SiteID you specified. Check parameter SiteId and try again. |
| 400 | MissingSiteId | Required parameter SiteId missing. Specify SiteId and try again. | Required parameter SiteId missing. Specify SiteId and try again. |
| 400 | QuotaCheckFailed.Function | The feature is unavailable in your plan. Upgrade the plan or contact your account manager to request the feature. | The feature is unavailable in your plan. Upgrade the plan or contact your account manager to request the feature. |
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | Failed to call the service. Try again later or contact technical support. |
| 400 | InvalidParameter | The specified parameter is invalid. | The specified parameter is invalid. |
| 403 | Unauthorized.InvalidTime | The specified authentication time is invalid. | The authentication time parameter you entered is invalid. Check the parameter value and try again. |
| 403 | Unauthorized.InvalidToken | Token authentication failed. | The token you entered is invalid. Please check and enter the correct token and try again. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.