Files
doc-exports/docs/dcs/api-ref/DownloadSSLCert.html
chenjunjie 63188fad94 DCS API 20240705 version
Reviewed-by: Bobkova, Natalia <natalia.bobkova@t-systems.com>
Co-authored-by: chenjunjie <chenjunjie@huawei.com>
Co-committed-by: chenjunjie <chenjunjie@huawei.com>
2025-03-17 15:42:06 +00:00

9.7 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/7.0 instances.

URI

POST /v2/{project_id}/instances/{instance_id}/ssl-certs/download

Table 1 Path Parameters

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

Table 2 Response body parameters

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

Table 3 Response body parameters

Parameter

Type

Description

error_msg

String

Error message.

error_code

String

Error code.

error_ext_msg

String

Extended error information. This parameter is not used currently and is set to null.

Status code: 500

Table 4 Response body parameters

Parameter

Type

Description

error_msg

String

Error message.

error_code

String

Error code.

error_ext_msg

String

Extended error information. This parameter is not used currently and is set to null.

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.