Перейти в хранилище документации
Обратиться в техническую поддержку
POST http://IP-адрес:порт/префикс/grpc
Получение списка всех видеокамер
Тело запроса:
{ "method": "axxonsoft.bl.domain.DomainService.ListCameras", "data": { "view" : "VIEW_MODE_FULL" } }
Пример ответа:
--ngpboundary Content-Type: application/json; charset=utf-8 Content-Length: 4567 { "items": [ { "access_point": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0", "display_name": "Camera", "display_id": "1", "version": "", "ip_address": "0.0.0.0", "camera_access": "CAMERA_ACCESS_FULL", "vendor": "AxxonSoft", "model": "Virtual", "comment": "", "armed": true, "video_streams": [ { "stream_acess_point": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0", "decoder_acess_point": "hosts/Server1/VideoDecoder.1/SourceEndpoint.video", "enabled": false, "display_name": "Camera", "display_id": "0", "is_activated": true } ], "microphones": [ { "access_point": "hosts/Server1/DeviceIpint.1/SourceEndpoint.audio:0", "display_name": "", "display_id": "0", "microphone_access": "MICROPHONE_ACCESS_FULL", "is_activated": false } ], "ptzs": [], "archive_bindings": [ { "name": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0", "storage": "hosts/Server1/DeviceIpint.1/MultimediaStorage.0", "archive": { "access_point": "hosts/Server1/DeviceIpint.1/MultimediaStorage.0", "display_name": "", "display_id": "DeviceIpint.1", "is_embedded": true, "archive_access": "ARCHIVE_ACCESS_FULL", "bindings": [], "is_activated": false }, "is_default": false, "sources": [ { "access_point": "hosts/Server1/DeviceIpint.1/Sources/src.0", "storage": "hosts/Server1/DeviceIpint.1/MultimediaStorage.0", "binding": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0", "media_source": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0", "origin": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0", "mimetype": "video/h264", "origin_storage": "", "origin_storage_source": "" } ] }, { "name": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0", "storage": "hosts/Server1/MultimediaStorage.AliceBlue/MultimediaStorage", "archive": { "access_point": "hosts/Server1/MultimediaStorage.AliceBlue/MultimediaStorage", "display_name": "AliceBlue", "display_id": "MultimediaStorage.AliceBlue", "is_embedded": false, "archive_access": "ARCHIVE_ACCESS_FULL", "bindings": [], "is_activated": true }, "is_default": true, "sources": [ { "access_point": "hosts/Server1/MultimediaStorage.AliceBlue/Sources/src.47A57090-40B8-7604-A7A1-8E9E9D1421D2", "storage": "hosts/Server1/MultimediaStorage.AliceBlue/MultimediaStorage", "binding": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0", "media_source": "hosts/Server1/AVDetector.13/SourceEndpoint.vmda", "origin": "hosts/Server1/AVDetector.13/SourceEndpoint.vmda", "mimetype": "application/vmda", "origin_storage": "", "origin_storage_source": "" }, { "access_point": "hosts/Server1/MultimediaStorage.AliceBlue/Sources/src.1A00AA71-A796-A96C-80BD-8ADAAD59938E", "storage": "hosts/Server1/MultimediaStorage.AliceBlue/MultimediaStorage", "binding": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0", "media_source": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0", "origin": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0", "mimetype": "video/vc-raw", "origin_storage": "", "origin_storage_source": "" }, { "access_point": "hosts/Server1/MultimediaStorage.AliceBlue/Sources/src.875C1A55-D315-4DE1-B7F8-F0CB2F2F6B97", "storage": "hosts/Server1/MultimediaStorage.AliceBlue/MultimediaStorage", "binding": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0", "media_source": "hosts/Server1/DeviceIpint.1/SourceEndpoint.audio:0", "origin": "hosts/Server1/DeviceIpint.1/SourceEndpoint.audio:0", "mimetype": "application/audio", "origin_storage": "", "origin_storage_source": "" } ] } ], "ray": [], "relay": [], "detectors": [ { "access_point": "hosts/Server1/AVDetector.13/EventSupplier", "display_name": "", "display_id": "13", "parent_detector": "", "scene_descriptions": [ { "access_point": "hosts/Server1/AVDetector.13/SourceEndpoint.vmda" } ], "events": [] } ], "offline_detectors": [], "group_ids": [ "e2f20843-7ce5-d04c-8a4f-826e8b16d39c" ], "is_activated": true, "text_sources": [], "speakers": [] } ], "next_page_token": "" } --ngpboundary Content-Type: application/json; charset=utf-8 Content-Length: 41 { "items": [], "next_page_token": "" }
Получение информации по конкретной видеокамере
Тело запроса:
{ "method": "axxonsoft.bl.domain.DomainService.BatchGetCameras", "data": { "items":[{ "access_point":"hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0" }] } }
Пример ответа:
--ngpboundary Content-Type: application/json; charset=utf-8 Content-Length: 9038 { "items": [ { "access_point": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0", "display_name": "Server1-Auto", "display_id": "1", "version": "", "ip_address": "0.0.0.0", "camera_access": "CAMERA_ACCESS_FULL", "vendor": "AxxonSoft", "model": "Virtual", "comment": "", "armed": true, "video_streams": [ { "stream_acess_point": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0", "decoder_acess_point": "hosts/Server1/VideoDecoder.1/SourceEndpoint.video", "enabled": false, "display_name": "Server1-Auto", "display_id": "0", "is_activated": true } ], "microphones": [], "ptzs": [], "archive_bindings": [ { "name": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0", "storage": "hosts/Server1/DeviceIpint.1/MultimediaStorage.0", "archive": { "access_point": "hosts/Server1/DeviceIpint.1/MultimediaStorage.0", "display_name": "", "display_id": "DeviceIpint.1", "is_embedded": true, "archive_access": "ARCHIVE_ACCESS_FULL", "bindings": [], "is_activated": false }, "is_default": false, "sources": [ { "access_point": "hosts/Server1/DeviceIpint.1/Sources/src.0", "storage": "hosts/Server1/DeviceIpint.1/MultimediaStorage.0", "binding": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0", "media_source": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0", "origin": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0", "mimetype": "video/h264", "origin_storage": "", "origin_storage_source": "" } ] }, { "name": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0", "storage": "hosts/Server1/MultimediaStorage.AntiqueWhite/MultimediaStorage", "archive": { "access_point": "hosts/Server1/MultimediaStorage.AntiqueWhite/MultimediaStorage", "display_name": "1", "display_id": "MultimediaStorage.AntiqueWhite", "is_embedded": false, "archive_access": "ARCHIVE_ACCESS_FULL", "bindings": [], "is_activated": true }, "is_default": true, "sources": [ { "access_point": "hosts/Server1/MultimediaStorage.AntiqueWhite/Sources/src.9287FD97-D0FE-4675-B3E4-3E859ABC92B8", "storage": "hosts/Server1/MultimediaStorage.AntiqueWhite/MultimediaStorage", "binding": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0", "media_source": "hosts/Server1/AVDetector.14/SourceEndpoint.vmda", "origin": "hosts/Server1/AVDetector.14/SourceEndpoint.vmda", "mimetype": "application/vmda", "origin_storage": "", "origin_storage_source": "" }, { "access_point": "hosts/Server1/MultimediaStorage.AntiqueWhite/Sources/src.19C6698F-5674-7A0A-8C6F-2253D21F86D2", "storage": "hosts/Server1/MultimediaStorage.AntiqueWhite/MultimediaStorage", "binding": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0", "media_source": "hosts/Server1/AVDetector.35/SourceEndpoint.vmda", "origin": "hosts/Server1/AVDetector.35/SourceEndpoint.vmda", "mimetype": "application/vmda", "origin_storage": "", "origin_storage_source": "" }, { "access_point": "hosts/Server1/MultimediaStorage.AntiqueWhite/Sources/src.D208E3CC-E717-BC96-DA01-3F420784A1D0", "storage": "hosts/Server1/MultimediaStorage.AntiqueWhite/MultimediaStorage", "binding": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0", "media_source": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0", "origin": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0", "mimetype": "video/vc-raw", "origin_storage": "", "origin_storage_source": "" }, { "access_point": "hosts/Server1/MultimediaStorage.AntiqueWhite/Sources/src.A7CC6732-57F5-0FF0-C48C-7ADA7ECD779D", "storage": "hosts/Server1/MultimediaStorage.AntiqueWhite/MultimediaStorage", "binding": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0", "media_source": "hosts/Server1/DeviceIpint.10/SourceEndpoint.audio:0", "origin": "hosts/Server1/DeviceIpint.10/SourceEndpoint.audio:0", "mimetype": "application/audio", "origin_storage": "", "origin_storage_source": "" } ] }, { "name": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0", "storage": "hosts/Server1/MultimediaStorage.Aquamarine/MultimediaStorage", "archive": { "access_point": "hosts/Server1/MultimediaStorage.Aquamarine/MultimediaStorage", "display_name": "Aquamarine", "display_id": "MultimediaStorage.Aquamarine", "is_embedded": false, "archive_access": "ARCHIVE_ACCESS_FULL", "bindings": [], "is_activated": true }, "is_default": false, "sources": [ { "access_point": "hosts/Server1/MultimediaStorage.Aquamarine/Sources/src.9287FD97-D0FE-4675-B3E4-3E859ABC92B8", "storage": "hosts/Server1/MultimediaStorage.Aquamarine/MultimediaStorage", "binding": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0", "media_source": "hosts/Server1/AVDetector.14/SourceEndpoint.vmda", "origin": "hosts/Server1/AVDetector.14/SourceEndpoint.vmda", "mimetype": "application/vmda", "origin_storage": "", "origin_storage_source": "" }, { "access_point": "hosts/Server1/MultimediaStorage.Aquamarine/Sources/src.19C6698F-5674-7A0A-8C6F-2253D21F86D2", "storage": "hosts/Server1/MultimediaStorage.Aquamarine/MultimediaStorage", "binding": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0", "media_source": "hosts/Server1/AVDetector.35/SourceEndpoint.vmda", "origin": "hosts/Server1/AVDetector.35/SourceEndpoint.vmda", "mimetype": "application/vmda", "origin_storage": "", "origin_storage_source": "" }, { "access_point": "hosts/Server1/MultimediaStorage.Aquamarine/Sources/src.D208E3CC-E717-BC96-DA01-3F420784A1D0", "storage": "hosts/Server1/MultimediaStorage.Aquamarine/MultimediaStorage", "binding": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0", "media_source": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0", "origin": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0", "mimetype": "video/vc-raw", "origin_storage": "", "origin_storage_source": "" } ] } ], "ray": [], "relay": [], "detectors": [ { "access_point": "hosts/Server1/AVDetector.14/EventSupplier", "display_name": "", "display_id": "14", "parent_detector": "", "is_activated": true, "scene_descriptions": [ { "access_point": "hosts/Server1/AVDetector.14/SourceEndpoint.vmda" } ], "events": [ { "id": "TargetList", "name": "", "event_type": "PERIODICAL_EVENT_TYPE" }, { "id": "plateRecognized", "name": "", "event_type": "ONE_PHASE_EVENT_TYPE" } ] }, { "access_point": "hosts/Server1/AVDetector.39/EventSupplier", "display_name": "", "display_id": "39", "parent_detector": "", "is_activated": false, "scene_descriptions": [], "events": [ { "id": "SmokeDetected", "name": "", "event_type": "TWO_PHASE_EVENT_TYPE" }, { "id": "MotionMask", "name": "", "event_type": "ONE_PHASE_EVENT_TYPE" } ] }, { "access_point": "hosts/Server1/AVDetector.40/EventSupplier", "display_name": "", "display_id": "40", "parent_detector": "", "is_activated": false, "scene_descriptions": [], "events": [ { "id": "FireDetected", "name": "", "event_type": "TWO_PHASE_EVENT_TYPE" }, { "id": "MotionMask", "name": "", "event_type": "ONE_PHASE_EVENT_TYPE" } ] }, { "access_point": "hosts/Server1/AVDetector.35/EventSupplier", "display_name": "", "display_id": "35", "parent_detector": "", "is_activated": true, "scene_descriptions": [ { "access_point": "hosts/Server1/AVDetector.35/SourceEndpoint.vmda" } ], "events": [ { "id": "TargetList", "name": "", "event_type": "PERIODICAL_EVENT_TYPE" }, { "id": "faceAppeared", "name": "", "event_type": "ONE_PHASE_EVENT_TYPE" } ] } ], "offline_detectors": [], "group_ids": [ "e2f20843-7ce5-d04c-8a4f-826e8b16d39c" ], "is_activated": true, "text_sources": [], "speakers": [] } ], "not_found_objects": [], "unreachable_objects": [] } --ngpboundary Content-Type: application/json; charset=utf-8 Content-Length: 71 { "items": [], "not_found_objects": [], "unreachable_objects": [] }
Получение списка всех видеокамер всех узлов данного Сервера
Тело запроса:
{ "method": "axxonsoft.bl.domain.DomainService.ListCameras", "data": { "view": "VIEW_MODE_NO_CHILD_OBJECTS" } }
Получение списка всех видеокамер конкретного узла
Тело запроса:
{ "method": "axxonsoft.bl.domain.DomainService.ListCameras", "data": { "filter": "hosts/Node1/", "view": "VIEW_MODE_NO_CHILD_OBJECTS" } }
Получение информации о видеоканале
Тело запроса:
{ "method": "axxonsoft.bl.domain.DomainService.ListCameras", "data": { "view": "VIEW_MODE_FULL", "query": { "query": "комментарий.1", "search_fields": "DECORATED_NAME", "search_type": "SUBSTRING", "decorated_name_template": "{comment}.{display_id}" }, "page_token":"", "page_size":"100" } }
где view – указывает, как будет отображаться результат:
query – позволяет получить подмножество результатов в соответствии с запросом поиска.
search_type – целое число или значение, определяющее, какой тип поиска использовать:
search_fields – список целых чисел или значений, разделенных символом "|", определяющий, в каких полях необходимо выполнять поиск. Если найдено совпадение, поиск в последующих полях производиться не будет. Допустимыми значениями являются:
decorated_name_template – шаблон, определяющий, как будет построена конечная строка поиска, на основе которой будет выполняться поиск. Существуют ключевые слова, которые могут быть заменены фактическими значениями устройства. Ключевыми словами являются:
По умолчанию задан шаблон {display_id}.{display_name}. Например, для устройства, имеющего имя "Камера" и идентификатор "1", конечной строкой поиска будет "1.Камера".
page_token и page_size – используются для постраничного вывода результата запроса.
Пример ответа:
--ngpboundary Content-Type: application/json; charset=utf-8 Content-Length: 5018 { "items": [ { "access_point": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0", "incomplete": false, "display_name": "Камера", "display_id": "1", "ip_address": "0.0.0.0", "camera_access": "CAMERA_ACCESS_FULL", "vendor": "AxxonSoft", "model": "Virtual", "firmware": "1.0.0", "comment": "комментарий", "armed": true, "geo_location_latitude": "0", "geo_location_longitude": "0", "geo_location_azimuth": "0", "breaks_unused_connections": false, "serial_number": "", "video_streams": [ { "stream_acess_point": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0", "decoder_acess_point": "hosts/Server1/VideoDecoder.1/SourceEndpoint.video", "enabled": true, "display_name": "Основной поток", "display_id": "0", "is_activated": true } ], "microphones": [ { "access_point": "hosts/Server1/DeviceIpint.1/SourceEndpoint.audio:0", "display_name": "", "display_id": "0", "microphone_access": "MICROPHONE_ACCESS_FULL", "is_activated": false, "enabled": false } ], "ptzs": [], "archive_bindings": [ { "name": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0", "storage": "hosts/Server1/DeviceIpint.1/MultimediaStorage.0", "archive": { "access_point": "hosts/Server1/DeviceIpint.1/MultimediaStorage.0", "incomplete": false, "display_name": "Встроенное хранилище", "display_id": "DeviceIpint.1", "is_embedded": true, "archive_access": "ARCHIVE_ACCESS_FULL", "bindings": [], "is_activated": false, "enabled": true }, "is_default": false, "is_replica": false, "is_permanent": false, "sources": [ { "access_point": "hosts/Server1/DeviceIpint.1/Sources/src.0", "storage": "hosts/Server1/DeviceIpint.1/MultimediaStorage.0", "binding": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0", "media_source": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0", "origin": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0", "mimetype": "video/h264", "origin_storage": "", "origin_storage_source": "" } ] }, { "name": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0", "storage": "hosts/Server1/MultimediaStorage.AliceBlue/MultimediaStorage", "archive": { "access_point": "hosts/Server1/MultimediaStorage.AliceBlue/MultimediaStorage", "incomplete": false, "display_name": "Архив AliceBlue", "display_id": "MultimediaStorage.AliceBlue", "is_embedded": false, "archive_access": "ARCHIVE_ACCESS_FULL", "bindings": [], "is_activated": true, "enabled": true }, "is_default": true, "is_replica": false, "is_permanent": true, "sources": [ { "access_point": "hosts/Server1/MultimediaStorage.AliceBlue/Sources/src.CDF139D0-A77B-90C2-6C16-D2F295C7A5CB", "storage": "hosts/Server1/MultimediaStorage.AliceBlue/MultimediaStorage", "binding": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0", "media_source": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0", "origin": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0", "mimetype": "video/vc-raw", "origin_storage": "", "origin_storage_source": "" }, { "access_point": "hosts/Server1/MultimediaStorage.AliceBlue/Sources/src.FF0D2704-017C-3556-B43D-A35405448682", "storage": "hosts/Server1/MultimediaStorage.AliceBlue/MultimediaStorage", "binding": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0", "media_source": "hosts/Server1/DeviceIpint.1/SourceEndpoint.audio:0", "origin": "hosts/Server1/DeviceIpint.1/SourceEndpoint.audio:0", "mimetype": "application/audio", "origin_storage": "", "origin_storage_source": "" } ] } ], "ray": [], "relay": [], "detectors": [], "offline_detectors": [], "group_ids": [ "e2f20843-7ce5-d04c-8a4f-826e8b16d39c" ], "is_activated": true, "text_sources": [], "speakers": [], "enabled": true, "panomorph": { "enabled": false, "fit_to_frame": false, "camera_position": 0, "view_type": 0, "camera_lens": "FISH_EYE_LENS", "fisheye_circles": { "circle": [ { "center": { "x": 0, "y": 0 }, "radius": 0 } ] } }, "video_buffer_size": 50, "video_buffer_enabled": false, "alternative_view": { "alternative_camera_name": "", "second_alternative_camera_name": "" } } ], "next_page_token": "", "search_meta_data": [ { "score": 0, "matches": [ "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13" ] } ] } --ngpboundary Content-Type: application/json; charset=utf-8 Content-Length: 66 { "items": [], "next_page_token": "", "search_meta_data": [] }