Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Reverted from v. 3

...

Получение информации об устройстве

Code Block
{
    "method": "ITVaxxonsoft.bl.config.ConfigurationService.ListUnits",
    "data": {
        "unit_uids": [
            "hosts/Server1/DeviceIpint.10"
        ]
    }
}

Примет ответа:

Expand


Code Block
{
    "units": [
        {
            "uid": "hosts/Server1/DeviceIpint.10",
            "display_id": "10",
            "type": "DeviceIpint",
            "display_name": "",
            "access_point": "",
            "properties": [
    {
     "id": "display_name",
     "name": "Display name",
 {
        "type": "string",
     "readonly": false,
     "value_stringid": "axisdisplay_name",
     },
    {
     "id": "driverName",
     "name": "DriverDisplay Namename",
        "type": "string",
     "readonly": true,
     "value_stringtype": "Axisstring",
    },
     {
     "id": "driverVersion",
     "namereadonly": "Driver Version"false,
     "type": "string",
     "readonly": true,
         "value_string": "3.0.0axis"
     },
     {
     "id": "vendor" },
     "name": "Device Vendor",
          "type": "string",
 {
        "readonly": false,
     "enum_constraint": {},
     "value_stringid": "AxisdriverName",
    },
     {
     "id": "model",
     "name": "DeviceDriver ModelName",
     "type": "string",
     "readonly": false,
         "value_stringtype": "P1343string",
     },
    {
     "id": "firmware",
     "namereadonly": "Firmware version"true,
       "type": "string",
       "readonly": false,
     "value_string": "5.06Axis"
                },
                {
     "id": "address",
     "name": "IP Address of device",
     "typeid": "stringdriverVersion",
     "readonly": false,
               "value_stringname": "192.168.0.181"
Driver Version",
        },
       {
     "idtype": "portstring",
       "name": "Port number",
     "type": "int32",
     "readonly": falsetrue,
     "value_int32": 80
      },
    {
     "idvalue_string": "useDefaultAuthentication3.0.0",
      "name": "Use default device credentials",
     "type": "bool" },
     "readonly": false,           {
     "value_bool": false
      },
    {
     "id": "uservendor",
        "name": "Login",
     "type": "string",
     "readonlyname": "Device falseVendor",
      "value_string": "root"
    },
    {
     "idtype": "passwordstring",
        "name": "Password",
     "type": "string",
     "readonly": false,
       "value_string": "pass"
    },
    {
     "idenum_constraint": "blockingConfiguration"{},
           "name": "Preserve device settings",
         "typevalue_string": "boolAxis",
     "readonly": false,
     "value_bool": false
    },
                {
       "id": "geoLocationLatitude",
     "name": "Geolocation Latitude",
     "typeid": "doublemodel",
     "readonly": false,
       "value_double": 35
    },
   "name": "Device Model",
               {
     "idtype": "geoLocationLongitudestring",
      "name": "Geolocation Longitude",
        "type": "double",
     "readonly": false,
      "value_double": 45
    },
    {
     "idvalue_string": "geoLocationAzimuthP1343",
      "name": "Geolocation Azimuth",
         "type": "double" },
     "readonly": false,
     "value_double": 0
    }{
   ],
       "units": [
    {
     "uidid": "hosts/Server1/DeviceIpint.10/VideoChannel.0firmware",
        "display_id": "0",
     "type": "VideoChannel",
     "display_name": "Firmware version",
        "access_point": "",
     "properties": [],
     "unitstype": []"string",
        "factory": [],
     "destruction_args": [],
     "discoverablereadonly": false,
      "status": "UNIT_STATUS_ACTIVE",
        "stripped": false,
     "opaquevalue_paramsstring": [],
"5.06"
           "assigned_templates": []
    },
    {
     "uid": "hosts/Server1/DeviceIpint.10/Microphone.0",
     "display_id": "0",
 {
        "type": "Microphone",
     "display_name": "",
     "access_pointid": "address",
     "properties": [],
       "units": [],
        "factoryname": [] "IP Address of device",
      "destruction_args": [],
        "discoverable": false,
     "statustype": "UNIT_STATUS_INACTIVEstring",
             "stripped": false,
       "opaque_paramsreadonly": []false,
     "assigned_templates": []
      },
    {
     "uidvalue_string": "hosts/Server1/DeviceIpint.10/Telemetry192.168.0.181",
     "display_id": "0",
          "type": "Telemetry" },
         "display_name": "",
     "access_point": "",
 {
        "properties": [],
     "units": [],
     "factoryid": []"port",
        "destruction_args": [],
     "discoverable": false,
     "statusname": "UNIT_STATUS_ACTIVEPort number",
      "stripped": false,
     "opaque_params": [],
        "assigned_templatestype": []
"int32",
     },
    {
     "uid": "hosts/Server1/DeviceIpint.10/IO.0",
     "display_idreadonly": "0"false,
        "type": "IO",
     "display_name": "",
     "accessvalue_pointint32": "",80
       "properties": [],
        "units": [] },
      "factory": [],
     "destruction_args": [],
   {
  "discoverable": false,
     "status": "UNIT_STATUS_INACTIVE",
     "stripped": false,
     "opaque_paramsid": []"useDefaultAuthentication",
      "assigned_templates": []
    },
    {
     "uidname": "hosts/Server1/DeviceIpint.10/Speaker.0Use default device credentials",
              "display_id": "0",
     "type": "Speakerbool",
      "display_name": "",
     "access_point": "",
        "propertiesreadonly": []false,
       "units": [],
       "factory": [],
     "destructionvalue_argsbool": [],
false
        "discoverable": false,
       "status": "UNIT_STATUS_INACTIVE" },
      "stripped": false,
         "opaque_params": [],
 {
      "assigned_templates": []
        }
   ],
   "factoryid": []"user",
   "destruction_args": [],
             "discoverable": false,
   "statusname": "UNIT_STATUS_ACTIVELogin",
                    "strippedtype": false"string",
    "opaque_params": [],
   "assigned_templates": [
    "502f5739-0b18-4852-891a-35aefbd85d7c"
   ]
  }
 ],
 "unreachable_objectsreadonly": []false,
 "not_found_objects": []
}

В свойствах поля units содержится следующая информация:

  • имя устройства,
  • производитель,
  • модель,
  • IP-адрес,
  • порт,
  • прошивка,
  • логин и пароль,
  • данные геолокации.

Дочерние объекты устройства (видеоканалы, потоки, микрофоны, динамики, телеметрия, датчики и реле) будут указаны в дочерних units.

Получение информации по дочерним объектам устройств

Пример запроса на получение информации о видеоканале:

Code Block
{
 "method":"ITV.bl.config.ConfigurationService.ListUnits",
 "data":{
  "unit_uids":["hosts/Server1/DeviceIpint.10/VideoChannel.0"]
   }
}

Ответ:

                   "value_string": "root"
                },
                {
                    "id": "password",
                    "name": "Password",
                    "type": "string",
                    "readonly": false,
                    "value_string": "pass"
                },
                {
                    "id": "blockingConfiguration",
                    "name": "Preserve device settings",
                    "type": "bool",
                    "readonly": false,
                    "value_bool": false
                },
                {
                    "id": "geoLocationLatitude",
                    "name": "Geolocation Latitude",
                    "type": "double",
                    "readonly": false,
                    "value_double": 35
                },
                {
                    "id": "geoLocationLongitude",
                    "name": "Geolocation Longitude",
                    "type": "double",
                    "readonly": false,
                    "value_double": 45
                },
                {
                    "id": "geoLocationAzimuth",
                    "name": "Geolocation Azimuth",
                    "type": "double",
                    "readonly": false,
                    "value_double": 0
                }
            ],
            "units": [
                {
                    "uid": "hosts/Server1/DeviceIpint.10/VideoChannel.0",
                    "display_id": "0",
                    "type": "VideoChannel",
                    "display_name": "",
                    "access_point": "",
                    "properties": [],
                    "units": [],
                    "factory": [],
                    "destruction_args": [],
                    "discoverable": false,
                    "status": "UNIT_STATUS_ACTIVE",
                    "stripped": false,
                    "opaque_params": [],
                    "assigned_templates": []
                },
                {
                    "uid": "hosts/Server1/DeviceIpint.10/Microphone.0",
                    "display_id": "0",
                    "type": "Microphone",
                    "display_name": "",
                    "access_point": "",
                    "properties": [],
                    "units": [],
                    "factory": [],
                    "destruction_args": [],
                    "discoverable": false,
                    "status": "UNIT_STATUS_INACTIVE",
                    "stripped": false,
                    "opaque_params": [],
                    "assigned_templates": []
                },
                {
                    "uid": "hosts/Server1/DeviceIpint.10/Telemetry.0",
                    "display_id": "0",
                    "type": "Telemetry",
                    "display_name": "",
                    "access_point": "",
                    "properties": [],
                    "units": [],
                    "factory": [],
                    "destruction_args": [],
                    "discoverable": false,
                    "status": "UNIT_STATUS_ACTIVE",
                    "stripped": false,
                    "opaque_params": [],
                    "assigned_templates": []
                },
                {
                    "uid": "hosts/Server1/DeviceIpint.10/IO.0",
                    "display_id": "0",
                    "type": "IO",
                    "display_name": "",
                    "access_point": "",
                    "properties": [],
                    "units": [],
                    "factory": [],
                    "destruction_args": [],
                    "discoverable": false,
                    "status": "UNIT_STATUS_INACTIVE",
                    "stripped": false,
                    "opaque_params": [],
                    "assigned_templates": []
                },
                {
                    "uid": "hosts/Server1/DeviceIpint.10/Speaker.0",
                    "display_id": "0",
                    "type": "Speaker",
                    "display_name": "",
                    "access_point": "",
                    "properties": [],
                    "units": [],
                    "factory": [],
                    "destruction_args": [],
                    "discoverable": false,
                    "status": "UNIT_STATUS_INACTIVE",
                    "stripped": false,
                    "opaque_params": [],
                    "assigned_templates": []
                }
            ],
            "factory": [],
            "destruction_args": [],
            "discoverable": false,
            "status": "UNIT_STATUS_ACTIVE",
            "stripped": false,
            "opaque_params": [],
            "assigned_templates": [
                "502f5739-0b18-4852-891a-35aefbd85d7c"
            ]
        }
    ],
    "unreachable_objects": [],
    "not_found_objects": []
}


В свойствах поля units содержится следующая информация:

  • имя устройства,
  • производитель,
  • модель,
  • IP-адрес,
  • порт,
  • прошивка,
  • логин и пароль,
  • данные геолокации.

Дочерние объекты устройства (видеоканалы, потоки, микрофоны, динамики, телеметрия, датчики и реле) будут указаны в дочерних units.

Получение информации по дочерним объектам устройств

Пример запроса на получение информации о видеоканале:

Code Block
{
    "method":"axxonsoft.bl.config.ConfigurationService.ListUnits",
    "data":{
        "unit_uids":["hosts/Server1/DeviceIpint.10/VideoChannel.0"]
            }
}

Ответ:

Expand


Code Block
{
                    "uid": "hosts/Server1/DeviceIpint.10/VideoChannel.0",
                    "display_id": "0",
                    "type": "VideoChannel",
                    "display_name": "",
                    "access_point": "",
                    "properties": [
                        {
                            "id": "channel_id",
                            "name": "",
                            "type": "int32",
                            "readonly": true,
                            "value_int32": 0
                        },
                        {
                            "id": "display_name",
                            "name": "Display name",
                            "type": "string",
                            "readonly": false,
                            "value_string": "axis"
                        },
                        {
                            "id": "comment",
                            "name": "Comment",
                            "type": "string",
                            "readonly": false,
                            "value_string": ""
                        },
                        {
                            "id": "enabled",
                            "name": "Enable VideoChannel",
                            "type": "bool",
                            "readonly": false,
                            "value_bool": true
                        },
                        {
                            "id": "brightness",
                            "name": "",
                            "type": "int32",
                            "readonly": false,
                            "range_constraint": {},
                            "value_int32": 50
                        },
                        {
                            "id": "contrast",
                            "name": "",
                            "type": "int32",
                            "readonly": false,
                            "range_constraint": {},
                            "value_int32": 50
                        },
                        {
                            "id": "digitalPtz",
                            "name": "",
                            "type": "bool",
                            "readonly": false,
                            "value_bool": false
                        },
                        {
                            "id": "flickerfree",
                            "name": "",
                            "type": "string",
                            "readonly": false,
                            "enum_constraint": {},
                            "value_string": "auto"
                        },
                        {
                            "id": "imageFlip",
                            "name": "",
                            "type": "int32",
                            "readonly": false,
                            "enum_constraint": {},
                            "value_int32": 0
                        },
                        {
                            "id": "maxZoom",
                            "name": "",
                            "type": "int32",
                            "readonly": false,
                            "enum_constraint": {},
                            "value_int32": 250
                        },
                        {
                            "id": "saturation",
                            "name": "",
                            "type": "int32",
                            "readonly": false,
                            "range_constraint": {},
                            "value_int32": 50
                        },
                        {
                            "id": "sharpness",
                            "name": "",
                            "type": "int32",
                            "readonly": false,
                            "range_constraint": {},
                            "value_int32": 50
                        }
                    ],
                    "units": [
                        {
                            "uid": "hosts/Server1/DeviceIpint.10/VideoChannel.0/Streaming.0",
                            "display_id": "0",
                            "type": "Streaming",
                            "display_name": "",
                            "access_point": "",
                            "properties": [],
                            "units": [],
                            "factory": [],
                            "destruction_args": [],
                            "discoverable": false,
                            "status": "UNIT_STATUS_ACTIVE",
                            "stripped": false,
                            "opaque_params": [],
                            "assigned_templates": []
                        },
                        {
                            "uid": "hosts/Server1/DeviceIpint.10/VideoChannel.0/Streaming.1",
                            "display_id": "1",
                            "type": "Streaming",
                            "display_name": "",
                            "access_point": "",
                            "properties": [],
                            "units": [],
                            "factory": [],
                            "destruction_args": [],
                            "discoverable": false,
                            "status": "UNIT_STATUS_ACTIVE",
                            "stripped": false,
                            "opaque_params": [],
                            "assigned_templates": []
                        },
                        {
                            "uid": "hosts/Server1/DeviceIpint.10/VideoChannel.0/Detector.motion_detection",
                            "display_id": "motion_detection",
                            "type": "Detector",
                            "display_name": "",
                            "access_point": "",
                            "properties": [],
                            "units": [],
                            "factory": [],
                            "destruction_args": [],
                            "discoverable": false,
                            "status": "UNIT_STATUS_INACTIVE",
                            "stripped": false,
                            "opaque_params": [],
                            "assigned_templates": []
                        },
                        {
                            "uid": "hosts/Server1/DeviceIpint.10/VideoChannel.0/Detector.tampering_detection",
                            "display_id": "tampering_detection",
                            "type": "Detector",
                            "display_name": "",
                            "access_point": "",
                            "properties": [],
                            "units": [],
                            "factory": [],
                            "destruction_args": [],
                            "discoverable": false,
                            "status": "UNIT_STATUS_INACTIVE",
                            "stripped": false,
                            "opaque_params": [],
                            "assigned_templates": []
                        },
                        {
                            "uid": "hosts/Server1/DeviceIpint.10/VideoChannel.0/Detector.audio_detection",
                            "display_id": "audio_detection",
                            "type": "Detector",
                            "display_name": "",
                            "access_point": "",
                            "properties": [],
                            "units": [],
                            "factory": [],
                            "destruction_args": [],
                            "discoverable": false,
                            "status": "UNIT_STATUS_INACTIVE",
                            "stripped": false,
                            "opaque_params": [],
                            "assigned_templates": []
                        }
                    ],
                    "factory": [],
                    "destruction_args": [],
                    "discoverable": false,
                    "status": "UNIT_STATUS_ACTIVE",
                    "stripped": false,
                    "opaque_params": [],
                    "assigned_templates": []
                }


В свойствах properties содержатся параметры видео, в дочерних − потоки и детекторы, если созданы.

Изменение конфигурации

Добавление устройства

Добавление виртуальной видеокамеры без настроек:

Expand


Code Block
{
    "method": "axxonsoft.bl.config.ConfigurationService.ChangeConfig",
    "data": {
        "added": [
            {
                "uid": "hosts/Server1",
                "units": [
                    {
                        "type": "DeviceIpint",
                        "units": [],
                        "properties": [
                            {
                                "id": "vendor",
                                "value_string": "AxxonSoft",
                                "properties": [
                                    {
                                        "id": "model",
                                        "value_string": "Virtual",
                                        "properties": []
                                    }
                                ]
                            },
                            {
                                "id": "display_name",
                                "value_string": "newOrder2",
                                "properties": []
                            },
                      
Expand
Code Block
{
     "uid": "hosts/Server1/DeviceIpint.10/VideoChannel.0",
     "display_id": "0",
     "type": "VideoChannel",
     "display_name": "",
     "access_point": "",
     "properties": [
      {
       "id": "channel_id",
       "name": "",
       "type": "int32",
       "readonly": true,
       "value_int32": 0
      },
      {
       "id": "display_name",
       "name": "Display name",
       "type": "string",
       "readonly": false,
       "value_string": "axis"
      },
      {
       "id": "comment",
       "name": "Comment",
       "type": "string",
       "readonly": false,
       "value_string": ""
      },
      {
       "id": "enabled",
       "name": "Enable VideoChannel",
       "type": "bool",
       "readonly": false,
       "value_bool": true
      },
      {
       "id": "brightness",
         "name": "",
       "type": "int32",
       "readonlyid": false"blockingConfiguration",
       "range_constraint": {},
       "value_int32": 50
      },
      {
       "idvalue_bool": "contrast"false,
        "name": "",
       "type": "int32",
       "readonly": false,
       "range_constraintproperties": {},[]
       "value_int32": 50
      },
      {
       "id": "digitalPtz" },
        "name": "",
       "type": "bool",
       "readonly": false,
   {
    "value_bool": false
      },
      {
       "id": "flickerfree",
       "nameid": "display_id",
       "type": "string",
         "readonly": false,
       "enum_constraint": {},
       "value_string": "auto199"
                      },
      {}
       "id": "imageFlip",
         "name": "",
       "type": "int32",
 ]
           "readonly": false,
       "enum_constraint": {},
       "value_int32": 0
      },
  ]
    {
       "id": "maxZoom", }
       "name": "", ]
       "type": "int32",
}
}



где uid − Сервер, где создается устройство.

В результате будет создана камера с дочерними микрофоном, встроенным архивом и датчиком. Все дочерние объекты, кроме видеоканала, будут выключены. 


Code Block
{    
"readonly

	"failed": 
false
[],
    
"enum_constraint

	"added": ["hosts/Server1/DeviceIpint.199"]
}

где 199 − id созданного устройства.

Info
titleПримечание

В некоторых случаях id созданного устройства может не совпадать с заданным значением display_id в запросе.

Создание трекера объектов

Code Block
{
    "method":"axxonsoft.bl.config.ConfigurationService.ChangeConfig
{}, "value_int32": 250 }, { "id": "saturation
",
    
"
name
data":{
 
"",
       "
type
added": 
"int32",
{
    
"readonly":
 
false,
       "
range_constraint
uid":
{},
 
"value_int32": 50 },
"hosts/Server1",
     
{
       "
id
units": 
"sharpness",
{
       
"name": "",
         "type": "
int32
AVDetector",
"readonly":
 
false,
       
"range_constraint":
 
{},
       "
value_int32
properties": 
50
[
       
}
       
],
     
"units":
 
[
{
       
{
         
"uid":
 
"hosts/Server1/DeviceIpint.10/VideoChannel.0/Streaming.0",
       "
display_
id": "
0
display_name",
        
"type":
 
"Streaming",
       
"display_name":
 
"",
       "
access
value_
point
string": "Object tracker"
,

  
"properties":
 
[],
       
"units": [],
         
"factory": []
 },
      
"destruction_args":
 
[],
       
"discoverable":
 
false,
     {  
"status":
 
"UNIT_STATUS_ACTIVE",
       
"stripped":
 
false,
       
"opaque_params":
 
[],
   
    
"assigned_templates":
 
[]
      
},
      
{
       "
uid
id": "
hosts/Server1/DeviceIpint.10/VideoChannel.0/Streaming.1
input",
        
"display_id":
 
"1",
       
"type":
 
"Streaming",
       "
display
value_
name
string": "Video",
                
"access_point":
 
"",
       "properties": [
],

                 
"units":
 
[],
       
"factory":
 
[],
  {     
"destruction_args":
 
[],

        
"discoverable":
 
false,
       
"status":
 
"UNIT_STATUS_ACTIVE",
       
"stripped":
 
false,
       "
opaque_params
id": 
[]
"camera_ref",
            
"assigned_templates":
 
[]
      
},
      
{
       "
uid
value_string": "hosts/Server1/DeviceIpint.
10
200/
VideoChannel
SourceEndpoint.
0/Detector.motion_detection",
video:0:0",
                                "
display_id
properties": 
"motion_detection",
[
           
"type":
 
"Detector",
       
"display_name":
 
"",
       
"access_point":
 
"",
       
"properties": [],
 {
       
"units": [],
         
"factory":
 
[],
       
"destruction_args":
 
[],
       
"discoverable":
 
false,
       "
status
id": "
UNIT
streaming_
STATUS_INACTIVE
id",
     
"stripped": false,
       
"opaque_params":
 
[],
       
"assigned_templates":
 
[]
      
},
      
{
       "
uid
value_string": "hosts/Server1/DeviceIpint.
10
200/
VideoChannel
SourceEndpoint.
0/Detector.tampering_detection",
video:0:0"
                                   
"display_id": "tampering_detection",
 }
       
"type":
 
"Detector",
       
"display_name":
 
"",
       
"access_point":
 
"",
       
"properties":
 
[
]
,

       
"units": [],
         
"factory":
 
[],
       
"destruction_args":
 
[],
   },    
"discoverable":
 
false,
       
"status":
 
"UNIT_STATUS_INACTIVE",
       
"stripped":
 
false,

       
"opaque_params":
 
[],
       
"assigned_templates":
 
[]
      
},
      {
       
"uid": "hosts/Server1/DeviceIpint.10/VideoChannel.0/Detector.audio_detection",
         
"display_id":
 
"audio_detection",
       
"type":
 
"Detector",
       "
display_name
id": "detector",
        
"access_point":
 
"",
       
"properties":
 
[],
       
"units":
 
[],
       "
factory
value_string": 
[],
"SceneDescription"
        
"destruction_args": [],
           
"discoverable":
 
false,
       
"status": "UNIT_STATUS_INACTIVE",
 }
       
"stripped":
 
false,
       
"opaque_params":
 
[],
       
"assigned_templates":
 
[
]
      
}
      
],
     
"factory":
 
[],
  }
   
"destruction_args":
 
[],
     
"discoverable":
 
false,
     
"status": "UNIT_STATUS_ACTIVE",
 ]
     
"stripped": false,
     
"opaque_params": [],
  }
       
"assigned_templates": []
 }
    }

В свойствах properties содержатся параметры видео, в дочерних − потоки и детекторы, если созданы.

Изменение конфигурации

Добавление устройства

Добавление виртуальной видеокамеры без настроек:

...


}

Создание детектора движения в области под трекером объектов

Code Block
Code Block
{
    "method":
"
ITV
axxonsoft.bl.config.ConfigurationService.ChangeConfig",
 
"data":
 
{
  "
added
data":
[
{
    
"uid": "hosts/Server1",
    "
units
added": 
[
{
      
{
      "
type
uid": "
DeviceIpint
hosts/Server1",
     
"units":
 
[],
      "
properties
units": 
[
{
       
{
         "
id
type": "
vendor
AppDataDetector",
       
"value_string":
 
"ITV",
        "properties": [
         
{
          
"id": "model",
 {
             
"value_string":
 
"Virtual",
          "
properties
id": 
[]
"display_name",
          
}
        
]
      
},
"value_string": "AppDataDetectorMoveInZone"
           
{
        
"id": "display_name"
 },
        
"value_string": "newOrder2",
          
"properties":
 
[]
 {      
},
       
{
        
"id":
 
"blockingConfiguration",

        
"value_bool":
 
false,
        
"properties":
 
[]
      
}
"id": "input",
       
{
        
"id":
 
"display_id",
        "value_string": "
199" }
TargetList",
   
]
     
}
    
]
   
}
  
] } }

где uid − Сервер, где создается устройство.

В результате будет создана камера с дочерними микрофоном, встроенным архивом и датчиком. Все дочерние объекты, кроме видеоканала, будут выключены. 

Code Block
{ 
	"failed": [], 
	"added": ["hosts/Server1/DeviceIpint.199"]
}

где 199 − id созданного устройства.

Info
titleПримечание

В некоторых случаях id созданного устройства может не совпадать с заданным значением display_id в запросе.

Создание трекера объектов

{
 "method":"ITV.bl.config.ConfigurationService.ChangeConfig",
 "data":{
  "added": {
   "uid": "hosts/Server1",
   "units": {
    "type": "AVDetector",
    "properties": [
     {
       "properties": [
                            {      
                                "id": "displaycamera_nameref",
                                "value_string": "Object tracker"
hosts/Server1/DeviceIpint.200/SourceEndpoint.video:0:0",
               },
     {      
      "idproperties": "input",
[
          "value_string": "Video",
      "properties": [
       {  
        "id": "camera_ref",
 {
           "value_string": "hosts/Server1/DeviceIpint.200/SourceEndpoint.video:0:0",
        "properties": [
         {
          "id": "streaming_id",
              "value_string": "hosts/Server1/DeviceIpint.200/SourceEndpoint.video:0:0"
         }
        ]
       },   "value_string": "hosts/Server1/AVDetector.1/SourceEndpoint.vmda"
    
       {
        "id": "detector",
        "value_string": "SceneDescription"
       }
      ]
       }
    ]
   }
  }
 }
}

Создание детектора движения в области под трекером объектов

Code Block
{
 "method":"ITV.bl.config.ConfigurationService.ChangeConfig",
 "data":{
  "added": {
   "uid": "hosts/Server1", ]
   "units": {
    "type": "AppDataDetector",
    "properties": [
     {
      "id": "display_name",
  },    "value_string": "AppDataDetectorMoveInZone"
     },
     {      
      "id": "input",
      "value_string": "TargetList",
      "properties": [
       {
  
        "id": "camera_ref",
        "value_string": "hosts/Server1/DeviceIpint.200/SourceEndpoint.video:0:0",
             "propertiesid": ["detector",
          {
           "id": "streaming_id",
          "value_string": "hosts/Server1/AVDetector.1/SourceEndpoint.vmdaMoveInZone"
           }
          ]
       },
        
       {
        "id": "detector",
 ]
            "value_string": "MoveInZone"
       }
                ]
            }
     ]
   }
  }
  }
}

Изменение папки с видео для виртуальной камеры

Code Block
{
    "method": "ITVaxxonsoft.bl.config.ConfigurationService.ChangeConfig",
    "data": {
        "changed": [
            {
                "uid": "hosts/Server1/DeviceIpint.199/VideoChannel.0/Streaming.0",
                "type": "Streaming",
                "properties": [
                    {

                        "id": "folder",
                 "id": "folder",
      "value_string": "D:/Video"
                    }
                ],
                "opaque_params": []
            }
        ]
    }
}

Включение/выключение объекта

...

Включение микрофона:

Code Block
{
    "method":"ITVaxxonsoft.bl.config.ConfigurationService.ChangeConfig",
    "data":{
        "changed":[{
              "uid": "hosts/Server1/DeviceIpint.10/Microphone.0",
              "type": "Microphone",

              "properties": [ {
                  "id": "enabled",
                  "value_bool": true
                } ],
               "units":[]
        }]
    }
}

Удаление устройства

Code Block
{
    "method": "ITVaxxonsoft.bl.config.ConfigurationService.ChangeConfig",
    "data": {
        "removed": [
            {
                "uid": "hosts/Server1/DeviceIpint.199"
            }
        ]
    }
}