This API is used to download the SSL certificate of an instance. This API is only supported by DCS Redis 6.0 instances.
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. |
None
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 |
Error message. Maximum: 1024 |
error_code |
String |
Error code. Maximum: 9 |
error_ext_msg |
String |
Extended error information. This parameter is not used currently and is set to null. Maximum: 1024 |
Status code: 500
Parameter |
Type |
Description |
---|---|---|
error_msg |
String |
Error message. Maximum: 1024 |
error_code |
String |
Error code. Maximum: 9 |
error_ext_msg |
String |
Extended error information. This parameter is not used currently and is set to null. Maximum: 1024 |
POST https://{dcs_endpoint}/v2/{project_id}/instances/{instance_id}/ssl-certs/download
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 Code |
Description |
---|---|
200 |
SSL certificate of the instance downloaded. |
400 |
Invalid request. |
500 |
Internal service error. |
See Error Codes.