Skip to main content
Skip table of contents

Камеры с жалобами

Список камер с жалобами

GET api/admin/v1/issues

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

string sort, поле, по которому нужно отсортировать жалобы


string dir, в каком направлении нужно отсортировать. desc – от большего к меньшему, asc – от меньшего к большему


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

200 OK

Возвращает список объектов камер с жалобами

JSON
{
    "data": [
        {
            "id": 745,
            "group_id": 98,
            "status": "active",
            "type": "media_server_v2",
            "pretty_text": "Камеры",
            "short_pretty": "Камеры",
            "start_at": "2022-06-07 12:06:09",
            "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,
            "issues": [
                {
                    "id": 1,
                    "title": "Посторонние предметы в объективе",
                    "count": 2,
                    "created_at": "2022-06-21 14:16:47",
                    "updated_at": "2022-06-21 14:54:40"
                },
                {
                    "id": 3,
                    "title": "Нет изображения",
                    "count": 1,
                    "created_at": "2022-06-21 14:16:10",
                    "updated_at": "2022-06-21 14:16:10"
                },
                {
                    "id": 4,
                    "title": "Перебои в работе",
                    "count": 1,
                    "created_at": "2022-06-21 14:16:17",
                    "updated_at": "2022-06-21 14:16:17"
                }
            ],
            "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 12:06:09",
            "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,
            "issues": [
                {
                    "id": 1,
                    "title": "Посторонние предметы в объективе",
                    "count": 8,
                    "created_at": "2022-06-21 12:12:47",
                    "updated_at": "2022-06-21 14:54:52"
                },
                {
                    "id": 2,
                    "title": "Нет звука",
                    "count": 2,
                    "created_at": "2022-06-21 14:54:35",
                    "updated_at": "2022-06-21 14:54:47"
                }
            ],
            "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,
            "issues": [
                {
                    "id": 1,
                    "title": "Посторонние предметы в объективе",
                    "count": 3,
                    "created_at": "2022-06-21 14:53:56",
                    "updated_at": "2022-06-21 14:54:09"
                }
            ],
            "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": 749,
            "group_id": 99,
            "status": "active",
            "type": "media_server_v2",
            "pretty_text": "Камеры",
            "short_pretty": "Камеры",
            "start_at": "",
            "created_at": "2022-01-27 19:15:22",
            "name": "Камера 4",
            "can_edit": true,
            "origin": null,
            "group_type": "public",
            "shared_from": null,
            "ip": "192.168.7.42",
            "lat": null,
            "lng": null,
            "azimuth": null,
            "is_sensitive": 0,
            "is_public": 1,
            "issues": [
                {
                    "id": 1,
                    "title": "Посторонние предметы в объективе",
                    "count": 1,
                    "created_at": "2022-06-21 12:00:06",
                    "updated_at": "2022-06-21 12:00:06"
                }
            ],
            "is_ip_reserved": false,
            "count_issues": 1,
            "source": "manual",
            "archive_storage_days": 15,
            "is_archive_recording": false,
            "archive_recording_type": "timetable",
            "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 12:06:09",
            "created_at": "2022-01-27 19:46:27",
            "name": "Камера 5",
            "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,
            "issues": [
                {
                    "id": 1,
                    "title": "Посторонние предметы в объективе",
                    "count": 27,
                    "created_at": "2022-06-21 11:50:09",
                    "updated_at": "2022-06-21 14:16:24"
                },
                {
                    "id": 2,
                    "title": "Нет звука",
                    "count": 4,
                    "created_at": "2022-06-21 11:03:39",
                    "updated_at": "2022-06-21 11:48:50"
                },
                {
                    "id": 3,
                    "title": "Нет изображения",
                    "count": 1,
                    "created_at": "2022-06-21 11:03:53",
                    "updated_at": "2022-06-21 11:03:53"
                },
                {
                    "id": 4,
                    "title": "Перебои в работе",
                    "count": 2,
                    "created_at": "2022-06-21 11:04:00",
                    "updated_at": "2022-06-21 11:40:33"
                },
                {
                    "id": 5,
                    "title": "Неисправен поворотный механизм",
                    "count": 3,
                    "created_at": "2022-06-21 11:04:07",
                    "updated_at": "2022-06-21 12:28:46"
                }
            ],
            "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 12:06:09",
            "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,
            "issues": [
                {
                    "id": 1,
                    "title": "Посторонние предметы в объективе",
                    "count": 6,
                    "created_at": "2022-06-21 12:01:21",
                    "updated_at": "2022-06-21 14:55:01"
                },
                {
                    "id": 2,
                    "title": "Нет звука",
                    "count": 1,
                    "created_at": "2022-06-21 14:55:09",
                    "updated_at": "2022-06-21 14:55:09"
                }
            ],
            "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 12:06:09",
            "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,
            "issues": [
                {
                    "id": 1,
                    "title": "Посторонние предметы в объективе",
                    "count": 3,
                    "created_at": "2022-06-21 11:43:45",
                    "updated_at": "2022-06-21 12:12:39"
                },
                {
                    "id": 2,
                    "title": "Нет звука",
                    "count": 2,
                    "created_at": "2022-06-21 11:43:28",
                    "updated_at": "2022-06-21 12:08:32"
                },
                {
                    "id": 3,
                    "title": "Нет изображения",
                    "count": 1,
                    "created_at": "2022-06-21 12:08:03",
                    "updated_at": "2022-06-21 12:08:03"
                },
                {
                    "id": 5,
                    "title": "Неисправен поворотный механизм",
                    "count": 1,
                    "created_at": "2022-06-21 12:08:20",
                    "updated_at": "2022-06-21 12:08:20"
                }
            ],
            "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 12:06:09",
            "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,
            "issues": [
                {
                    "id": 1,
                    "title": "Посторонние предметы в объективе",
                    "count": 3,
                    "created_at": "2022-06-21 11:43:35",
                    "updated_at": "2022-06-21 13:27:31"
                },
                {
                    "id": 2,
                    "title": "Нет звука",
                    "count": 1,
                    "created_at": "2022-06-21 11:47:00",
                    "updated_at": "2022-06-21 11:47:00"
                }
            ],
            "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 12:06:09",
            "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,
            "issues": [
                {
                    "id": 1,
                    "title": "Посторонние предметы в объективе",
                    "count": 1,
                    "created_at": "2022-06-21 14:16:59",
                    "updated_at": "2022-06-21 14:16:59"
                }
            ],
            "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 12:06:09",
            "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,
            "issues": [
                {
                    "id": 1,
                    "title": "Посторонние предметы в объективе",
                    "count": 1,
                    "created_at": "2022-06-21 14:53:41",
                    "updated_at": "2022-06-21 14:53:41"
                }
            ],
            "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 12:06:09",
            "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,
            "issues": [
                {
                    "id": 1,
                    "title": "Посторонние предметы в объективе",
                    "count": 1,
                    "created_at": "2022-06-21 14:39:51",
                    "updated_at": "2022-06-21 14:39:51"
                }
            ],
            "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": 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": "Камера 12",
            "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,
            "issues": [
                {
                    "id": 4,
                    "title": "Перебои в работе",
                    "count": 1,
                    "created_at": "2022-05-30 11:12:36",
                    "updated_at": "2022-05-30 11:12:36"
                }
            ],
            "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": 766,
            "group_id": 100,
            "status": "active",
            "type": "media_server_v2",
            "pretty_text": "Камеры",
            "short_pretty": "Камеры",
            "start_at": "2022-06-07 12:06:09",
            "created_at": "2022-01-27 20:17:25",
            "name": "Камера 13",
            "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,
            "issues": [
                {
                    "id": 2,
                    "title": "Нет звука",
                    "count": 1,
                    "created_at": "2022-06-15 11:02:05",
                    "updated_at": "2022-06-15 11:02:05"
                }
            ],
            "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": 832,
            "group_id": 124,
            "status": "active",
            "type": "media_server_v2",
            "pretty_text": "Камеры",
            "short_pretty": "Камеры",
            "start_at": "2022-06-21 12:06:09",
            "created_at": "2022-02-18 15:03:58",
            "name": "Камера 14",
            "can_edit": true,
            "origin": null,
            "group_type": "public",
            "shared_from": null,
            "ip": "192.168.16.228",
            "lat": null,
            "lng": null,
            "azimuth": null,
            "is_sensitive": 0,
            "is_public": 0,
            "issues": [
                {
                    "id": 2,
                    "title": "Нет звука",
                    "count": 1,
                    "created_at": "2022-06-07 11:06:29",
                    "updated_at": "2022-06-07 11:06:29"
                },
                {
                    "id": 4,
                    "title": "Перебои в работе",
                    "count": 2,
                    "created_at": "2022-06-21 11:46:38",
                    "updated_at": "2022-06-21 11:46:40"
                }
            ],
            "is_ip_reserved": false,
            "count_issues": 3,
            "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,
            "is_auto_create_streams": false,
            "is_provisioning_enable": false
        },
        {
            "id": 837,
            "group_id": 124,
            "status": "active",
            "type": "media_server_v2",
            "pretty_text": "Камеры",
            "short_pretty": "Камеры",
            "start_at": "2022-06-21 12:06:09",
            "created_at": "2022-02-18 15:12:41",
            "name": "Камера 15",
            "can_edit": true,
            "origin": null,
            "group_type": "public",
            "shared_from": null,
            "ip": "192.168.16.138",
            "lat": null,
            "lng": null,
            "azimuth": null,
            "is_sensitive": 0,
            "is_public": 0,
            "issues": [
                {
                    "id": 2,
                    "title": "Нет звука",
                    "count": 1,
                    "created_at": "2022-06-13 11:04:42",
                    "updated_at": "2022-06-13 11:04:42"
                },
                {
                    "id": 3,
                    "title": "Нет изображения",
                    "count": 1,
                    "created_at": "2022-06-09 13:55:29",
                    "updated_at": "2022-06-09 13:55:29"
                },
                {
                    "id": 5,
                    "title": "Неисправен поворотный механизм",
                    "count": 1,
                    "created_at": "2022-06-09 13:55:37",
                    "updated_at": "2022-06-09 13:55:37"
                }
            ],
            "is_ip_reserved": false,
            "count_issues": 3,
            "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,
            "is_auto_create_streams": false,
            "is_provisioning_enable": false
        }
    ],
    "links": {
        "first": "https://vms.local/api/admin/v1/issues?page=1",
        "last": "https://vms.local/api/admin/v1/issues?page=2",
        "prev": null,
        "next": "https://vms.local/api/admin/v1/issues?page=2"
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 2,
        "links": [
            {
                "url": null,
                "label": "pagination.previous",
                "active": false
            },
            {
                "url": "https://vms.local/api/admin/v1/issues?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": "https://vms.local/api/admin/v1/issues?page=2",
                "label": "2",
                "active": false
            },
            {
                "url": "https://vms.local/api/admin/v1/issues?page=2",
                "label": "pagination.next",
                "active": false
            }
        ],
        "path": "https://vms.local/api/admin/v1/issues",
        "per_page": 15,
        "to": 15,
        "total": 21
    }
}

401 Unauthorized

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

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

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

If this problem persists, please contact our support.