List of network devices
List of network devices
Network devices can be created in two ways:
During auto-provisioning, a request is received at one of the stages to create a network device for the camera
If the camera is manually created, an attempt is made via ONVIF to retrieve the MAC address and serial number. If the data is successfully retrieved, a network device is created
This information is not related to DHCP. Network devices are an internal entity of the VMS
GET /api/admin/v1/network-devices |
Method parameters
int
per_page, the number of items per pagination page. Default is 25
int
page, the page number of pagination
string
ip, the page number of pagination
string
mac, MAC address
bool
has_not_cam, devices without cameras
200 |
Successful response
JSON
|
401 |
Authorization token is not provided or is invalid. Obtaining a token |
curl -k --request POST \
--url 'https://your-domain/api/admin/v1/network-devices' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"per_page": 0,
"page": 0,
"ip": "string",
"mac": "string",
"has_not_cam": true
}'
$data = array (
'per_page' => 0,
'page' => 0,
'ip' => 'string',
'mac' => 'string',
'has_not_cam' => true,
);
$context = stream_context_create([
'ssl'=>['verify_peer' => false],
'http' => [
'method' => 'GET',
'header' => "Content-Type: application/json\r
Accept: application/json",
'content'=>json_encode($data)
]
]);
$result = file_get_contents('https://your-domain/api/admin/v1/network-devices', false, $context);