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.eyJleHAiOjE3MzE1Nzg3NjQsInN1YiI6MjMwfQ.IsdgNFF5gbtt7ESwv6l4Yc6hnQARIoQxOqfMC3ESznE
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: 79b21061-f052-435c-9914-af4c477731f5
X-Runtime: 0.010629
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"
    }
  }
}