2.4. Meraki sensor creation
Meraki sensors can be created issuing a POST request to the following URI:
HTTP Verb: POST
URI: https://hostname/api/v1/sensors/meraki
STATUS: DEPRECATED
HTTP Verb: POST
URI: https://hostname/api/v1/sensors/create/meraki
This request accepts the following payload parameters:
ip
(Mandatory) IP/Domain address of the meraki sensor.
name
(Mandatory) Name given to the meraki sensor.
parent_uuid
(Optional) Specifies the parent sensor UUID. If none is specified it defaults to root sensor.
meraki_validator
(Mandatory) Specifies the sensor validator.
snmp_community
(Optional) Specifies the community name for SNMP.
snmp_version
(Optional) Specifies the community version for SNMP. Allowed versions are: 1, 2c.
If request was successful HTTP 200 OK status code will be returned alongside a JSON response describing the new meraki sensor.
In the following lines you may find an example response to a successful request:
Request:
HTTP Verb: POST
URI: https://hostname/api/v1/sensors/meraki?auth_token=xxxxxx
Payload: { "name":"test_meraki",
"parent_uuid":"6396049722605916538",
"ip":"10.0.2.10",
"meraki_validator": "validator_frase"}
Response:
{
"query": true
"sensor": {
"id": 1501
"uuid": "4486950571500705295"
"name": "test_meraki"
"ip": "10.0.2.10"
"meraki_validator": "validator_frase"
"secret": "52bcf9fa1666053ecd5d0e0c8528627a43ece6be"
}
}