All Products
Search
Document Center

Web Application Firewall:DescribeCerts

Last Updated:Apr 23, 2024

Queries the certificates issued for your domain names that are added to Web Application Firewall (WAF).

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
DomainstringNo

The domain name.

example.aliyun.com
PageNumberlongNo

The page number. Default value: 1.

1
PageSizelongNo

The number of entries per page. Valid values: 1 to 100. Default value: 10.

10
RegionIdstringNo

The region in which the WAF instance is deployed. Valid values:

  • cn-hangzhou: Chinese mainland.
  • ap-southeast-1: outside the Chinese mainland.
cn-hangzhou
InstanceIdstringYes

The ID of the WAF instance.

Note You can call the DescribeInstance operation to query the ID of the WAF instance.
waf_v3prepaid_public_cn-5yd****tb02
AlgorithmstringNo

The type of the encryption algorithm. Valid values:

  • NotSM2: The encryption algorithm is not the SM2 algorithm. This is the default value.
  • SM2: The encryption algorithm is the SM2 algorithm.
SM2
ResourceManagerResourceGroupIdstringNo

The ID of the Alibaba Cloud resource group.

rg-acfmoiy****p2oq

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

19511B0D-5AE0-5600-BB8A-DC2C8345****
TotalCountlong

The total number of entries returned.

8
Certsobject []

The certificates.

Domainstring

The domain name that is added to WAF.

www.example.com
CertNamestring

The name of the certificate.

waf1234
CertIdentifierstring

The globally unique ID of the certificate. The value is in the "Certificate ID-cn-hangzhou" format. For example, if the ID of the certificate is 123, the value of CertIdentifier is 123-cn-hangzhou.

1234567-cn-hangzhou
CommonNamestring

The common name.

*.example.com
IsChainCompletedboolean

Indicates whether the certificate chain is complete. Valid values:

  • true
  • false
true
AfterDatelong

The time when the certificate becomes valid.

1976256736582
BeforeDatelong

The time when the certificate expires.

1976256836582

Examples

Sample success responses

JSONformat

{
  "RequestId": "19511B0D-5AE0-5600-BB8A-DC2C8345****",
  "TotalCount": 8,
  "Certs": [
    {
      "Domain": "www.example.com\t\n",
      "CertName": "waf1234",
      "CertIdentifier": "1234567-cn-hangzhou",
      "CommonName": "*.example.com\t",
      "IsChainCompleted": true,
      "AfterDate": 1976256736582,
      "BeforeDate": 1976256836582
    }
  ]
}

Error codes

For a list of error codes, visit the Service error codes.