get listing
GET /api/rest/admin/system/sensors
Parameters
Name |
Description |
filter[id]
|
id filter
|
filter[name]
|
name filter
|
Request
Headers
Route
GET /api/rest/admin/system/sensors
Response
Headers
Status
200 OK
Body
{
"data": [
{
"id": "1",
"type": "sensors",
"links": {
"self": "http://example.org/api/rest/admin/system/sensors/1"
},
"attributes": {
"name": "sensor1",
"mode-id": 1,
"source-interface": null,
"target-mac": null,
"use-routing": false,
"target-ip": "192.168.0.2",
"source-ip": "192.168.0.1"
}
},
{
"id": "2",
"type": "sensors",
"links": {
"self": "http://example.org/api/rest/admin/system/sensors/2"
},
"attributes": {
"name": "sensor2",
"mode-id": 1,
"source-interface": null,
"target-mac": null,
"use-routing": false,
"target-ip": "192.168.0.2",
"source-ip": "192.168.0.1"
}
}
],
"meta": {
"total-count": 2
},
"links": {
"first": "http://example.org/api/rest/admin/system/sensors?page%5Bnumber%5D=1&page%5Bsize%5D=50",
"last": "http://example.org/api/rest/admin/system/sensors?page%5Bnumber%5D=1&page%5Bsize%5D=50"
}
}