create new entry
POST /api/rest/admin/system/sensors
Parameters
Name |
Description |
data[type]
|
Resource type (sensors)
|
data[attributes][name]
|
Name
|
data[attributes][mode-id]
|
Mode id
|
data[attributes][target-ip]
|
Target ip
|
data[attributes][source-ip]
|
Source ip
|
data[attributes][source-interface]
|
Source interface
|
data[attributes][target-mac]
|
Target mac
|
data[attributes][use-routing]
|
Use routing
|
Request
Headers
Route
POST /api/rest/admin/system/sensors
Body
{"data":{"type":"sensors","attributes":{"name":"name","mode-id":1,"target-ip":"192.168.0.2","source-ip":"192.168.0.1"}}}
Response
Headers
Status
201 Created
Body
{
"data": {
"id": "4",
"type": "sensors",
"links": {
"self": "http://example.org/api/rest/admin/system/sensors/4"
},
"attributes": {
"name": "name",
"mode-id": 1,
"source-interface": null,
"target-mac": null,
"use-routing": false,
"target-ip": "192.168.0.2",
"source-ip": "192.168.0.1"
}
}
}