Help Center/ Cloud Certificate Manager/ API Reference/ Historical APIs/ SCM APIs/ Querying the Product Details of a Certificate
Updated on 2022-08-09 GMT+08:00

Querying the Product Details of a Certificate

Function

This API is used to query details about a specified certificate.

URI

  • URI format

    GET /v2/{project_id}/scm/product/{product_id}

  • Parameters

    Parameter

    Mandatory

    Type

    Description

    project_id

    Yes

    String

    Project ID.

    product_id

    Yes

    String

    Product ID.

Request

Request parameters

None

Response

Response parameters

Parameter

Mandatory

Type

Description

cert_type

Yes

String

Certificate type.

  • OV_SSL_CERT: Organization Validation (OV) SSL certificate.
  • EV_SSL_CERT: Extended Validation (EV) SSL certificate.

cert_brand

Yes

String

Certificate brand.

GLOBALSIGN: GlobalSign brand.

domain_type

Yes

String

Domain name type.

  • SINGLE_DOMAIN: single-domain name type.
  • MULTI_DOMAIN: multi-domain name type.
  • WILDCARD: wildcard domain name type.

effective_time

Yes

Integer

Certificate validity period, in years.

  • 1: The validity period of the certificate is one year.
  • 2: The validity period of the certificate is two years.

Example

  • Example request

    None

  • Example response
    {
    "cert_type": "OV_SSL_CERT",
    "cert_brand":"GLOBALSIGN",
    "domain_type":"SINGLE_DOMAIN",
    "effective_time":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