Get logs for a node
POST/logs/getLogs
Get device logs. Anedya platform will retain the device logs for a period of two months. You can fetch max 1000 lines of logs in a single call
Request
- application/json
Body
nodeid stringrequired
from integerrequired
to integer
order string
Possible values: [asc
, desc
]
limit integer
Possible values: <= 1000
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
success boolean
error string
errorcode integer
count integer
data object[]
timestamp integer
log string
{
"success": true,
"error": "string",
"errorcode": 0,
"count": 0,
"data": [
{
"timestamp": 0,
"log": "string"
}
]
}
Loading...