Versions Compared

Key

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

General request format:

GET http://IP address:port/web2/secure/configuration/all?pageItems={pageItems}&page={page}&{objectClass}={objectClass}&{objectId}={objectId}

Request parameters:

ParameterRequiredDescription
pageItemsNo

Specifies the number of objects displayed on the page. The value must be greater than 0, by default page=1000.

The page parameter only applies when the pageItems parameter is specified

pageNo

Specifies the page number displayed as a result of the request. The value must be greater than 0, by default pageItems=1

objectClassNo

Identifier of an object class. Example: GRELE, MACRO, CAM

objectIdNo

Object class and object Id, separated by a colon. Examples: CAM:1, GRAY:5, PEOPLE_COUNTER:1


Note
titleAttention!

If there are many objects in the system (>1000), you must use a page-by-page display.

All objects are processed page by page until an empty array is received.

Request example:

GET http://127.0.0.1:8085/web2/secure/configuration/all

Response example:

The request returns the list of the following objects with states:

  • list of all cameras with the identifiers of the corresponding microphones, speakers, PTZ devices, presets, as well as monitors and displays on which the cameras are displayed;
  • list of all displays and monitors on which the cameras are displayed;
  • list of all cameras, added to the maps;
  • list of sensors;
  • list of relays;
  • list of macros;
  • list of RTSP servers with ports used, cameras added;
  • list of areas and regions;
  • map with all layers;

  • user;

  • list of video input devices.

XML:

Expand
titleClick to expand...
Code Block
languagexml
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<baseObjects>
<MACRO>
<extId>1</extId>
<id>MACRO:1</id>
<name>Ìàêðîêîìàíäà<name>Command 1</name>
<state>
<id>normal</id>
<type>NORMAL</type>
</state>
<type>MACRO</type>
</MACRO>
<baseObject>
<displayId>1</displayId>
<extId>1</extId>
<id>DISPLAY:1</id>
<name>Ýêðàí<name>Disp 1</name>
<state>
<id>normal</id>
<type>NORMAL</type>
</state>
<type>DISPLAY</type>
</baseObject>
<CAM>
<displayId>1</displayId>
<extId>5</extId>
<id>CAM:5</id>
<monitorId>1</monitorId>
<name>Êàìåðà<name>Camera 5</name>
<regionId/>
<state>
<fullState>ALARMED,ARMED</fullState>
<id>alarmed</id>
<type>ALARM</type>
</state>
<type>CAM</type>
<additionalInfo/>
<linkedObjects/>
<micId/>
<presets/>
<speakerId/>
<telemetryId/>
</CAM>
<CAM>
<displayId>1</displayId>
<extId>6</extId>
<id>CAM:6</id>
<monitorId>1</monitorId>
<name>Êàìåðà<name>Camera 6</name>
<regionId/>
<state>
<fullState>ALARMED,ARMED</fullState>
<id>alarmed</id>
<type>ALARM</type>
</state>
<type>CAM</type>
<additionalInfo/>
<linkedObjects/>
<micId/>
<presets/>
<speakerId/>
<telemetryId/>
</CAM>
<MACRO>
<extId>2</extId>
<id>MACRO:2</id>
<name>Ìàêðîêîìàíäà<name>Command 2</name>
<state>
<id>normal</id>
<type>NORMAL</type>
</state>
<type>MACRO</type>
</MACRO>
<CAM>
<displayId>1</displayId>
<extId>3</extId>
<id>CAM:3</id>
<monitorId>1</monitorId>
<name>Êàìåðà<name>Camera 3</name>
<regionId/>
<state>
<fullState>ALARMED,ARMED</fullState>
<id>alarmed</id>
<type>ALARM</type>
</state>
<type>CAM</type>
<additionalInfo/>
<linkedObjects/>
<micId/>
<presets/>
<speakerId/>
<telemetryId/>
</CAM>
<SLAVE>
<extId>A-ZHASHUEV</extId>
<id>SLAVE:A-ZHASHUEV</id>
<name>LOCALHOST</name>
<state>
<fullState>CONNECTED</fullState>
<id>connected</id>
<type>NORMAL</type>
</state>
<type>SLAVE</type>
</SLAVE>
<CAM>
<displayId>1</displayId>
<extId>4</extId>
<id>CAM:4</id>
<monitorId>1</monitorId>
<name>Êàìåðà<name>Camera 4</name>
<regionId/>
<state>
<fullState>ALARMED,ARMED</fullState>
<id>alarmed</id>
<type>ALARM</type>
</state>
<type>CAM</type>
<additionalInfo/>
<linkedObjects/>
<micId/>
<presets/>
<speakerId/>
<telemetryId/>
</CAM>
<CAM>
<displayId>1</displayId>
<extId>1</extId>
<id>CAM:1</id>
<monitorId>1</monitorId>
<name>Êàìåðà<name>Camera 1</name>
<regionId/>
<state>
<fullState>DISARMED</fullState>
<id>connected</id>
<type>NORMAL</type>
</state>
<type>CAM</type>
<additionalInfo/>
<linkedObjects/>
<micId/>
<presets/>
<speakerId/>
<telemetryId/>
</CAM>
<baseObject>
<extId>1</extId>
<id>MAP:1</id>
<name/>
<state>
<type>NORMAL</type>
</state>
<type>MAP</type>
</baseObject>
<CAM>
<displayId>1</displayId>
<extId>2</extId>
<id>CAM:2</id>
<monitorId>1</monitorId>
<name>Êàìåðà<name>Camera 2</name>
<regionId/>
<state>
<fullState>ARMED</fullState>
<id>armed</id>
<type>NORMAL</type>
</state>
<type>CAM</type>
<additionalInfo/>
<linkedObjects/>
<micId/>
<presets/>
<speakerId/>
<telemetryId/>
</CAM>
<baseObject>
<extId>1</extId>
<id>MAPLAYER:1</id>
<name/>
<state>
<type>NORMAL</type>
</state>
<type>MAPLAYER</type>
</baseObject>
<baseObject>
<displayId>1</displayId>
<extId>1</extId>
<id>MONITOR:1</id>
<monitorId>1</monitorId>
<name>Ìîíèòîð<name>Layer 1</name>
<state>
<id>normal</id>
<type>NORMAL</type>
</state>
<type>MONITOR</type>
</baseObject>
</baseObjects>


...