Документация для версии Axxon Next 4.5.0 - 4.5.10. Документация на другие версии также доступна.

Предыдущая страница Синхронизация времени с Сервером и видеокамерами  Работа с устройствами через gRPC API (ConfigurationService) Следующая страница

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"
	}
}
  • No labels