Skip to main content
Skip table of contents

Получить список добавленных камер к устройству Bridge

Список добавленных камер

Permission - bridges

GET api/admin/v1/bridges/{bridge}/cameras

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

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


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


int page, Номер страницы пагинации

200 OK

Список камер

JSON
{
    "data": [
        {
            "id": 7569,
            "group_id": 10,
            "status": "active",
            "type": "media_server_v2",
            "start_at": null,
            "created_at": "2023-09-07T10:28:57.000000Z",
            "name": "fake stream 3",
            "streams": [
                {
                    "id": 13826,
                    "type": "high",
                    "camera_id": 7580,
                    "status": "active",
                    "url": "rtsp://192.168.200.44:8080/stream_8",
                    "bitrate": null,
                    "resolution": null,
                    "output_rate": null,
                    "ip": "192.168.200.44",
                    "uuid": "9a602d04-1cb0-4165-9938-77b980257984",
                    "streams_count": null,
                    "local_storage": {
                        "id": 2,
                        "server_id": null,
                        "path": "/storage",
                        "usage": 54.835,
                        "is_confirmed": null,
                        "can_delete": false,
                        "created_at": "2023-07-18T12:02:13.000000Z",
                        "updated_at": "2023-07-18T12:02:13.000000Z"
                    },
                    "created_at": "2023-09-07T10:28:58.000000Z",
                    "updated_at": "2023-09-07T10:28:58.000000Z",
                    "is_preview_from_server": true,
                    "is_archive_from_server": null,
                    "is_enabled": true,
                    "is_can_transfer": true,
                    "source": "auto",
                    "is_sound_enabled": null,
                    "reconnect_attempt": null,
                    "reconnect_total": null,
                    "reconnect_time": null,
                    "disconnections_count": 0,
                    "is_actual": true,
                    "condition": "active",
                    "stopped_at": ""
                }
            ],
            "can_edit": true,
            "origin": null,
            "group_type": "public",
            "ip": "192.168.200.44",
            "lat": 57.444461,
            "lng": 23.405931,
            "azimuth": null,
            "is_sensitive": false,
            "is_buffer_enabled": false,
            "is_public": 0,
            "is_ip_reserved": false,
            "count_issues": 0,
            "source": "auto",
            "archive_storage_days": 1,
            "is_archive_recording": true,
            "archive_recording_type": "fulltime",
            "is_local_archive_enabled": true,
            "local_archive_storage_days": 1,
            "is_increased_reconnect": 0,
            "is_sound_enabled": true,
            "is_bridge": true,
            "is_auto_create_streams": true,
            "is_provisioning_enable": true,
            "is_editable": false,
            "status_changed_at": null,
            "is_intercom": false,
            "deleted_at": null,
            "streams_count": 1,
            "is_need_replace": false
        }
    ],
    "links": {
        "first": "https://vms.local:8000/api/admin/v1/bridges/1/cameras?page=1",
        "last": "https://vms.local:8000/api/admin/v1/bridges/1/cameras?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "active": false
            },
            {
                "url": "https://vms.local:8000/api/admin/v1/bridges/1/cameras?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "active": false
            }
        ],
        "path": "https://vms.local:8000/api/admin/v1/bridges/1/cameras",
        "per_page": 25,
        "to": 1,
        "total": 1
    }
}

401 Unauthorized

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

422 Unprocessable Entity

Возвращает JSON объект с ошибкой.

JSON
{
    "message": "Тут не будет информативного сообщения",
    "errors": {
        "any_key": [
            "Тут будет описана причина ошибки"
        ]
    }
}
cURL
BASH
curl -k --request POST \
	--url 'https://your-domainapi/admin/v1/bridges/{bridge}/cameras' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "bridge": 0,
    "per_page": 0,
    "page": 0
}'
PHP
PHP
$data = array (
  'bridge' => 0,
  'per_page' => 0,
  '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/bridges/{bridge}/cameras', false, $context);
JavaScript errors detected

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

If this problem persists, please contact our support.