• Web Application Firewall

waf
  1. Help Center
  2. Web Application Firewall
  3. API Reference
  4. APIs
  5. Certificate Management
  6. Querying the Domain Name that A Certificate Secures

Querying the Domain Name that A Certificate Secures

Function Description

This API is used to query the domain name that a certificate secures.

URI

  • URI format

    GET /v1/{project_id}/waf/certificate/{certificate_id}/host

  • Parameter description
    Table 1 Path parameters

    Parameter

    Mandatory

    Type

    Description

    project_id

    Yes

    String

    Specifies the project ID.

    certificate_id

    Yes

    String

    Specifies the certificate ID.

Request

Request parameters

None

Response

Response parameters
Table 2 Parameter description

Parameter

Type

Description

hostname

Array

Specifies the domain names.

Example

Response example
{
    "hostname": ["www.a.com","www.b.com"]
}

Status Code

Table 3 describes the normal status code returned by the API.
Table 3 Status code

Status Code

Description

Meaning

200

OK

The request has succeeded.

For details about error status codes, see Status Codes.