Skip to content

Filter port log

POST
/ports/{id}/log
curl --request POST \
--url https://api.ltesocks.io/v2/ports/example/log \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "from": "2022-04-02T00:40:44", "to": "2022-04-02T00:40:44", "page": 1, "pageSize": 20 }'

Returns port events for a requested time range with pagination.

id
required
string

Account-scoped port identifier.

Pagination parameters

Media typeapplication/json
object
from
string format: date-time
Example
2022-04-02T00:40:44
to
string format: date-time
Example
2022-04-02T00:40:44
page
integer
Example
1
pageSize
integer
<= 100
Example
20

Successful operation

Media typeapplication/json
object
data
Array<object>
object
action
string
cause
string
source
string
extra
string
createdAt
string format: date-time
page
integer
pageSize
integer
total
integer
Example
{
"data": [
{
"action": "update",
"cause": "admin",
"source": "adminDashboard",
"extra": "extra info",
"createdAt": "2022-04-03T01:13:50.182Z"
}
],
"page": 1,
"pageSize": 20,
"total": 7
}

The bearer token is missing, invalid, or no longer active.

Media typeapplication/json
object
error

Error text representation

string
Example
{
"error": "example error"
}

The configured request limit has been exceeded.

Media typeapplication/json
object
error

Error text representation

string
Example
{
"error": "example error"
}

Error

Media typeapplication/json
object
error

Error text representation

string
Example
{
"error": "example error"
}