Querying the List of Event Log Files
Function Description
This API is used to query the list of event log files.
URI
- URI format
GET /v1/{project_id}/waf/event/dump?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.
Request
Request parameters
None
Response
Parameter |
Type |
Description |
---|---|---|
total |
Integer |
Specifies the total number of log files. |
items |
Specifies the log file objects. |
Parameter |
Type |
Description |
---|---|---|
id |
String |
Specifies the ID of a log file. |
filename |
String |
Specifies the name of a log file. |
total |
Integer |
Specifies the total number of events in a log file. |
url |
String |
Specifies the URL to download a log file. |
timestamp |
Long |
Specifies the time when a log file is generated. |
Example
total with a value of 2 is used as an example.
{ "total": 2, "items": [{ "id": "3a9b5c0f96784ec8abd8ba61a98064ef", "filename": "", "total": "100", "url": "https://obs_server/obs-waf-log/-2019-01-15-xxxxxxxxxx.csv?AWSAccessKeyId=XXXXXXXXXXXX&Expires=1547632&Signature=nC7ipaGzLQs", "timestamp": 1499817600 }, { "id": "44d887434169475794b2717438f7fa78", "filename": "W-2019-01-14.csv", "total": "200", "url": "https://obs_server/obs-waf-log/-2019-01-14-xxxxxxxxxx.csv?AWSAccessKeyId=XXXXXXXXXXXX&Expires=1547632&Signature=nC7ipaGzLQs", "timestamp": 1499817601 } ] }
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot