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/MultimediaStorage.Aqua"]
            }
}

Пример ответа (локальный архив):

Expand


Code Block
{
    "units": [
        {
            "uid": "hosts/Server1/MultimediaStorage.Aqua",
            "display_id": "Aqua",
            "type": "MultimediaStorage",
            "display_name": "Archive Aqua",
            "access_point": "",
            "properties": [
                {
                    "id": "display_name",
          "name": "Display          "name": "Display Name",
                    "type": "string",
                    "readonly": false,
                    "value_string": "Archive Aqua"
                },
                {
                    "id": "enabled",
                    "name": "Enabled",
                    "type": "bool",
                    "readonly": false,
                    "value_bool": true
                }
            ],
            "units": [
                {
                    "uid": "hosts/Server1/MultimediaStorage.Aqua/ArchiveVolume/H:/archiveAqua.afs",
                    "display_id": "H:/archiveAqua.afs",
          "type": "          "type": "ArchiveVolume",
                    "display_name": "",
                    "access_point": "",
                    "properties": [
            {
              "id": "file_size",{
              "name": "Volume size(GB)",
              "typeid": "int32file_size",
              "readonly": true,
                "value_int32name": 1
    "Volume size(GB)",
         }
          ],
          "unitstype": []"int32",
                "factory": [],
            "destruction_argsreadonly": [true,
            {
                "idvalue_int32": "remove_file",1
              "name": "Remove volume file",
        }
         "type": "bool",
          ],
    "readonly": false,
                "value_boolunits": false[],
            }
        "factory":  [],
          "discoverable": false,
          "statusdestruction_args": "UNIT_STATUS_ACTIVE",
[
            "stripped": false,
          "opaque_params": [],
 {
           "assigned_templates": []                 "id": "remove_file",
        },
          {
          "uidname": "hosts/Server1/MultimediaStorage.Aqua/ArchiveContext.b73f4b6c-2962-5d51-e9ee-ceb5420b4cd2Remove volume file",
            "display_id": "hosts/Server1/DeviceIpint.10/SourceEndpoint.video:0:0",
                "type": "ArchiveContextbool",
          "display_name": "",
          "access_point": "",
          "propertiesreadonly": [false,
            {
                "idvalue_bool": "streaming_id",false
              "name": "Archive Streaming ID",
          }
          "type": "string",
         ],
     "readonly": false,
              "enum_constraintdiscoverable": {
false,
                    "itemsstatus": ["UNIT_STATUS_ACTIVE",
                  {   "stripped": false,
                    "nameopaque_params": "axis"[],
                    "propertiesassigned_templates": [],
                },
            "value_string": "hosts/Server1/DeviceIpint.10/SourceEndpoint.video:0:0"    {
                  }  "uid": "hosts/Server1/MultimediaStorage.Aqua/ArchiveContext.b73f4b6c-2962-5d51-e9ee-ceb5420b4cd2",
                  {  "display_id": "hosts/Server1/DeviceIpint.10/SourceEndpoint.video:0:0",
                    "nametype": "axisArchiveContext",
                    "propertiesdisplay_name": []"",
                    "valueaccess_stringpoint": "hosts/Server1/DeviceIpint.10/SourceEndpoint.video:0:1"",
                  }
  "properties": [
             ]
           {
   },
              "value_string": "hosts/Server1/DeviceIpint.10/SourceEndpoint.video:0:0"
            }"id": "streaming_id",
            {
                "idname": "constant_recordingArchive Streaming ID",
              "name": "Constant recording",
              "type": "boolstring",
              "readonly": false,
              "value_boolreadonly": truefalse,
              },
              "enum_constraint": {
              "id": "prerecord_sec",
                  "nameitems": "Prerecording, seconds",[
              "type": "int32",
              "readonly": false,
      {
        "value_int32": 0
            },
            {
              "idname": "specific_fpsaxis",
              "name": "Specific FPS",
              "type": "double",
              "readonlyproperties": false[],
              "value_double": 0
            },
            {
   "value_string": "hosts/Server1/DeviceIpint.10/SourceEndpoint.video:0:0"
          "id": "archive_name",
                "name": "Archive display name",
       },
       "type": "string",
              "readonly": true,
              "value_string": "Archive Aqua"
{
               }
          ],
          "units": [],
          "factory"name": []"axis",
          "destruction_args": [],
          "discoverable": false,
          "status": "UNIT_STATUS_ACTIVE",
          "strippedproperties": false[],
          "opaque_params": [],
          "assigned_templates": []
        }
      ],
      "destructionvalue_argsstring": [],
"hosts/Server1/DeviceIpint.10/SourceEndpoint.video:0:1"
       "discoverable": false,
      "status": "UNIT_STATUS_ACTIVE",
      "stripped": false,
      "opaque_params": [],
      "assigned_templates": [] }
    }
    ],
  "unreachable_objects": [],
  "not_found_objects": []
}

Пример ответа (сетевой архив):

Expand
Code Block

  "units": [
               {
      "uid": "hosts/Server1/MultimediaStorage.Lime", ]
      "display_id": "Lime",
        "type": "MultimediaStorage",
      "display_name": "mr.Lime",
      "access_point": ""},
         "properties": [
        {
          "idvalue_string": "display_name",
hosts/Server1/DeviceIpint.10/SourceEndpoint.video:0:0"
           "name": "Display Name",
          "type": "string" },
           "readonly": false,
            "value_string": "mr.Lime"
 {
          },
        {
          "id": "enabledconstant_recording",
          "name": "Enabled",
          "type": "bool",
          "readonlyname": false"Constant recording",
          "value_bool": true
        }
      ],
      "unitstype": ["bool",
        {
           "uid": "hosts/Server1/MultimediaStorage.Lime/ArchiveVolume/\\\\192.168.25.112\\1\\archiveLime.afs",
          "display_idreadonly": "\\\\192.168.25.112\\1\\archiveLime.afs"false,
            "type": "ArchiveVolume",
          "display_name": "",     "value_bool": true
          "access_point": "",
          "properties": [
   },
         {
              "id": "user", {
              "name": "Login",
              "typeid": "stringprerecord_sec",
              "readonly": false,
              "value_stringname": "TesterPrerecording, seconds",
            },
            {
              "id""type": "passwordint32",
              "name": "Password",
              "typereadonly": "string"false,
              "readonly": false,
              "value_stringint32": "123456"0
            },
            {},
              "id": "file_size",
          {
      "name": "Volume size(GB)",
              "type": "int32      "id": "specific_fps",
              "readonly": true,
              "value_int32name": 2
   "Specific FPS",
         }
          ],
          "unitstype": []"double",
          "factory": [],
                  "destruction_argsreadonly": [false,
              {
              "idvalue_double": "remove_file",0
              "name": "Remove volume file",
          },
        "type": "bool",
              "readonly": false,
  {
             "value_bool": false
            }
  "id": "archive_name",
       ],
          "discoverable": false,
          "statusname": "UNIT_STATUS_ACTIVEArchive display name",
          "stripped": false,
                  "opaque_paramstype": []"string",
          "assigned_templates": []
             }
     "readonly": ]true,
       "factory": [],
      "destruction_args": [],
      "discoverable": false,
      "statusvalue_string": "UNIT_STATUS_ACTIVE",Archive Aqua"
      "stripped": false,
                  }
                "opaque_params": [    ],
         "assigned_templates           "units": [],
    }
              ],
  "unreachable_objectsfactory": [],
  "not_found_objects                  "destruction_args": []
}

где в units содержится:

  • файл/раздел архива (ArchiveVolume);
  • привязка камер (ArchiveContext).

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

Code Block
{
  "method":"ITV.bl.config.ConfigurationService.ListUnits",
  "data":{
    "unit_uids":["hosts/Server1/MultimediaStorage.Aqua/ArchiveContext.b73f4b6c-2962-5d51-e9ee-ceb5420b4cd2"]
      }
}

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

,
                    "discoverable": false,
                    "status": "UNIT_STATUS_ACTIVE",
                    "stripped": false,
                    "opaque_params": [],
                    "assigned_templates": []
                }
            ],
            "destruction_args": [],
            "discoverable": false,
            "status": "UNIT_STATUS_ACTIVE",
            "stripped": false,
            "opaque_params": [],
            "assigned_templates": []
        }
    ],
    "unreachable_objects": [],
    "not_found_objects": []
}


Пример ответа (сетевой архив):

Expand


Code Block

    "units": [
        {
            "uid": "hosts/Server1/MultimediaStorage.Lime",
            "display_id": "Lime",
            "type": "MultimediaStorage",
            "display_name": "mr.Lime",
            "access_point": "",
            "properties": [
                {
                    "id": "display_name",
                    "name": "Display Name",
                    "type": "string",
                    "readonly": false,
                    "value_string": "mr.Lime"
                },
                {
                    "id": "enabled",
                    "name": "Enabled",
                    "type": "bool",
                    "readonly": false,
                    "value_bool": true
                }
            ],
            "units": [
                {
                    "uid": "hosts/Server1/MultimediaStorage.Lime/ArchiveVolume/\\\\192.168.25.112\\1\\archiveLime.afs",
                    "display_id": "\\\\192.168.25.112\\1\\archiveLime.afs",
                    "type": "ArchiveVolume",
                    "display_name": "",
                    "access_point": "",
                    "properties": [
                        {
                            "id": "user",
                            "name": "Login",
                            "type": "string",
                            "readonly": false,
                            "value_string": "Tester"
                        },
                        {
                            "id": "password",
                            "name": "Password",
                            "type": "string",
                            "readonly": false,
                            "value_string": "123456"
                        },
                        {
                            "id": "file_size",
                            "name": "Volume size(GB)",
                            "type": "int32",
                            "readonly": true,
                            "value_int32": 2
                        }
                    ],
                    "units": [],
                    "factory": [],
                    "destruction_args": [
                        {
                            "id": "remove_file",
                            "name": "Remove volume file",
                            "type": "bool",
                            "readonly": false,
                            "value_bool": false
                        }
                    ],
                    "discoverable": false,
                    "status": "UNIT_STATUS_ACTIVE",
                    "stripped": false,
                    "opaque_params": [],
                    "assigned_templates": []
                }
            ],
            "factory": [],
            "destruction_args": [],
            "discoverable": false,
            "status": "UNIT_STATUS_ACTIVE",
            "stripped": false,
            "opaque_params": [],
            "assigned_templates": []
        }
    ],
    "unreachable_objects": [],
    "not_found_objects": []
}


где в units содержится:

  • файл/раздел архива (ArchiveVolume);
  • привязка камер (ArchiveContext).

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

Code Block
{
    "method":"axxonsoft.bl.config.ConfigurationService.ListUnits",
    "data":{
        "unit_uids":["hosts/Server1/MultimediaStorage.Aqua/ArchiveContext.b73f4b6c-2962-5d51-e9ee-ceb5420b4cd2"]
            }
}

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

Expand


Code Block
{
    "units": [
        {
            "uid": "hosts/Server1/MultimediaStorage.Aqua/ArchiveContext.b73f4b6c-2962-5d51-e9ee-ceb5420b4cd2",
            "display_id": "hosts/Server1/DeviceIpint.10/SourceEndpoint.video:0:0",
            "type": "ArchiveContext",
            "display_name": "",
            "access_point": "",
            "properties": [
                {
                    "id": "streaming_id",
                    "name": "Archive Streaming ID",
                    "type": "string",
                    "readonly": false,
                    "enum_constraint": {},
                    "value_string
Expand
Code Block
{
  "units": [
    {
      "uid": "hosts/Server1/MultimediaStorage.Aqua/ArchiveContext.b73f4b6c-2962-5d51-e9ee-ceb5420b4cd2",
      "display_id": "hosts/Server1/DeviceIpint.10/SourceEndpoint.video:0:01",
      "type": "ArchiveContext",
          },
               "display_name": "",
 {
         "access_point": "",
           "id": "properties": [
constant_recording",
          {
          "idname": "streaming_idConstant recording",
          "name": "Archive Streaming ID",
          "type": "stringbool",
                    "readonly": false,
          "enum_constraint": {},
          "value_stringbool": "hosts/Server1/DeviceIpint.10/SourceEndpoint.video:0:1"
false
                },
        {
          "id": "constant_recording",{
          "name": "Constant recording",
          "typeid": "boolprerecord_sec",
          "readonly": false,
          "value_boolname": false"Prerecording, seconds",
        },
        {
          "idtype": "prerecord_secint32",
          "name": "Prerecording, seconds",
          "typereadonly": "int32"false,
          "readonly": false,
          "value_int32": 2
                },
                {
                    "id": "specific_fps",
                    "name": "Specific FPS",
                    "nametype": "Specific FPSdouble",
          "type": "double",
          "readonly": false,
                    "value_double": 0
                },
                {
                    "id": "archive_name",
                    "name": "Archive display name",
                    "type": "string",
                    "readonly": true,
                    "value_string": "Archive Aqua"
                }
            ],
            "units": [],
            "factory": [],
            "destruction_args": [],
            "discoverable": false,
            "status": "UNIT_STATUS_INACTIVE",
            "stripped": false,
            "opaque_params": [],
            "assigned_templates": []
        }
    ],
    "unreachable_objects": [],
    "not_found_objects": []
}


...