Create sensor
POST
/sensors
const url = 'https://demo.suricatavel.org/api/v1/sensors';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","fqdn":"example","ipv4":"example","dist":"example","password":"example","ssh_key":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://demo.suricatavel.org/api/v1/sensors \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "fqdn": "example", "ipv4": "example", "dist": "example", "password": "example", "ssh_key": "example" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
string
fqdn
string
ipv4
string
dist
string
password
string
ssh_key
string
Example generated
{ "name": "example", "fqdn": "example", "ipv4": "example", "dist": "example", "password": "example", "ssh_key": "example"}Responses
Section titled “Responses”Host created
Media typeapplication/json
object
id
integer
name
string
fqdn
string
ipv4
string
dist
string
suricata_version
string
is_provisioned
boolean
Example generated
{ "id": 1, "name": "example", "fqdn": "example", "ipv4": "example", "dist": "example", "suricata_version": "example", "is_provisioned": true}
