Downloading the SSL Certificate of an Instance
Function
This API is used to download the SSL certificate of an instance. This API is only supported by DCS Redis 6.0/7.0 instances.
URI
POST /v2/{project_id}/instances/{instance_id}/ssl-certs/download
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Project ID. For details, see Obtaining a Project ID. |
|
instance_id |
Yes |
String |
Instance ID. |
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
file_name |
String |
SSL certificate file name. |
|
link |
String |
Download link of the SSL certificate. |
|
bucket_name |
String |
Name of the OBS bucket for storing the SSL certificate. |
Status code: 400
|
Parameter |
Type |
Description |
|---|---|---|
|
error_msg |
String |
Definition: Error message. Range: N/A |
|
error_code |
String |
Definition: Error code. Range: For details, see Error Codes. |
|
error_ext_msg |
String |
Definition: Extended error information. This parameter is not used currently and is set to null. Range: N/A |
Status code: 500
|
Parameter |
Type |
Description |
|---|---|---|
|
error_msg |
String |
Definition: Error message. Range: N/A |
|
error_code |
String |
Definition: Error code. Range: For details, see Error Codes. |
|
error_ext_msg |
String |
Definition: Extended error information. This parameter is not used currently and is set to null. Range: N/A |
Example Requests
POST https://{dcs_endpoint}/v2/{project_id}/instances/{instance_id}/ssl-certs/download
Example Responses
Status code: 200
SSL certificate of the instance downloaded.
{
"bucket_name" : "bucket_name",
"file_name" : "file_name",
"link" : "https://{bucket_name}.{obs_endpoint}:443/{ssl-XXX}/{file_name}?AWSAccessKeyId=XXX&Expires=XXX&Signature=XXX"
}
Status code: 400
Invalid request.
{
"error_code" : "DCS.4201",
"error_msg" : "Do not support SSL."
}
Status code: 500
Internal service error.
{
"error_code" : "DCS.5010",
"error_msg" : "Failed to operate SSL in database."
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
SSL certificate of the instance downloaded. |
|
400 |
Invalid request. |
|
500 |
Internal service error. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot