Sensors API

get specific entry

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

Request

Headers

Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjIyNywiYXVkIjpbImFkbWluIl0sImV4cCI6MTc3NjM2NTc0M30.Wk3_FSYX1a57YVYOxrXQUZHLe0pnpr4Noq2e6w2rrjs
Host: example.org
Cookie: 

Route

GET /api/rest/admin/sensors/3

Response

Headers

x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/vnd.api+json
vary: Accept
etag: W/"415902439c688342fedc761111390254"
cache-control: max-age=0, private, must-revalidate
x-request-id: b81e9ba5-3b06-440e-a7b3-923407229918
x-runtime: 0.005482
content-length: 257

Status

200 OK

Body

{
  "data": {
    "id": "3",
    "type": "sensors",
    "links": {
      "self": "http://example.org/api/rest/admin/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"
    }
  }
}