Reviewed-by: Bobkova, Natalia <natalia.bobkova@t-systems.com> Co-authored-by: Chen, Junjie <chenjunjie@huawei.com> Co-committed-by: Chen, Junjie <chenjunjie@huawei.com>
9.9 KiB
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 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 |
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 |
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.