Updated on 2022-08-09 GMT+08:00

Downloading a Certificate

Function

This API is used to download a certificate.

This API will be discarded. You are advised to export a certificate by referring to Exporting a Certificate.

URI

  • URI format

    GET /v2/{project_id}/scm/cert/{cert_id}/cert_file

  • Parameter description

    Parameter

    Mandatory

    Type

    Description

    project_id

    Yes

    String

    Project ID.

    cert_id

    Yes

    String

    Certificate ID.

Requests

Request parameters

None

Responses

Certificate file, which is a compressed package with the .rar extension.

Examples

  • Example request

    None

  • Example response
    { 
        <Object Content>
    }

    or

    { 
       "error_code": "SCM.XXXX",  
       "error_msg": "XXXX"   
     }

Status Codes

Table 1 lists the normal status code returned by the API.
Table 1 Status code

Status Code

Status

Description

200

OK

Request processed successfully.

For details about error codes, see Error Codes