Updated on 2023-11-24 GMT+08:00

Obtaining the SSL Certificate Download Address

API Description

This API is used to obtain the SSL certificate download address.

URI

  • URI format

    GET https://{Endpoint}/v3/{project_id}/instances/{instance_id}/ssl-cert/download-link

  • URI example
    https://dds.cn-north-1.myhuaweicloud.com/v3/619d3e78f61b4be68bc5aa0b59edcf7b/instances/e73893ef73754465a8bd2e0857bbf13ein02/ssl-cert/download-link
    Table 1 Request parameters

    Name

    Mandatory

    Type

    Description

    X-Auth-Token

    Yes

    String

    User token obtained from IAM. For details, see Authentication.

    project_id

    Yes

    String

    Project ID of a tenant in a region. Obtain the project ID by following the instructions in Obtaining a Project ID.

    instance_id

    Yes

    String

    Instance ID, which can be obtained by calling the API described in Querying Instances and Details. If you do not have an instance, call the API described in Creating a DB Instance to create one.

Requests

None

Responses

  • Parameter description
    Table 2 Response body parameters

    Name

    Type

    Description

    certs

    Array of Table 3 objects

    Certificate list.

    Table 3 CertInfo

    Name

    Type

    Description

    category

    String

    Certificate type. Enumerated values:

    • international
    • national

    download_link

    String

    Certificate download link.

  • Example response
    { 
      "certs" : [ { 
        "category" : "international", 
        "download_link" : "https://obs.xxx.myhuaweicloud.com/xxx/dds/ca-dds.crt" 
      } ] 
    }

Status Code

For details, see Status Code.

Error Code

For details, see Error Code.