{ "method": "axxonsoft.bl.config.ConfigurationService.ListUnits", "data": { "unit_uids": [ "hosts/Server1/DeviceIpint.10" ] } } |
Response example:
|
The units field properties contain the following information:
The child objects of the device (video channels, streams, microphones, speakers, telemetry, sensors and relays) will be indicated in child units.
Request example for getting information about a video channel:
{ "method":"axxonsoft.bl.config.ConfigurationService.ListUnits", "data":{ "unit_uids":["hosts/Server1/DeviceIpint.10/VideoChannel.0"] } } |
Response:
|
The properties contain the video parameters, the child ones contain streams and detection tools, if created.
Adding a virtual video camera without settings:
{ "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": [] }, { "id": "blockingConfiguration", "value_bool": false, "properties": [] }, { "id": "display_id", "value_string": "199" } ] } ] } ] } } |
where uid is the Server where the device is created.
As a result, a camera with a child microphone, an embedded archive and a sensor will be created. All child objects except the video channel will be turned off.
{ "failed": [], "added": ["hosts/Server1/DeviceIpint.199"] } |
where 199 is the id of the created device.
In some cases, the id of the created device may not coincide with the specified value of display_id in the request. |
{ "method": "axxonsoft.bl.config.ConfigurationService.ChangeConfig", "data": { "changed": [ { "uid": "hosts/Server1/DeviceIpint.199/VideoChannel.0/Streaming.0", "type": "Streaming", "properties": [ { "id": "folder", "value_string": "D:/Video" } ], "opaque_params": [] } ] } |
Each unit contains an enabled property.
Enabling the microphone:
{ "method":"axxonsoft.bl.config.ConfigurationService.ChangeConfig", "data":{ "changed":[{ "uid": "hosts/Server1/DeviceIpint.10/Microphone.0", "type": "Microphone", "properties": [ { "id": "enabled", "value_bool": true } ], "units":[] }] } } |
{ "method": "axxonsoft.bl.config.ConfigurationService.ChangeConfig", "data": { "removed": [ { "uid": "hosts/Server1/DeviceIpint.199" } ] } } |