Mengambil atribut sertifikat SSL dari instance Hologres, termasuk status SSL dan waktu kedaluwarsa sertifikat.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hologram:GetCertificateAttribute |
get |
*Instance
|
None | None |
Sintaks permintaan
GET /api/v1/instances/{instanceId}/certificateAttribute 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 |
Isi respons. |
||
| requestId |
string |
ID permintaan. |
819A7F0F-2951-540F-BD94-6A41ECF0281F |
| CertificateAttributeDto |
object |
Atribut sertifikat. |
|
| enableSSL |
boolean |
Menentukan apakah SSL diaktifkan. |
true |
| expirationTime |
integer |
Stempel waktu UNIX saat sertifikat kedaluwarsa. |
1790583135000 |
| status |
string |
Status sertifikat. Valid values:
|
effective |
| Success |
boolean |
Menunjukkan apakah panggilan berhasil. |
true |
| ErrorCode |
string |
Kode kesalahan. |
null |
| ErrorMessage |
string |
Pesan kesalahan. |
null |
| HttpStatusCode |
string |
Kode status HTTP. |
200 |
Contoh
Respons sukses
JSONformat
{
"requestId": "819A7F0F-2951-540F-BD94-6A41ECF0281F",
"CertificateAttributeDto": {
"enableSSL": true,
"expirationTime": 1790583135000,
"status": "effective"
},
"Success": true,
"ErrorCode": "null",
"ErrorMessage": "null",
"HttpStatusCode": "200"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.