Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Code Block
{
    "method":"axxonsoftITV.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":          "name": "Display "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)",
              "idtype": "file_sizeint32",
              "readonly": true,
              "namevalue_int32": "Volume size(GB)",
1
            }
          ],
          "typeunits": "int32"[],
          "factory": [],
                 "readonly"destruction_args": true,[
            {
              "id":  "valueremove_int32file": 1,
              "name": "Remove volume file",
       }
       "type": "bool",
            ],
      "readonly": false,
              "unitsvalue_bool": [],false
            }
         "factory": [],
          "discoverable": false,
          "destruction_argsstatus": ["UNIT_STATUS_ACTIVE",
          "stripped": false,
          "opaque_params": [],
   {
       "assigned_templates": []
        },
        {
          "iduid": "remove_filehosts/Server1/MultimediaStorage.Aqua/ArchiveContext.b73f4b6c-2962-5d51-e9ee-ceb5420b4cd2",
          "display_id": "hosts/Server1/DeviceIpint.10/SourceEndpoint.video:0:0",
          "type": "ArchiveContext",
       "   "display_name": "Remove volume file",
          "access_point": "",
                 "type"properties": "bool",[
            {
                "readonlyid": false"streaming_id",
              "name": "Archive Streaming ID",
              "value_booltype": false"string",
              "readonly": false,
         }
                    ],"enum_constraint": {
                    "discoverableitems": false,[
                    "status": "UNIT_STATUS_ACTIVE",{
                    "strippedname": false"axis",
                    "opaque_paramsproperties": [],
                    "assignedvalue_templatesstring": []"hosts/Server1/DeviceIpint.10/SourceEndpoint.video:0:0"
                  },
                  {
                    "uidname": "hosts/Server1/MultimediaStorage.Aqua/ArchiveContext.b73f4b6c-2962-5d51-e9ee-ceb5420b4cd2axis",
                    "display_idproperties": "hosts/Server1/DeviceIpint.10/SourceEndpoint.video:0:0"[],
                    "typevalue_string": "ArchiveContext",
hosts/Server1/DeviceIpint.10/SourceEndpoint.video:0:1"
                  }
   "display_name": "",
            ]
        "access_point": "",
     },
               "propertiesvalue_string": ["hosts/Server1/DeviceIpint.10/SourceEndpoint.video:0:0"
            },
            {
              "id": "constant_recording",
              "idname": "streaming_idConstant recording",
              "type": "bool",
              "namereadonly": "Archive Streaming ID"false,
                 "value_bool": true
           "type": "string" },
             {
               "readonlyid": false"prerecord_sec",
              "name": "Prerecording, seconds",
              "enum_constrainttype": {"int32",
                  "readonly": false,
              "itemsvalue_int32": [0
            },
            {
            {
  "id": "specific_fps",
              "name": "Specific FPS",
                     "name"type": "axisdouble",
                        "readonly": false,
                "propertiesvalue_double": [],0
            },
            {
                "value_stringid": "hosts/Server1/DeviceIpint.10/SourceEndpoint.video:0:0"archive_name",
              "name": "Archive display name",
                   }"type": "string",
              "readonly": true,
              "value_string": "Archive Aqua"
     {
       }
          ],
          "units": [],
            "namefactory": "axis"[],
          "destruction_args": [],
          "discoverable": false,
          "status": "UNIT_STATUS_ACTIVE",
          "propertiesstripped": []false,
          "opaque_params": [],
          "assigned_templates": []
        }
      ],
      "valuedestruction_stringargs": "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": [
        {
          "id": "display_name",
          "value_stringname": "hosts/Server1/DeviceIpint.10/SourceEndpoint.video:0:0"Display Name",
          "type": "string",
             }"readonly": false,
          "value_string": "mr.Lime"
        },
     {
   {
             "id": "enabled",
            "idname": "constant_recordingEnabled",
            "type": "bool",
                "name"readonly": "Constant recording"false,
                            "type"value_bool": "bool",true
        }
      ],
              "readonly"units": false,[
                {
            "value_booluid": true"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": "prerecord_secuser",
              "name": "Login",
              "nametype": "Prerecording, secondsstring",
              "readonly": false,
              "typevalue_string": "int32Tester",
            },
                "readonly": false,{
              "id": "password",
              "value_int32name": 0"Password",
              "type": "string",
             }  "readonly": false,
              "value_string": "123456"
          {
  },
            {
              "id": "specificfile_fpssize",
              "name": "Volume size(GB)",
              "nametype": "Specific FPSint32",
              "readonly": true,
              "typevalue_int32": "double",
2
            }
          ],
          "readonlyunits": false[],
                  "factory": [],
          "valuedestruction_doubleargs": 0[
            {
            },
  "id": "remove_file",
              "name": "Remove      {volume file",
              "type": "bool",
              "idreadonly": "archive_name"false,
              "value_bool": false
            }
 "name": "Archive display name",
      ],
          "discoverable": false,
           "typestatus": "stringUNIT_STATUS_ACTIVE",
          "stripped": false,
                 "readonly"opaque_params": true[],
          "assigned_templates": []
        }
      ],
   "value_string   "factory": "Archive Aqua"[],
      "destruction_args": [],
      "discoverable": false,
      "status": "UNIT_STATUS_ACTIVE",
   }
   "stripped": false,
      "opaque_params": [],
         ],"assigned_templates": []
                    "units": [],
                    "factory}
  ],
  "unreachable_objects": [],
                    "destruction_args"not_found_objects": [],
                    "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": []
}

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

...


}


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

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

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

Code Block
{
  "method":"ITV.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
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": "hosts/Server1/DeviceIpint.10/SourceEndpoint.video:0:10",
      "type": "ArchiveContext",
         }"display_name": "",
                {"access_point": "",
                    "id": "constant_recording","properties": [
        {
            "nameid": "Constant recordingstreaming_id",
          "name": "Archive Streaming ID",
          "type": "boolstring",
                    "readonly": false,
          "enum_constraint": {},
          "value_boolstring": false"hosts/Server1/DeviceIpint.10/SourceEndpoint.video:0:1"
           },
     },
     {
           {"id": "constant_recording",
          "name": "Constant recording",
          "idtype": "prerecord_secbool",
          "readonly": false,
          "namevalue_bool": "Prerecording, seconds"false
        },
        {
            "typeid": "int32prerecord_sec",
          "name": "Prerecording, seconds",
          "readonlytype": false"int32",
          "readonly": false,
          "value_int32": 2
                },
                {
                    "id": "specific_fps",
                    "name": "Specific FPS",
                    "typename": "doubleSpecific FPS",
          "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": []
}


...