Документация для версии Axxon Next 4.6.0. Документация на другие версии также доступна.

Предыдущая страница Следующая страница

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »


{
  "method":"ITV.bl.config.ConfigurationService.ListUnits",
  "data":{
    "unit_uids":["hosts/Server1/MultimediaStorage.Aqua"]
      }
}

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

{
  "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"
        },
        {
          "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": "ArchiveVolume",
          "display_name": "",
          "access_point": "",
          "properties": [
            {
              "id": "file_size",
              "name": "Volume size(GB)",
              "type": "int32",
              "readonly": true,
              "value_int32": 1
            }
          ],
          "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": []
        },
        {
          "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": {
                "items": [
                  {
                    "name": "axis",
                    "properties": [],
                    "value_string": "hosts/Server1/DeviceIpint.10/SourceEndpoint.video:0:0"
                  },
                  {
                    "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": []
}

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

  "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).

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

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

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

{
  "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",
          "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": []
}
  • No labels