Retrieves the root certificate.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
hologram:GetRootCertificate | none | *Instance
| None | None |
Request syntax
GET /api/v1/instances/{instanceId}/rootCertificate HTTP/1.1Path Parameters
Parameter | Type | Required | Description | Example |
instanceId | string | No | The instance ID. This parameter is required. | hgpostcn-cn-zpr3426vm002 |
Request parameters
Parameter | Type | Required | Description | Example |
No parameters required.
Response elements
Element | Type | Description | Example |
object | The response body. | ||
requestId | string | The ID of the request. | 819A7F0F-2951-540F-BD94-6A41ECF0281F |
Data | string | The result of the request. The value is a JSON string that contains the certificate in the PEM format. | { "rootCertificate": "BEGIN xxxx"} |
Success | boolean | Indicates whether the operation was successful. | true |
ErrorCode | string | The error code. | null |
ErrorMessage | string | The error message. | null |
HttpStatusCode | string | The HTTP status code. | 200 |
Examples
Success response
JSON format
{
"requestId": "819A7F0F-2951-540F-BD94-6A41ECF0281F",
"Data": "{ \"rootCertificate\": \"BEGIN xxxx\"}",
"Success": true,
"ErrorCode": "null",
"ErrorMessage": "null",
"HttpStatusCode": "200"
}Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.