Sensors API

get specific entry

GET /api/rest/admin/system/sensors/:id

Request

Headers

Version: HTTP/1.0
Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MTAyNTQ3MzksInN1YiI6MjEwfQ.ax9q0CYez-1FHUzTDqNRqd61bxidm3gPVRfNoe11k-0
Host: example.org
Cookie: 

Route

GET /api/rest/admin/system/sensors/3

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 0
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/vnd.api+json
Vary: Accept
ETag: W/"e6ae9e4871ce9acd4dfa893cd6534406"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 247ae24e-0cff-472d-b0c3-d68b56958d1d
X-Runtime: 0.010693
Content-Length: 264

Status

200 OK

Body

{
  "data": {
    "id": "3",
    "type": "sensors",
    "links": {
      "self": "http://example.org/api/rest/admin/system/sensors/3"
    },
    "attributes": {
      "name": "sensor3",
      "mode-id": 1,
      "source-interface": null,
      "target-mac": null,
      "use-routing": false,
      "target-ip": "192.168.0.2",
      "source-ip": "192.168.0.1"
    }
  }
}