Search PCAP payload
GET
/files/{id}/pcap-searchContract
Parameter | Value |
|---|---|
| Section | files |
| Authentication | CookieAuth |
| Consumes | not required |
| Produces | application/json |
Parameters
4 parameters
Name | Location | Required | Type | Description |
|---|---|---|---|---|
| id | path | yes | integer | File ID |
| clientIp | query | yes | string | Client IP whose sessions should be searched |
| query | query | yes | string | Search pattern (interpretation depends on the mode) |
| mode | query | no | enum(text, hex, regex) | Match mode |
"text"
Responses
5 responses
Status | Description | Type |
|---|---|---|
200 | Search result: {query, mode, totalCount, matches[]} | object |
400 | Invalid file ID, missing query/clientIp, or invalid hex/regex pattern | object |
401 | Unauthorized | object |
404 | File not found | object |
500 | Failed to read file | object |
{ "cursor": { "count": 0, "currentPage": 0, "totalPages": 0, "totalRows": 0 }, "data": {} }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }