Mengambil sertifikat root SSL dari instance Hologres untuk koneksi SSL sisi klien.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hologram:GetRootCertificate |
none |
*Instance
|
None | None |
Sintaks permintaan
GET /api/v1/instances/{instanceId}/rootCertificate HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
No |
ID instance. Parameter ini wajib diisi. |
hgpostcn-cn-zpr3426vm002 |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
Tidak ada parameter yang diperlukan.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Body respons. |
||
| requestId |
string |
ID permintaan. |
819A7F0F-2951-540F-BD94-6A41ECF0281F |
| Data |
string |
Hasil permintaan. Nilainya adalah string JSON yang berisi sertifikat dalam format PEM. |
{ "rootCertificate": "BEGIN xxxx"} |
| Success |
boolean |
Menunjukkan apakah operasi berhasil. |
true |
| ErrorCode |
string |
Kode error. |
null |
| ErrorMessage |
string |
Pesan error. |
null |
| HttpStatusCode |
string |
Kode status HTTP. |
200 |
Contoh
Respons sukses
JSONformat
{
"requestId": "819A7F0F-2951-540F-BD94-6A41ECF0281F",
"Data": "{ \"rootCertificate\": \"BEGIN xxxx\"}",
"Success": true,
"ErrorCode": "null",
"ErrorMessage": "null",
"HttpStatusCode": "200"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.