Skip to main content
Skip table of contents

Список камер в группе

Список камер в группе

Камеры внутри элемента дерева могут быть распределены на несколько групп

GET /api/admin/v1/cameras/{group}

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

int group, уникальный идентификатор группы

200 OK

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

JSON
{
    "address": "Область, Город, Улица, Дом",
    "items": [
        {
            "key": "public",
            "type": "camera",
            "cameras": [
                {
                    "id": 930,
                    "group_id": 248,
                    "status": "active",
                    "type": "media_server_v2",
                    "pretty_text": "Камеры",
                    "short_pretty": "Камеры",
                    "start_at": "2022-06-19 12:20:22",
                    "created_at": "2022-06-14 15:19:14",
                    "name": "Камера 1",
                    "attached_services": [],
                    "services": {
                        "ptz": false,
                        "motion_detect": false
                    },
                    "csas": [],
                    "can_edit": true,
                    "origin": null,
                    "group_type": "public",
                    "shared_from": null,
                    "ip": "192.168.204.30",
                    "lat": null,
                    "lng": null,
                    "azimuth": null,
                    "is_sensitive": 0,
                    "is_public": 0,
                    "is_ip_reserved": false,
                    "count_issues": 0,
                    "source": "manual",
                    "archive_storage_days": 2,
                    "is_archive_recording": true,
                    "archive_recording_type": "fulltime",
                    "is_increased_reconnect": 0,
                    "is_sound_enabled": false,
                    "is_bridge": false,
                    "is_auto_create_streams": false,
                    "is_provisioning_enable": false,
                    "is_can_manage_streams": true,
                    "streams_source": "manual"
                }
            ]
        },
        {
            "key": "private",
            "type": "folder",
            "folders": [
                {
                    "folder": {
                        "id": 123,
                        "name": "Folder name"
                    },
                    "cameras": [
                        {
                            "id": 930,
                            "group_id": 248,
                            "status": "active",
                            "type": "media_server_v2",
                            "pretty_text": "Камеры",
                            "short_pretty": "Камеры",
                            "start_at": "2022-06-19 12:20:22",
                            "created_at": "2022-06-14 15:19:14",
                            "name": "Камере 1",
                            "attached_services": [],
                            "services": {
                                "ptz": false,
                                "motion_detect": false
                            },
                            "csas": [],
                            "can_edit": true,
                            "origin": null,
                            "group_type": "public",
                            "shared_from": null,
                            "ip": "192.168.204.30",
                            "lat": null,
                            "lng": null,
                            "azimuth": null,
                            "is_sensitive": 0,
                            "is_public": 0,
                            "is_ip_reserved": false,
                            "count_issues": 0,
                            "source": "manual",
                            "archive_storage_days": 2,
                            "is_archive_recording": true,
                            "archive_recording_type": "fulltime",
                            "is_increased_reconnect": 0,
                            "is_sound_enabled": false,
                            "is_bridge": false,
                            "is_auto_create_streams": false,
                            "is_provisioning_enable": false,
                            "is_can_manage_streams": true,
                            "streams_source": "manual"
                        }
                    ]
                }
            ]
        }
    ]
}

401 Unauthorized

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

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

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

If this problem persists, please contact our support.