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",
                    "type": "string",
     "readonly": false,
        "value_string": "Archive Aqua"
       "readonly": }false,
    {
     "id": "enabled",
     "name": "Enabled",
     "typevalue_string": "boolArchive Aqua",
     "readonly": false,
     "value_bool": true
    },
    ],
       "units": [
    {
     "uid": "hosts/Server1/MultimediaStorage.Aqua/ArchiveVolume/H:/archiveAqua.afs",
               "display_id": "H:/archiveAqua.afsenabled",
        "type": "ArchiveVolume",
     "display_name": "",
     "access_pointname": "Enabled",
     "properties": [
      {
        "idtype": "file_sizebool",
           "name": "Volume size(GB)",
       "typereadonly": "int32"false,
       "readonly": true,
             "value_int32bool": 1true
      }
          ],}
     "units": [],
     "factory": [],
     "destruction_args": [
      {
"units": [
          "id": "remove_file",
     {
  "name": "Remove volume file",
       "type": "bool",
       "readonlyuid": false"hosts/Server1/MultimediaStorage.Aqua/ArchiveVolume/H:/archiveAqua.afs",
       "value_bool": false
      }
     ],
     "discoverable"display_id": false"H:/archiveAqua.afs",
     "status               "type": "UNIT_STATUS_ACTIVEArchiveVolume",
     "stripped": false,
         "opaque_params": [],
     "assigneddisplay_templatesname": []"",
    },
      {
     "uid": "hosts/Server1/MultimediaStorage.Aqua/ArchiveContext.b73f4b6c-2962-5d51-e9ee-ceb5420b4cd2",
     "displayaccess_idpoint": "hosts/Server1/DeviceIpint.10/SourceEndpoint.video:0:0",
     "type": "ArchiveContext",
         "display_name": "",
     "access_pointproperties": "",[
     "properties": [
        {
       "id": "streaming_id",
   {
    "name": "Archive Streaming ID",
       "type": "string",
       "readonly": false,
     "id":  "enumfile_constraintsize": {,
        "items": [
         {
          "name": "axisVolume size(GB)",
          "properties": [],
                  "value_stringtype": "hosts/Server1/DeviceIpint.10/SourceEndpoint.video:0:0"int32",
         },
         {
          "namereadonly": "axis"true,
          "properties": [],
                  "value_stringint32": "hosts/Server1/DeviceIpint.10/SourceEndpoint.video:0:1"
1
                }
        ]}
       },
            "value_string": "hosts/Server1/DeviceIpint.10/SourceEndpoint.video:0:0" ],
      },
       {
       "idunits": "constant_recording"[],
       "name": "Constant recording",
          "type   "factory": "bool"[],
            "readonly": false,
       "valuedestruction_boolargs": true[
      },
      {
       "id": "prerecord_sec",
    {
   "name": "Prerecording, seconds",
       "type": "int32",
       "readonly": false,
       "value_int32": 0
"id": "remove_file",
       },
      {
       "id": "specific_fps",
       "name": "SpecificRemove volume FPSfile",
       "type": "double",
                     "readonlytype": false"bool",
       "value_double": 0
        },
      {
       "idreadonly": "archive_name"false,
                 "name": "Archive display name",
           "typevalue_bool": "string",false
        "readonly": true,
       "value_string": "Archive Aqua"
      }
        ],
     "units": [],
     "factory": [],
      "destruction_args": [],
              "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.LimeAqua/ArchiveContext.b73f4b6c-2962-5d51-e9ee-ceb5420b4cd2",
                    "display_id": "Lime",
   "type": "MultimediaStorage"hosts/Server1/DeviceIpint.10/SourceEndpoint.video:0:0",
   "display_name": "mr.Lime",
                 "access_pointtype": "ArchiveContext",
   "properties": [
      {
     "id": "display_name",
     "display_name": "Display Name",
     "type": "string",
         "readonly": false,
     "valueaccess_stringpoint": "mr.Lime",
    },
     {
     "id": "enabled",
     "nameproperties": "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.afsstreaming_id",
     "type": "ArchiveVolume",
                 "display_name": "",
     "access_pointname": "Archive Streaming ID",
     "properties": [
        {
       "id": "user",
       "nametype": "Loginstring",
       "type": "string",
       "readonly": false,
       "value_string     "readonly": "Tester"
false,
        },
             {
       "idenum_constraint": "password",{
        "name": "Password",
       "type": "string",
       "readonly": false,
       "value_stringitems": "123456"[
      },
       {
       "id": "file_size",
              "name": "Volume size(GB)", {
       "type": "int32",
       "readonly": true,
       "value_int32": 2
      }
     ],
     "unitsname": []"axis",
     "factory": [],
       "destruction_args": [
      {
       "id": "remove_file",
       "name": "Remove volume file",
       "typeproperties": "bool"[],
       "readonly": false,
          "value_bool": false
      }
     ],
     "discoverable": false,
     "statusvalue_string": "UNIT_STATUS_ACTIVE",hosts/Server1/DeviceIpint.10/SourceEndpoint.video:0:0"
     "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":"ITV.bl.config.ConfigurationService.ListUnits",
 "data":{
  "unit_uids":["hosts/Server1/MultimediaStorage.Aqua/ArchiveContext.b73f4b6c-2962-5d51-e9ee-ceb5420b4cd2"]
   }
}

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

                                     "name": "axis",
                                        "properties": [],
                                        "value_string": "hosts/Server1/DeviceIpint.10/SourceEndpoint.video:0:1"
                                    }
                                ]
                            },
                            "value_string": "hosts/Server1/DeviceIpint.10/SourceEndpoint.video:0:0"
                        },
                        {
                            "id": "constant_recording",
                            "name": "Constant recording",
                            "type": "bool",
                            "readonly": false,
                            "value_bool": true
                        },
                        {
                            "id": "prerecord_sec",
                            "name": "Prerecording, seconds",
                            "type": "int32",
                            "readonly": false,
                            "value_int32": 0
                        },
                        {
                            "id": "specific_fps",
                            "name": "Specific 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_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": "hosts/Server1/DeviceIpint.10/SourceEndpoint.video:0:1"
                },
                {
                    "id": "constant_recording",
                    "name": "Constant recording",
                    "type": "bool",
                    "readonly": false,
                    "value_bool": false
                },
                {
                    "id": "prerecord_sec",
                    "name": "Prerecording, seconds",
                    "type": "int32",
                    "readonly": false,
                    "value_int32": 2
                },
                {
                    "id": "specific_fps",
                    "name": "Specific FPS",
                    "type": "double",
               
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_double": {},0
       "value_string": "hosts/Server1/DeviceIpint.10/SourceEndpoint.video:0:1"
         },
      {
     "id": "constant_recording",
    {
 "name": "Constant recording",
     "type": "bool",
     "readonly": false,
     "value_boolid": false"archive_name",
    },
    {
     "id": "prerecord_sec",
       "name": "Prerecording, secondsArchive display name",
      "type": "int32",
        "readonly": false,
     "value_int32type": 2"string",
    },
     {
     "id": "specific_fps",
     "namereadonly": "Specific FPS"true,
      "type": "double",
       "readonly": false,
       "value_doublestring": "Archive 0Aqua"
    },
    {
     "id": "archive_name",
  }
   "name": "Archive display name",
     "type": "string" ],
     "readonly": true,
       "value_stringunits": "Archive Aqua"[],
    }
   ],
   "units": [],
   "factory": [],
            "destruction_args": [],
            "discoverable": false,
            "status": "UNIT_STATUS_INACTIVE",
            "stripped": false,
            "opaque_params": [],
            "assigned_templates": []
        }
    ],
    "unreachable_objects": [],
    "not_found_objects": []
}


...