This API is used to obtain the certificate list of a user.
GET /v1/{project_id}/waf/certificate?offset={offset}&limit={limit}
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 parameters
None
Parameter |
Type |
Description |
---|---|---|
total |
Integer |
Specifies the total number of certificates. |
items |
Specifies the certificate objects. |
total with a value of 2 is used as an example.
{ "total": 2, "items": [ { "id": "388a7789d55b41d1918b3088a8f1e7f3", "name": "cert_a", "timestamp": 1544756441859, "expireTime": 1545978662373 }, { "id": "388a7789d55b41d1918b3088a8f1e7f4", "name": "cert_b", "timestamp": 1544756441859, "expireTime": 1545978662356 }] }
For details about error status codes, see Status Codes.