forked from docs/doc-exports
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>
13 KiB
13 KiB
Obtaining the Certificate List
Function Description
This API is used to obtain the certificate list of a user.
URI
- URI format
GET /v1/{project_id}/waf/certificate?offset={offset}&limit={limit}
- Parameter description
Table 1 Path parameters Parameter
Mandatory
Type
Description
project_id
Yes
String
Specifies the project ID.
offset
No
Long
Specifies the number of returned pages. Its value ranges from 0 to 65535. The default value is 0.
limit
No
Long
Specifies the maximum number of records displayed on each page. Its value ranges from 0 to 50. The default value is 10. If limit is -1, one page with 65535 records is displayed.
Request
Request parameters
None
Response
Response parameters
Parameter |
Type |
Description |
---|---|---|
total |
Integer |
Specifies the total number of certificates. |
items |
Specifies the certificate objects. |
Example
total with a value of 2 is used as an example.
Response example
{ "total": 2, "items": [ { "id": "388a7789d55b41d1918b3088a8f1e7f3", "name": "cert_a", "timestamp": 1544756441859, "expireTime": 1545978662373 }, { "id": "388a7789d55b41d1918b3088a8f1e7f4", "name": "cert_b", "timestamp": 1544756441859, "expireTime": 1545978662356 }] }
Status Code
Table 4 describes the normal status code returned by the API.
For details about error status codes, see Status Codes.
Parent topic: Certificate Management