Content of this article:

API Content:

The Vutlan systems web interface uses HTTP / HTTPS protocols for information exchange.

POST the request is used to query and to change the current settings of the monitoring system. In this case, a request is made from the client part (web interface in the browser) to the server part (CGI program). Current parameters are returned by the server part in XML format. AJAX technology can be used for exchange.

Query format

When accessing the server, you need to specify the CGI program to which the request is being sent. For general queries, this is "engine.htm". Thus, the full path will be http://192.168.0.193/engine.htm.

The query is sent as an HTTP POST request and consists of fields. The query field is the field name and field value separated with the '=' sign. A query can contain multiple fields, in this case, the fields are separated with a '&' sign.

Answer format

The response from the server part to the client part is transmitted as a document in *.xml format. The content of the XML document corresponds to the command passed in the request. If the command fails to execute, the server part returns an error in the form:

<error type="error description" />

Here, "error description" is a string that takes a value:

The type field can be absent, this form is equivalent to the common error:

<error type = "error" />

Basic query types

The main fields of the query are:

Structure of the monitoring system

The structure of the monitoring system is, in general, a set of objects of the following types:

JSON format

Device families VT855i, VT960i, and VT855t support API requests in JSON format.

When accessing the server, you need to specify the CGI program to which the request is being sent. For general queries, this is "engine.htm". Thus, the full path will be http://192.168.0.193/engine.htm.

To exchange messages in JSON format, the MIME content type must be specified in the POST request header as 'Content-Type: application/json'.

Input requests should have the following format:

{
  "auth":{
    "name":"guest", 
    "p":"guest", 
    "h":"35675e68f4b5af7b995d9205ad0fc43842f16450"
  }
}

Here "auth" is the querytype name of the request type.

Next comes the "key: value" parameter pairs corresponding to the request type. You can see the names of these fields in the API description.

Response messages have the following format:

{
  "user":{
    "id":"1",
    "k":"123456789",
    "name":"guest",
    "sread":"all,",
    "swrite":"all,",
    "cread":"",
    "cwrite":"",
    "gread":"all,",
    "gwrite":"all,",
    "mail":"",
    "phone":""
  }
}

Here "user" corresponds to the tag name for the XML structures defined in the API. Next, follow are "key: value" parameter pairs.

Not all requests in JSON format are supported yet. As far as possible, we will fill in these gaps.
These requests are not yet implemented in JSON format: