Skip to main content
Skip table of contents

Просмотр сетевого устройства

Просмотр сетевого устройства

GET /api/admin/v1/network-devices/{device}

Параметры метода

int device, уникальный идентификатор сетевого устройства

200 OK

Успешный ответ

JSON
{
    "uuid": "ca237cd8-6a0a-40f9-8791-9c739d5d50d3",
    "ip": "192.168.204.18",
    "serial_number": "DS-2CD2143G0-IS20201222AAWRF25858401",
    "mac": "EC:C8:9C:72:49:ED",
    "created_at": "2022-04-05 12:41:04",
    "camera": {
        "id": 890,
        "group_id": 190,
        "status": "inactive",
        "type": "media_server_v2",
        "pretty_text": "Камеры",
        "short_pretty": "Камеры",
        "start_at": "",
        "created_at": "2022-04-05 12:34:38",
        "name": "Камера 1",
        "can_edit": true,
        "origin": null,
        "group_type": "public",
        "shared_from": null,
        "ip": "192.168.204.18",
        "lat": null,
        "lng": null,
        "azimuth": null,
        "is_sensitive": 0,
        "is_public": 0,
        "count_issues": 0,
        "source": "manual",
        "archive_storage_days": 1,
        "is_archive_recording": true,
        "archive_recording_type": "fulltime",
        "is_increased_reconnect": 0,
        "is_sound_enabled": true,
        "is_bridge": false
    }
}

401 Unauthorized

Токен авторизации не передан или не валидный Получение токена

cURL
BASH
curl -k --request POST \
	--url 'https://your-domain/api/admin/v1/network-devices/{device}' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "device": 0
}'
PHP
PHP
$data = array (
  'device' => 0,
);
$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/{device}', false, $context);
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.