doc-exports/docs/waf/api-ref/waf_02_0024.html
Li, Qiao 914011d51b waf_api_1109
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Li, Qiao <qiaoli@huawei.com>
Co-committed-by: Li, Qiao <qiaoli@huawei.com>
2022-11-16 15:31:27 +00:00

7.6 KiB

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.