Skip to main content
Skip table of contents

Список тегированных камер

Список тегированных камер

GET api/admin/v1/tags/{tag}/used-cameras

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

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


int per_page, количество элементов в одной странице пагинации. По умолчанию 25 штук


string camera_search, поиск по имени камеры и имени группы камер

200 OK

Возвращает список объектов тегированных камер

JSON
{
    "data": [
        {
            "id": 745,
            "group_id": 98,
            "status": "active",
            "type": "media_server_v2",
            "pretty_text": "Камеры",
            "short_pretty": "Камеры",
            "start_at": "2022-06-07 11:41:52",
            "created_at": "2022-01-27 18:55:48",
            "name": "Камера 1",
            "can_edit": true,
            "origin": null,
            "group_type": "public",
            "shared_from": null,
            "ip": "192.168.7.44",
            "lat": null,
            "lng": null,
            "azimuth": null,
            "is_sensitive": 0,
            "is_public": 1,
            "is_ip_reserved": false,
            "count_issues": 4,
            "source": "manual",
            "archive_storage_days": 15,
            "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
        },
        {
            "id": 746,
            "group_id": 98,
            "status": "active",
            "type": "media_server_v2",
            "pretty_text": "Камеры",
            "short_pretty": "Камеры",
            "start_at": "2022-06-07 11:41:52",
            "created_at": "2022-01-27 19:12:36",
            "name": "Камера 2",
            "can_edit": true,
            "origin": null,
            "group_type": "public",
            "shared_from": null,
            "ip": "192.168.7.36",
            "lat": null,
            "lng": null,
            "azimuth": null,
            "is_sensitive": 0,
            "is_public": 1,
            "is_ip_reserved": false,
            "count_issues": 10,
            "source": "manual",
            "archive_storage_days": 15,
            "is_archive_recording": true,
            "archive_recording_type": "fulltime",
            "is_increased_reconnect": 0,
            "is_sound_enabled": true,
            "is_bridge": false,
            "is_auto_create_streams": false,
            "is_provisioning_enable": false
        },
        {
            "id": 747,
            "group_id": 98,
            "status": "inactive",
            "type": "media_server_v2",
            "pretty_text": "Камеры",
            "short_pretty": "Камеры",
            "start_at": "",
            "created_at": "2022-01-27 19:13:18",
            "name": "Камера 3",
            "can_edit": true,
            "origin": null,
            "group_type": "public",
            "shared_from": null,
            "ip": "192.168.7.34",
            "lat": null,
            "lng": null,
            "azimuth": null,
            "is_sensitive": 0,
            "is_public": 1,
            "is_ip_reserved": false,
            "count_issues": 3,
            "source": "manual",
            "archive_storage_days": 15,
            "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
        },
        {
            "id": 751,
            "group_id": 101,
            "status": "active",
            "type": "media_server_v2",
            "pretty_text": "Камеры",
            "short_pretty": "Камеры",
            "start_at": "2022-06-05 11:41:52",
            "created_at": "2022-01-27 19:46:27",
            "name": "Камера 4",
            "can_edit": true,
            "origin": null,
            "group_type": "public",
            "shared_from": null,
            "ip": "192.168.7.22",
            "lat": null,
            "lng": null,
            "azimuth": null,
            "is_sensitive": 0,
            "is_public": 1,
            "is_ip_reserved": false,
            "count_issues": 37,
            "source": "manual",
            "archive_storage_days": 17,
            "is_archive_recording": false,
            "archive_recording_type": "fulltime",
            "is_increased_reconnect": 0,
            "is_sound_enabled": false,
            "is_bridge": false,
            "is_auto_create_streams": false,
            "is_provisioning_enable": false
        },
        {
            "id": 752,
            "group_id": 101,
            "status": "active",
            "type": "media_server_v2",
            "pretty_text": "Камеры",
            "short_pretty": "Камеры",
            "start_at": "2022-06-07 11:41:52",
            "created_at": "2022-01-27 19:47:17",
            "name": "Камера 6",
            "can_edit": true,
            "origin": null,
            "group_type": "public",
            "shared_from": null,
            "ip": "192.168.7.26",
            "lat": null,
            "lng": null,
            "azimuth": null,
            "is_sensitive": 0,
            "is_public": 1,
            "is_ip_reserved": false,
            "count_issues": 7,
            "source": "manual",
            "archive_storage_days": 15,
            "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
        },
        {
            "id": 753,
            "group_id": 101,
            "status": "active",
            "type": "media_server_v2",
            "pretty_text": "Камеры",
            "short_pretty": "Камеры",
            "start_at": "2022-06-07 11:41:52",
            "created_at": "2022-01-27 19:48:31",
            "name": "Камера 7",
            "can_edit": true,
            "origin": null,
            "group_type": "public",
            "shared_from": null,
            "ip": "192.168.7.35",
            "lat": null,
            "lng": null,
            "azimuth": null,
            "is_sensitive": 0,
            "is_public": 1,
            "is_ip_reserved": false,
            "count_issues": 7,
            "source": "manual",
            "archive_storage_days": 15,
            "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
        },
        {
            "id": 755,
            "group_id": 101,
            "status": "active",
            "type": "media_server_v2",
            "pretty_text": "Камеры",
            "short_pretty": "Камеры",
            "start_at": "2022-06-07 11:41:52",
            "created_at": "2022-01-27 19:52:21",
            "name": "Камера 8",
            "can_edit": true,
            "origin": null,
            "group_type": "public",
            "shared_from": null,
            "ip": "192.168.7.23",
            "lat": null,
            "lng": null,
            "azimuth": null,
            "is_sensitive": 0,
            "is_public": 1,
            "is_ip_reserved": false,
            "count_issues": 4,
            "source": "manual",
            "archive_storage_days": 15,
            "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
        },
        {
            "id": 756,
            "group_id": 101,
            "status": "active",
            "type": "media_server_v2",
            "pretty_text": "Камеры",
            "short_pretty": "Камеры",
            "start_at": "2022-06-07 11:41:52",
            "created_at": "2022-01-27 19:52:55",
            "name": "Камера 9",
            "can_edit": true,
            "origin": null,
            "group_type": "public",
            "shared_from": null,
            "ip": "192.168.7.19",
            "lat": null,
            "lng": null,
            "azimuth": null,
            "is_sensitive": 0,
            "is_public": 1,
            "is_ip_reserved": false,
            "count_issues": 1,
            "source": "manual",
            "archive_storage_days": 15,
            "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
        },
        {
            "id": 758,
            "group_id": 101,
            "status": "active",
            "type": "media_server_v2",
            "pretty_text": "Камеры",
            "short_pretty": "Камеры",
            "start_at": "2022-06-07 11:41:52",
            "created_at": "2022-01-27 19:54:45",
            "name": "Камера 10",
            "can_edit": true,
            "origin": null,
            "group_type": "public",
            "shared_from": null,
            "ip": "192.168.7.31",
            "lat": null,
            "lng": null,
            "azimuth": null,
            "is_sensitive": 0,
            "is_public": 1,
            "is_ip_reserved": false,
            "count_issues": 1,
            "source": "manual",
            "archive_storage_days": 15,
            "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
        },
        {
            "id": 759,
            "group_id": 101,
            "status": "active",
            "type": "media_server_v2",
            "pretty_text": "Камеры",
            "short_pretty": "Камеры",
            "start_at": "2022-06-07 11:41:52",
            "created_at": "2022-01-27 19:55:17",
            "name": "Камера 11",
            "can_edit": true,
            "origin": null,
            "group_type": "public",
            "shared_from": null,
            "ip": "192.168.7.33",
            "lat": null,
            "lng": null,
            "azimuth": null,
            "is_sensitive": 0,
            "is_public": 1,
            "is_ip_reserved": false,
            "count_issues": 1,
            "source": "manual",
            "archive_storage_days": 15,
            "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
        },
        {
            "id": 760,
            "group_id": 100,
            "status": "partial",
            "type": "media_server_v2",
            "pretty_text": "Камеры",
            "short_pretty": "Камеры",
            "start_at": "",
            "created_at": "2022-01-27 20:08:04",
            "name": "Камера 12",
            "can_edit": true,
            "origin": null,
            "group_type": "public",
            "shared_from": null,
            "ip": "192.168.7.20",
            "lat": null,
            "lng": null,
            "azimuth": null,
            "is_sensitive": 0,
            "is_public": 1,
            "is_ip_reserved": false,
            "count_issues": 0,
            "source": "manual",
            "archive_storage_days": 15,
            "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
        },
        {
            "id": 761,
            "group_id": 100,
            "status": "active",
            "type": "media_server_v2",
            "pretty_text": "Камеры",
            "short_pretty": "Камеры",
            "start_at": "2022-06-07 11:41:52",
            "created_at": "2022-01-27 20:10:24",
            "name": "Камера 13",
            "can_edit": true,
            "origin": null,
            "group_type": "public",
            "shared_from": null,
            "ip": "192.168.7.40",
            "lat": null,
            "lng": null,
            "azimuth": null,
            "is_sensitive": 0,
            "is_public": 1,
            "is_ip_reserved": false,
            "count_issues": 0,
            "source": "manual",
            "archive_storage_days": 15,
            "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
        },
        {
            "id": 762,
            "group_id": 100,
            "status": "active",
            "type": "media_server_v2",
            "pretty_text": "Камеры",
            "short_pretty": "Камеры",
            "start_at": "2022-06-07 11:41:52",
            "created_at": "2022-01-27 20:11:29",
            "name": "Камера 14",
            "can_edit": true,
            "origin": null,
            "group_type": "public",
            "shared_from": null,
            "ip": "192.168.7.43",
            "lat": null,
            "lng": null,
            "azimuth": null,
            "is_sensitive": 0,
            "is_public": 1,
            "is_ip_reserved": false,
            "count_issues": 0,
            "source": "manual",
            "archive_storage_days": 15,
            "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
        },
        {
            "id": 763,
            "group_id": 100,
            "status": "inactive",
            "type": "media_server_v2",
            "pretty_text": "Камеры",
            "short_pretty": "Камеры",
            "start_at": "",
            "created_at": "2022-01-27 20:13:33",
            "name": "Камера 15",
            "can_edit": true,
            "origin": null,
            "group_type": "public",
            "shared_from": null,
            "ip": "192.168.7.113",
            "lat": 53.899705136753,
            "lng": 27.563136887374,
            "azimuth": null,
            "is_sensitive": 0,
            "is_public": 1,
            "is_ip_reserved": false,
            "count_issues": 1,
            "source": "manual",
            "archive_storage_days": 15,
            "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
        },
        {
            "id": 765,
            "group_id": 100,
            "status": "active",
            "type": "media_server_v2",
            "pretty_text": "Камеры",
            "short_pretty": "Камеры",
            "start_at": "2022-06-21 19:43:42",
            "created_at": "2022-01-27 20:16:28",
            "name": "Камера 16",
            "can_edit": true,
            "origin": null,
            "group_type": "public",
            "shared_from": null,
            "ip": "192.168.7.210",
            "lat": null,
            "lng": null,
            "azimuth": null,
            "is_sensitive": 0,
            "is_public": 1,
            "is_ip_reserved": false,
            "count_issues": 0,
            "source": "manual",
            "archive_storage_days": 15,
            "is_archive_recording": false,
            "archive_recording_type": "fulltime",
            "is_increased_reconnect": 0,
            "is_sound_enabled": false,
            "is_bridge": false,
            "is_auto_create_streams": false,
            "is_provisioning_enable": false
        },
        {
            "id": 766,
            "group_id": 100,
            "status": "active",
            "type": "media_server_v2",
            "pretty_text": "Камеры",
            "short_pretty": "Камеры",
            "start_at": "2022-06-07 11:41:52",
            "created_at": "2022-01-27 20:17:25",
            "name": "Камера 17",
            "can_edit": true,
            "origin": null,
            "group_type": "public",
            "shared_from": null,
            "ip": "192.168.7.212",
            "lat": null,
            "lng": null,
            "azimuth": null,
            "is_sensitive": 0,
            "is_public": 1,
            "is_ip_reserved": false,
            "count_issues": 1,
            "source": "manual",
            "archive_storage_days": 15,
            "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
        },
        {
            "id": 831,
            "group_id": 124,
            "status": "active",
            "type": "media_server_v2",
            "pretty_text": "Камеры",
            "short_pretty": "Камеры",
            "start_at": "2022-06-21 11:41:52",
            "created_at": "2022-02-18 15:02:13",
            "name": "Камера 18",
            "can_edit": true,
            "origin": null,
            "group_type": "public",
            "shared_from": null,
            "ip": "192.168.3.10",
            "lat": null,
            "lng": null,
            "azimuth": null,
            "is_sensitive": 0,
            "is_public": 1,
            "is_ip_reserved": false,
            "count_issues": 0,
            "source": "manual",
            "archive_storage_days": 1,
            "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
        },
        {
            "id": 901,
            "group_id": 211,
            "status": "inactive",
            "type": "media_server_v2",
            "pretty_text": ", , г. Город, ул. Улица 1",
            "short_pretty": "г. Город, ул. Улица 1",
            "start_at": "",
            "created_at": "2022-04-26 16:18:51",
            "name": "Камера 19",
            "can_edit": true,
            "origin": null,
            "group_type": "public",
            "shared_from": null,
            "ip": "MS5008.vms.local",
            "lat": null,
            "lng": null,
            "azimuth": null,
            "is_sensitive": 0,
            "is_public": 0,
            "is_ip_reserved": false,
            "count_issues": 0,
            "source": "manual",
            "archive_storage_days": 1,
            "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
        }
    ],
    "links": {
        "first": "https://vms.local/api/admin/v1/tags/72/used-cameras?per_page=25&page=1",
        "last": "https://vms.local/api/admin/v1/tags/72/used-cameras?per_page=25&page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "pagination.previous",
                "active": false
            },
            {
                "url": "https://vms.local/api/admin/v1/tags/72/used-cameras?per_page=25&page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "pagination.next",
                "active": false
            }
        ],
        "path": "https://vms.local/api/admin/v1/tags/72/used-cameras",
        "per_page": "25",
        "to": 18,
        "total": 18
    }
}

401 Unauthorized

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

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

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

If this problem persists, please contact our support.