Help Center/ Cloud Certificate Manager/ API Reference/ Historical APIs/ SCM APIs/ Reading the Information Entered When Applying for a Certificate
Updated on 2022-08-09 GMT+08:00

Reading the Information Entered When Applying for a Certificate

Function

This API is used to read the saved information about a certificate.

URI

  • URI format

    POST /v2/{project_id}/scm/cert/{cert_id}/read

  • Parameters

    Parameter

    Mandatory

    Type

    Description

    project_id

    Yes

    String

    Project ID.

    cert_id

    Yes

    String

    Certificate ID.

Request

Request parameters

None

Response

Response parameters

Parameter

Mandatory

Type

Description

domain_name

Yes

String

Domain name bound to a certificate.

Example: www.domain.com

sans

Yes

String

Additional domain names of a multi-domain certificate. Multiple domain names are separated by semicolons (;).

If a single-domain or wildcard domain certificate is applied for, the value of this parameter is empty.

CSR

Yes

String

Certificate signing request.

country

Yes

String

Country code. Example:

  • CN: China
  • US: United States

company_name

Yes

String

Company name.

company_unit

Yes

String

Department name

company_province

Yes

String

State or region where a company is located.

Example: Sichuan

company_city

Yes

String

City where a company is located.

Example: Chengdu

applicant_name

Yes

String

Applicant name.

Example: Tom

applicant_phone

Yes

String

Phone number of an applicant.

Example: 13412345678

applicant_email

Yes

String

Email of an applicant.

Example: example.huawei.com

contact_name

Yes

String

Name of a technical contact.

contact_phone

Yes

String

Phone number of a technical contact.

contact_email

Yes

String

Email of a technical contact.

bl

Yes

String

Whether the picture of bank account opening permit has been uploaded.

  • 0: The picture of bank account opening permit has not been uploaded.
  • 1: The picture of bank account opening permit has been uploaded.

tl

Yes

String

Whether the business license of the company has been uploaded.

0: The business license of the company has not been uploaded.

1: The business license of the company has been uploaded.

Example

  • Example request

    None

  • Example response
    {
        "domain_name": "www.xzz.com",
        "sans": "",
        "CSR": null,
        "country": "CN",
        "company_unit": "Human Resource Dept",
         "company_name": "Huawei Chengdu branch",
        "company_province": "Sichuan",
       "company_city": "Chengdu",
        "applicant_name": "Tom",
        "applicant_phone": "13245678932",
        "applicant_email": "1027342346@qq.com",
        "contact_name": "Jacky",
        "contact_phone": "13526456325",
        "contact_email": "jk@jk.ff",
        "bl": "0",
        "tl": "1"
    }

    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