Hik Ipmd V2.0 201404
Hik Ipmd V2.0 201404
Hik Ipmd V2.0 201404
User Guide
Version 2.0
Revision 2.0
2014-04
http://www.hikvision.com/
Revision
History
Description
Date
Version 1.0
Revision 1
Initial version
Version 1.0
Revision 2
Version 1.0
Revision 3
Version 1.0
Revision 4
2009-6
2009-8
Corrections,
expanded services
Corrections, updates services and resources
2009-10
2009-11
Version 1.0
Revision 5
Protocol revision
Verison 1.0
Revision 5.1
Corrections,
resources
Verison 1.0
Revision 5.2
Verison 1.0
Revision 5.3
2010-02
Verison 1.0
Revision 5.4
2010-04
Verison 1.0
Revision 5.5
<videoResolution>
is
<videoResolutionWidth> and
<videoResolutionHeight> in the
/Streaming/channels/ID
2010-05
Verison 1.0
Revision 5.6
Redefine
the
mean
of
ID
in
the
URI :/Event/triggers/ID/notifications/ID , it just a
sequence number of a trigger or a notification .
2010-06
Verison 1.0
Revision 5.7
2010-09
Verison 1.0
2011-01
amend
2009-12
PTZ
service
replaced
and
2010-01
2010-01
with
Revision 5.8
Verison 1.0
Revision 5.9
2012-03
2013-11
Revision 1.0
New service
/Streaming/channels/<ID>/dynamicCap is defined.
The new <SVC> tag in service
/Streaming/channels/<ID> is optional.
Added <panSupport> tag, <tiltSupport> tag and
<zoomSupport> tag to service
/Streaming/channels/<ID> was optional.
New service /MotionDetectionExt/<ID> is defined
New service /MotionDetectionExt/<ID>/switch is
defined
New service /MotionDetectionExt/<ID>/regions is
defined
New service
/MotionDetectionExt/<ID>/regions/<ID> is defined
New service
/PTZCtrl/channels/<ID>/onepushfoucs/start is
defined.
New service
/PTZCtrl/channels/<ID>/onepushfoucs/reset is
defined.
New service /PTZCtrl/channels/<ID>/position3D is
defined.
Verison 2.0
Revision 2.0
http://www.hikvision.com/
2014-04
Notices
The information in this documentation is subject to change without notice and does not
represent any commitment on behalf of HIKVISION. HIKVISION disclaims any liability
whatsoever for incorrect data that may appear in this documentation. The product(s) described
in this documentation are furnished subject to a license and may only be used in accordance
with the terms and conditions of such license.
Copyright 2009-2014 by HIKVISION. All rights reserved. This documentation is issued in
strict confidence and is to be used only for the purposes for which it is supplied. It may
not be reproduced in whole or in part, in any form, or by any means or be used for any other
purpose without prior written consent of HIKVISION and then only on the condition that this
notice is included in any such reproduction. No information as to the contents or subject matter
of this documentation, or any part thereof, or arising directly or indirectly therefrom, shall be
given orally or in writing or shall be communicated in any manner whatsoever to any third party
being an individual, firm, or company or any employee thereof without the prior written consent
of HIKVISION. Use of this product is subject to acceptance of the HIKVISION agreement
required to use this product. HIKVISION reserves the right to make changes to its products as
circumstances may warrant, without notice.
This documentation is provided as-is, without warranty of any kind. Please send any
comments regarding the documentation to:
[email protected]
Find out more about HIKVISION at www.hikvision.com
Contents
1
2
3
3.1
3.2
4
4.1
4.2
4.3
4.4
4.5
4.6
4.7
5
6
6.1
6.2
6.3
7
7.1
7.2
7.3
7.4
8
8.1
Scope ............................................................................................................................... 1
References ...................................................................................................................... 1
Definitions and abbreviations ....................................................................................... 2
Definitions......................................................................................................................... 2
Abbreviations .................................................................................................................... 2
Architecture and Transmission Mechanism................................................................ 2
REST and HTTP Methods ................................................................................................ 3
XML.................................................................................................................................. 3
Resources overview .......................................................................................................... 4
Protocol URL .................................................................................................................... 5
Messages ........................................................................................................................... 6
4.5.1
Connection Header Field............................................................................... 6
4.5.2
Authorization and WWW-Authenticate Header Fields .............................. 6
4.5.3
Entity Body ...................................................................................................... 6
4.5.4
Operations ....................................................................................................... 7
4.5.5
Error Handling ................................................................................................. 8
Namespaces..................................................................................................................... 13
Security ........................................................................................................................... 13
Device discovery .......................................................................................................... 13
Resource Description .................................................................................................. 14
Resource Description Outline ......................................................................................... 14
Built-in Types .................................................................................................................. 15
Annotation....................................................................................................................... 16
Special Resources........................................................................................................ 16
index ................................................................................................................................ 16
indexr .............................................................................................................................. 17
description ....................................................................................................................... 17
capabilities ...................................................................................................................... 17
Services and General Resources .............................................................................. 20
System ............................................................................................................................. 20
8.1.1
Device Information ....................................................................................... 20
8.1.2
Configuration file(s) ...................................................................................... 21
8.1.3
Factory default .............................................................................................. 22
8.1.4
Firmware upgrade ........................................................................................ 22
8.1.5
Reboot ............................................................................................................ 22
8.1.6
Status.............................................................................................................. 23
8.1.7
Time ................................................................................................................ 23
8.1.8
LocalTime ...................................................................................................... 24
8.1.9
TimeZone ....................................................................................................... 24
8.1.10 NtpServers ..................................................................................................... 25
8.1.11 NtpServer ....................................................................................................... 26
8.1.12 Log .................................................................................................................. 27
I
8.2
8.3
8.4
8.5
8.6
8.7
8.8
8.9
8.10
8.11
8.6.2
Close .............................................................................................................. 60
8.6.3
Send data....................................................................................................... 61
8.6.4
Receive data ................................................................................................. 61
Serial ............................................................................................................................... 62
8.7.1
Ports ............................................................................................................... 62
8.7.2
Port ................................................................................................................. 62
8.7.3 Command ............................................................................................................ 63
8.7.3
Transparent channel open .......................................................................... 64
8.7.4
Transparent channel close .......................................................................... 64
8.7.5
Transparent channel send data .................................................................. 64
8.7.6
Transparent channel receive data.............................................................. 65
Security ........................................................................................................................... 65
8.8.1
Users .............................................................................................................. 65
8.8.2
User ................................................................................................................ 66
8.8.3
adminAccess ................................................................................................. 67
Streaming ........................................................................................................................ 68
8.9.1
Status.............................................................................................................. 68
8.9.2
Channels ........................................................................................................ 68
8.9.3
Channel .......................................................................................................... 69
8.9.4
Dynamic capabilities .................................................................................... 75
8.9.5
Channel status .............................................................................................. 76
8.9.6
Picture ............................................................................................................ 77
8.9.7
Request keyframe ........................................................................................ 77
Motion Detection ............................................................................................................ 78
8.10.1 One channel motion detection .................................................................... 78
8.10.2 Motion detection regions ............................................................................. 79
8.10.3 Motion detection region ............................................................................... 80
8.10.4 Motion Detection Example .......................................................................... 81
8.10.5 /MotionDetectionExt/<ID> ........................................................................... 84
8.10.6 /MotionDetectionExt/<ID>/switch ............................................................... 85
8.10.7 /MotionDetectionExt/<ID>/regions ............................................................. 86
8.10.8 /MotionDetectionExt/<ID>/regions/<ID> ................................................... 86
Event ............................................................................................................................... 88
8.11.1 Triggers .......................................................................................................... 88
8.11.2 Trigger ............................................................................................................ 89
8.11.3 Trigger notifications ...................................................................................... 90
8.11.4 Trigger notification ........................................................................................ 91
8.11.5 Schedule ........................................................................................................ 93
8.11.6 Schedule/ID ................................................................................................... 93
8.11.7 Notification ..................................................................................................... 95
8.11.8 Mails notification ........................................................................................... 95
8.11.9 Mail notification ............................................................................................. 96
8.11.10 HTTP Hosts ................................................................................................... 98
8.11.11 HTTP Host ..................................................................................................... 98
III
8.12
8.13
8.14
8.15
VI
1 Scope
This specification defines a HTTP-based application programming interface that enables
physical security and video management systems to communicate with IP media devices
in a particular way.
With regard to Media Streaming, please refer to develop API of RTSP protocol.
2 References
The following documents contain provisions which, through reference in this text,
constitute provisions of the present document.
[7]
[8]
3.2 Abbreviations
For the purposes of the present document, the following abbreviations apply:
FQDN
REST
IO
UPnP
4 Architecture
and
Transmission
Mechanism
The IP Media Device Management Protocol is based on REST architecture. The
management and control interfaces defined in this specification are treated as resources
utilizing the REpresentational State Transfer (REST) architecture. This architecture
facilitates users by grouping related resources within hierarchical namespaces, and is
more flexible for service discovery and future expansion.
REST architecture consists of clients and servers, among which clients initiate request to
servers, while servers handle requests and response accordingly. Requests and
responses are established via the transmission of representations of resources. REST
architecture need to be based on an Application Layer protocol which provides various of
standard communication formats for applications based on the transfer of meaningful
representational state. HTTP[1] has a very rich vocabulary in terms of verbs(or methods),
2009 2014 by HIKVISION. All rights reserved.
URIs, request and response headers, Internet media types, HTTP request and response
codes etc. In addition, HTTP also has some features particularly suitable for REST
architecture. So HTTP is used as external Application Layer protocol in this specification.
In the architecture, clients are physical security and video management systems; servers
are IP media devices.
This specification also contains full XML schema for the introduced resources.
GET
PUT
POST
DELETE
List
the
members
of
collection,
complete with
their member
URIs
for
further
navigation.
Meaning
defined
as replace the
entire
collection
with
another
collection.
Create a new
entry
in
the
collection where
the ID is assigned
automatically by
the collection. The
ID
created
is
usually included
as part of the data
returned by this
operation.
Meaning
defined
as delete
the entire
collection
.
Retrieve
a
representation
of
the
addressed
member of the
collection
expressed in
an appropriate
MIME type.
Update
the
addressed member
of the collection or
create it with the
specified ID.
Treat
the
addressed
member as a
collection in its
own right and
create a new
subordinate of it.
Delete
the
addresse
d member
of
the
collection.
4.2 XML
A device must support the syntax defined by W3C XML 1.0 specification [2] and UTF-8
character set [3]. All XML files must adopt UTF-8 encoding according to RFC3629.
Additionally, all resources share a common XML schema as defined in Annex.
Any resources can specify separate input and output XML Documents. If a specific data
2009 2014 by HIKVISION. All rights reserved.
structure is defined inside these documents, then they must be specified as XML Schema
Documents (xsd) in Annex.
Lists contained in XML blocks will be represented in the format of <XXXList>, and each
<XXXList> tag may contain one or more nodes.
General Resources
Special Resources
Special Resources
Figure 1
The index, indexr, description and capabilities are defined as Special Resources in
this specification. Both index and description will be mandatorily included by each node,
and both indexr and capabilities will be optionally included by each node. For more
detailed description see Section 6.
Services defined in this specification are divided into different services categories. Each
category has its own name spaces (see Section 4.6 for the name space definitions). The
following services are defined:
Table 2
Services
Description
System
8.1
Network
8.2
8.3
Video
8.4
Audio
8.5
8.6
8.7
IO
Reference
Services
Security
Description
Reference
8.8
Streaming
8.9
Motion Detection
8.10
Event
8.11
PTZ
8.12
8.13
Image
8.14
Record
8.16
Smart
8.16
PTZCtrl
4.5 Messages
HTTP messages are used for communication between physical security and video
management systems and IP media devices in this specification. In order to configure and
control the device, some provisions are specified for these HTTP message.
4.5.3Entity Body
The Content-Type entity-header field indicates the media type of the entity body. The
Content-Type
may
be
designated
as
application/xml;
charset=UTF-8,
application/octet-stream, etc.
For configuration information,
charset=UTF-8. For example,
the
Content-Type
is
usually
application/xml;
</DeviceStatus>
For data(i.e. firmware, configuration
application/octet-stream. For example,
file,
etc.),
the
Content-Type
may
be
Content-Type: application/octet-stream
</ResponseStatus>
4.5.4Operations
Different resources will specify different operation.
The set device configuration resources use PUT operation. If there is an XML
block parameter for the request, the inbound XML format is defined according to
a resource-special XML schema. Request status will be returned by the XML
response information of the device, and can be used for indicating the PUT
operation status. The responded XML format is defined by XML Response
Schema (please refer to section 4.5.5 for detail description). After the device
configuration is updated successfully, it will return an XML response with status
2009 2014 by HIKVISION. All rights reserved.
code OK; while another status code will be used for indicating unsuccessful
operations. In either case, the device only responses after it is ready to continue
normal operation, i.e. accepting streaming request, receiving configuration
commands, etc.
The get device configuration resources use GET operation. After a successful
GET operation, the result will be returned in XML format according to the
resource description. For an unsuccessful request (i.e. users is not
authenticated), the result will be returned in XML format according to XML
Response Schema.
Resources to create device configurations information will use the POST
operation. If there is an XML block parameter for the request, the inbound XML
format is defined according to a resource-special XML schema. The request
status will be indicated by the XML response information returned from the
device, and can be used to indicate the status of the POST operation. This XML
format is defined according to XML Response Schema (see section 4.5.5 for
details). After successfully creating the data, the device returns an XML response
with status code OK. A separate status code is used for unsuccessful
operations.
Resources to delete device configurations information will use the Delete
operation. If successful, the result will be returned an XML response with status
code OK. A separate status code is used for unsuccessful operations. This XML
format is defined according to XML Response Schema (see section 4.5.5 for
details).
Data uploading resources (i.e. firmware upgrade, import configuration, etc.) will
use PUT operation. The content of the data will be stored in the body of the
HTTP request. If successful, the result will be returned an XML response with
status code OK. A separate status code is used for unsuccessful operations.
This XML format is defined according to XML Response Schema (see section
4.5.5 for details).
Data receiving resources (i.e. export configuration file) use GET operation. If
successful, the result will be returned the data according to the resource
description. An XML block is used for unsuccessful operations. This XML format
is defined according to XML Response Schema (see section 4.5.5 for details).
For Special Resources, GET operation will be used. For more detailed
description see Section 6.
If there is an XML block for the HTTP request or response, the Content-Type and
Content-Length will be set in the headers of the HTTP message.
4.5.5Error Handling
As with any other protocol, errors may occur during communications, protocol or message
processing, and the specification classifies error handling into categories below:
2009 2014 by HIKVISION. All rights reserved.
HTTP
Status
Codes
REST Meaning
GET
PUT
200
OK-The
request
has
succeeded.
Header Notes: None
Body Notes: The requested
resource will be returned in the
body.
201
204
301
POST
DELETE
HTTP
Status
Codes
REST Meaning
GET
302
400
401
PUT
POST
DELETE
HTTP
Status
Codes
REST Meaning
GET
PUT
POST
DELETE
403
404
405
500
HTTP
Status
Codes
REST Meaning
GET
PUT
POST
DELETE
503
Responses to many resources calls contain data in XML format. XML Response
Schema is defined in Annex. XML Response Schema consists of the following
sections:
Description
Device Error - if the device can not perform the request for a hardware
error. An error message in statusString format to indicate operation
failure
Invalid XML Format - if the XML format is not recognized by the system.
There will be statusString returned to represent different errors
4.6 Namespaces
The namespace xmlns:hik=http://www.hikvision.com/ver10/XMLSchema is used in this
specification.
The following namespaces are referenced by this specification:
xmlns:xs=http://www.w3.org/2001/XMLSchema
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance
xmlns:xlink=http://www.w3.org/1999/xlink
4.7 Security
User-based access control is adopted in this specification. Security policy configuration in
this specification based on three different user levels.
Viewer the privilege can only access some general-level resources. See the
Resource Description of each resource for details.
In order to access all supported resources, one account with Administrator privilege level
must be active at all times. A default user account admin is provided by all IP devices. It
has an Administrator user level, and must not be deleted. Its default password is 12345.
5 Device discovery
The IP devices support Universal Plug and Play (UPnP) technology to discovery/locate
themselves. A UPnP compatible device will automatically announce its network address,
supported devices and services types when connected to a network, and therefore
becoming plug-and-play by allowing clients recognize those information and begin using
this device immediately.
The UPnP architecture supports zero-configuration networking, and the device can
dynamically join a network, obtain IP address, announce its name, convey its capabilities
upon request, and gets the on-line status and capabilities of other devices. DHCP and
DNS servers are optional and are only used if they are available on the network. Devices
can leave the network automatically without leaving any unwanted status information
behind. UPnP was published as a 73-part International Standard, ISO/IEC 29341, in
December, 2008 [6][7][8].
2009 2014 by HIKVISION. All rights reserved.
13
The foundation for UPnP networking is IP addressing. When a device is connected to the
network for the first time, its Dynamic Host Configuration Protocol (DHCP) client will
search for a DHCP server. If the device successfully get its domain name via DNS server
or DNS forwarding, then it should use this domain name for the following network
operations; if the network is unmanaged and no DHCP server is found, the device must
assign an address for itself, which is known as AutoIP of the UPnP Device Architecture
[9][10], and use this IP address for the following network operations.
Once given an IP address, the Discovery process will be executed in UPnP networking.
The UPnP discovery protocol is also knows as Simple Service Discovery Protocol (SSDP).
When a device is added to the network, SSDP allow that device to announce its services
to the control points on the network. Similarly, when a control point is added to the network,
SSDP allows that control point to search for relative devices on the network. During the
above searching or announcing process, a a discovery message which contains essential
device specifics or one of its services will be transfered, for example, device type,
identifier, and a pointer to more detailed information.
After a control point has discovered a device, the control point still needs more operations
to request more information about the device or to interact with it. An HTTP GET request
for mandatory index Special Resource will return a list of the resources supported by the
device.
Remark: the index resource will only return the first level resources of a node, while the
indexr Special Resource will return a complete folder list in tree structure with the current
resource as root folder.
6 Resource Description
6.1 Resource Description Outline
Each resource in this specification is defined using the following format.
Resource_URI
Type
Operation_Name
Version
User Lever
Description
Query
Indicates the name/value pairs (p1, p2, p3,,pn) for the resource.
Inbound Data
Success Return
the Type (if present) and the name of XML Data Block
Description
BaudRate
Color
Coordinate
FPS
IPv4
Address
Notation is xxx.xxx.xxx.xxx
Example: 3.137.217.220
MAC
MAC Address
Notation is aa:bb:cc:dd:ee:ff with 6 hex bytes.
6.3 Annotation
The XML Data Blocks described in this document contains annotations for the fields
properties. Please refer to the XML schema definitions for detail description.
The following annotation content is inserted into the comments to describe the data
carried in the field:
Table 6
Annotation
Description
req
Required field.
opt
Optional field. For data uploaded to the device, if the field is present but the
device does not support it, it should be ignored.
dep
ro
Read-only. For XML data that is both read and written to the device, this
field is only present in XML returned from the device. If this field is present
in XML uploaded to the device, it should be ignored.
wo
Write-only. This field is only present in XML that can be uploaded to the
device. This field should never be present in data returned from the device.
[This is used for uploading passwords].
xs:<type>
Remark: optional XML structures may contain required fields for the operation, which
mean that even if the entire XML block is optional, some of its contained fields may still be
necessary if required.
7 Special Resources
7.1 index
index
Special Resource
GET
v1.0
Viewer
Description
Query
None
Inbound Data
None
Success Return
hik:ResourceList ResourceList
7.2 indexr
indexr
Special Resource
GET
v1.0
Viewer
Description
Query
None
Inbound Data
None
Success Return
hik:ResourceList ResourceList
7.3 description
description
Special Resource
GET
v1.0
Viewer
Description
Query
None
Inbound Data
None
Success Return
hik:ResourceDescription ResourceDescription
Notes: <version> set the version of resource. In this specification, its value is 1.0.
A version attribute is included in the description. This means resources with different
versions may exist within the same Services. In that case, the version of Services is the
version of the contained resource with the lowest version, and all resources in the
Services container must be backward compatible. If any resource of a Service container
can not maintain backward compatibility with previous versions, a new Services version
should be introduced.
7.4 capabilities
capabilities
Special Resource
GET
v1.0
Viewer
Description
Query
None
Inbound Data
None
Success Return
Notes:
For the General Resource, which inbound data is specified as an XML payload, the
2009 2014 by HIKVISION. All rights reserved.
17
min
max
range
Description
Syntax
Applicable
XML Data
Types
Examples:
min=0
min=19
min=-74(numerical
only)
min=1.6
Examples:
max=4
max=37
max=8192
max=14.61
All
numerical
data types
Example: if an XML
element supports values
0, 456, 1674 to 2009
and 2012, the syntax
would be: range=0,
456, 1674~2009, 2012
2009 2014 by HIKVISION. All rights reserved.
18
Capabilities
Attribute
opt
Description
Syntax
If
all
options
are
supported, the syntax is
all.
Otherwise,
supported options are
listed separated by a ,
character.
Applicable
XML Data
Types
CodeID
Examples:
opt=all
opt=1, 4, 6, 7
Examples:
def=7416
def=ace
def
reqReboot=true
reqReboot
Indicates if configuration of
this XML element requires a
device reboot before taking
effect. If an element does
not require a boot, this
attribute should not be used
dynamic
Size
Only supported
for list elements
Example: If a device
supports 16 users the
example would be
<UserList size=16>
<User>
</UserList>
1) Fixed, pre-defined data types do not need certain capability attributes because their
formats/data ranges are already defined.
Special Resources do not contain themselves.
The requestURIs /index, /indexr, /description are required.
Service v1.0
Notes:
8.1.1Device Information
/System/deviceInfo
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
DeviceInfo
PUT
Administrator
Description
Query
None
Inbound Data
DeviceInfo
Success Return
hik:ResponseStaus ResponseStatus
Notes:
Some fields are read-only and may not be set. If these fields are present in the inbound
XML block, they are ignored.
For the <DeviceInfo> uploaded to the device during a PUT operation, all fields are
considered optional and any fields that are not present in the inbound XML are not
changed on the device. This allows setting of the fields individually without having to load
the entire XML block to the device.
<deviceDescription> is a description of the device as defined in RFC1213.
For IPC the <deviceDescription> value is IPCamera;
For IP speed Dome the <deviceDescription> value is IPDome;
For DVR or DVS the <deviceDescription> value is DVRDVS;
2009 2014 by HIKVISION. All rights reserved.
20
8.1.2Configuration file(s)
/System/configurationFile
GET
Administrator
Description
Query
None
Inbound Data
None
Success Return
Opaque Data
PUT
Administrator
Description
Query
None
Inbound Data
Opaque Data
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.1.3Factory default
/System/factoryDefault
PUT
Administrator
Description
Query
mode
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.1.4Firmware upgrade
/System/firmwareUpgrade
PUT
Administrator
Description
Query
None
Inbound Data
Opaque Data
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.1.5Reboot
/System/reboot
PUT
Administrator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.1.6Status
/System/status
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
DeviceStatus
Notes:
8.1.7Time
/System/time
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
Time
PUT
Administrator
Description
Query
None
Inbound Data
Time
Success Return
hik:ResponseStaus ResponseStatus
Notes:
If <timeMode> is present and set to local, the <localTime> and <timeZone> fields are
required. The <localTime> block sets the device time.
If <timeMode> is present and set to NTP, only the <timeZone> field is required. The
device time is set by synchronizing with NTP.
Time XML Block
<Time version=1.0 xmlns=http://www.hikvision.com/ver10/XMLSchema>
<timeMode> <!-- req, xs:string, NTP, manual -->
</timeMode>
<localTime>
<!-- req, xs:datetime -->
</localTime>
<timeZone> <!-- req, xs:string, POSIX time zone string -->
</timeZone>
</Time>
8.1.8LocalTime
/System/time/localTime
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
PUT
Administrator
Description
Query
None
Inbound Data
Success Return
hik:ResponseStaus ResponseStatus
Notes:
An ISO 8601 Date/Time string is accepted and returned. If the date/time value has a time
zone, the time is converted into the devices local time zone.
If the device time mode is set to ntp setting this value has no effect.
8.1.9TimeZone
/System/time/timeZone
2009 2014 by HIKVISION. All rights reserved.
24
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
PUT
Administrator
Description
Query
None
Inbound Data
Success Return
hik:ResponseStaus ResponseStatus
Notes:
Time zones are defined by POSIX 1003.1 section 8.3 time zone notations. Note that the
value following the +/- is the amount of time that must be added to the local time to result
in UTC.
Example:
EST+5EDT01:00:00,M3.2.0/02:00:00,M11.1.0/02:00:00
Defines eastern standard time as EST with a GMT-5 offset. Daylight savings time is
called EDT, is one hour later and begins on the second Sunday of March at 2am and
ends on the first Sunday of November at 2am.
CET-1CEST01:00:00,M3.5.0/02:00:00,M10.5.0/03:00:00
Defines central European time as GMT+1 with a one-hour daylight savings time
(CEST) that starts on the last Sunday in March at 2am and ends on the last Sunday in
October at 3am.
8.1.10
NtpServers
/System/time/ntpServers
GET
Description
Query
None
Inbound Data
None
Success Return
NTPServerList
PUT
Administrator
Description
Query
None
Inbound Data
NTPServerList
Success Return
hik:ResponseStaus ResponseStatus
POST
Administrator
Description
Query
None
Inbound Data
NTPServer
Success Return
hik:ResponseStaus ResponseStatus
DELETE
Administrator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
When the <timeMode> is set to NTP, the servers in this list are used to synchronize the
devices system time.
NTPServerList XML Block
<NTPServerList version=1.0 xmlns=http://www.hikvision.com/ver10/XMLSchema>
<NTPServer/> <!-- opt -->
</ NTPServerList>
8.1.11
NtpServer
/System/time/ntpServers/ID
GET
Description
Query
None
Inbound Data
None
Success Return
NTPServer
PUT
Administrator
Description
Query
None
Inbound Data
NTPServer
Success Return
hik:ResponseStaus ResponseStatus
DELETE
Administrator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.1.12
Log
/System/logging
GET
Viewer
Description
Query
majorType
minorType
startTime
stopTime
Inbound Data
None
Success Return
LogList
Notes:
8.1.13
Storage
/System/Storage
resource
v1.0
8.1.13.1 Storage/volumes
/System/Storage/volumes
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
StorageVolumeList
PUT
Operator
Description
Query
None
Inbound Data
StorageVolumeList
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.1.13.2 Storage/volumes/ID
/System/Storage/volumes/ID
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
StorageVolume
Notes:
8.1.13.3 Storage/volumes/ID/status
/System/Storage/volumes/ID/status
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
StorageVolumeStatus
Notes: Query the volume status. Currently only the amount of free space is returned. Devices
version=1.0
8.1.13.4 Storage/volumes/ID/format
/System/Storage/volumes/ID/format
PUT
Viewer
Description
Query
None
Inbound Data
None
Success Return
StorageVolumeStatus
8.1.13.5 Storage/volumes/ID/isFormat
/System/Storage/volumes/ID/IsFormat
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
StorageVolumeFormatSatus
Notes: formatSatus show the percentage of formatted part of the storage device.
version=1.0
8.1.14
FishEye
/System/fisheye
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
FishEye
PUT
Administrator
Description
Query
None
Inbound Data
FishEye
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.2 Network
/Network
Service v1.0
8.2.1Interfaces
/Network/interfaces
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
NetworkInterfaceList
Notes:
8.2.2Interface
/Network/interfaces/ID
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
NetworkInterface
PUT
Administrator
Description
Query
None
Inbound Data
NetworkInterface
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.2.3IPAddress
/Network/interfaces/ID/ipAddress
GET
Description
Query
None
Inbound Data
None
Success Return
IPAddress
PUT
Description
Administrator
It is used to update the ip address of a particular network interface.
Query
None
Inbound Data
IPAddress
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.2.4Wireless
/Network/interfaces/ID/wireless
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
Wireless
PUT
Administrator
Description
Query
None
Inbound Data
Wireless
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.2.5DetectedWirelessList
/Network/interfaces/ID/detectedWirelessList
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
detectedWirelessList
8.2.6DetectedWireless
/Network/interfaces/ID/detectedWirelessList/ID
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
detectedWireless
8.2.7Discovery
/Network/interfaces/ID/discovery
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
Discovery
PUT
Administrator
Description
Query
None
Inbound Data
Discovery
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.2.8PPPoE
/Network/interfaces/ID/pppoe
GET
Description
Query
None
Inbound Data
None
Success Return
PPPoE
PUT
Administrator
Description
Query
None
Inbound Data
PPPoE
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.2.9DDNS
/Network/interfaces/ID/ddns
GET
Description
Query
None
Inbound Data
None
Success Return
DDNS
PUT
Administrator
Description
Query
None
Inbound Data
DDNS
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.2.10
NFSList
/Network/interfaces/ID/NFSList
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
NFSList
PUT
Administrator
Description
Query
None
Inbound Data
NFSList
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.2.11
NFS
/Network/interfaces/ID/NFSList/ID
GET
Description
Query
None
Inbound Data
None
Success Return
NFS
PUT
Administrator
Description
Query
None
Inbound Data
NFS
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.2.12
Adapter
/Network/interfaces/ID/Adapter
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
Adapter
PUT
Administrator
Description
Query
None
Inbound Data
Adapter
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.2.13
Examples
HTTP/1.1 200 OK
Content-Type: application/xml; charset=UTF-8
Content-Length: xxx
<?xml version=1.0 encoding=UTF-8?>
<NetworkInterfaceList version=1.0
xmlns=http://www.hikvision.com/ver10/XMLSchema>
<NetworkInterface>
<id>1</id>
<IPAddress>
<ipVersion>v4</ipVersion>
<addressingType>static</addressingType>
<ipAddress>172.6.64.7</ipAddress>
<subnetMask>255.255.255.0</subnetMask>
<DefaultGateway>
<ipAddress>172.6.64.1</ipAddress>
</DefaultGateway>
<PrimaryDNS>
<ipAddress>192.0.0.200</ipAddress>
</PrimaryDNS>
</IPAddress>
<Discovery>
<UPnP>
<enabled>true</enabled>
</UPnP>
<Zeroconf>
<enabled>true</enabled>
</Zeroconf>
2009 2014 by HIKVISION. All rights reserved.
41
</Discovery>
<PPPoE>
<enabled>true</enabled>
<userName>hikvision</userName>
</PPPoE>
<DDNS>
<enabled>true</enabled>
<provider>PeanutHall</provider>
<domainName>hikvision.vicp.net</domainName>
<userName>hikvision</userName>
</DDNS>
<NetworkInterface>
</NetworkInterfaceList>
Example: Setting the IP Address
PUT /Network/interfaces/1/ipAddress HTTP/1.1
<statusCode>1</statusCode>
<statusString>OK</statusString>
</ResponseStatus>
8.3 IO
/IO
Service v1.0
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
IOPortList
Notes:
The allocation of IDs between input and output ports must be unique.
IOPortList XML Block
<IOPortList version=1.0 xmlns=http://www.hikvision.com/ver10/XMLSchema>
<IOInputPortList/>
<!-- opt -->
<IOOutputPortList/> <!-- opt -->
</IOPortList>
8.3.1Status
/IO/status
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
IOPortStatusList
Notes:
</ioPortID>
</ioPortType>
</ioState>
8.3.2Inputs
/IO/inputs
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
IOInputPortList
Notes:
IO inputs are hardwired, meaning that the inputs are statically allocated by the device and
cannot be created or deleted.
IOInputPortList XML Block
<IOInputPortList version=1.0 xmlns=http://www.hikvision.com/ver10/XMLSchema>
<IOInputPort/> <!-- opt -->
</IOInputPort>
8.3.3Input
/IO/inputs/ID
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
IOInputPort
PUT
Operator
Description
Query
None
Inbound Data
IOInputPort
Success Return
hik:ResponseStaus ResponseStatus
Notes:
<triggering> indicates the signal conditions to trigger the input port. High/Low will
2009 2014 by HIKVISION. All rights reserved.
44
8.3.4Input status
/IO/inputs/ID/status
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
IOPortStatus
Notes:
8.3.5Outputs
/IO/outputs
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
IOOutputPortList
Notes:
IO outputs are hardwired, meaning that the outputs are statically allocated by the device
and cannot be created or deleted.
IOOutputPortList XML Block
<IOOutputPortList version=1.0 xmlns=http://www.hikvision.com/ver10/XMLSchema>
<IOOutputPort/> <!-- opt -->
</IOOutputPort>
8.3.6Output
/IO/outputs/ID
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
IOOutputPort
PUT
Operator
Description
Query
None
Inbound Data
IOOutputPort
Success Return
hik:ResponseStaus ResponseStatus
Notes:
<PowerOnState> defines the output port configuration when the device is powered on.
<defaultState> is the default output port signal when it is not being triggered.
<outputState> is the output port signal when it is being triggered. Pulse will cause the
output port to send a signal (opposite of the <defaultState>) for a duration specified by the
<pulseDuration> tag.
<pulseDuration> is the duration of a output port signal when it is being triggered. It must
be provided if the <outputState> is pulse.
IOOutputPort XML Block
<IOOutputPort version=1.0 xmlns=http://www.hikvision.com/ver10/XMLSchema>
<id>
<!-- req, xs:integer, 2 -->
</id>
<PowerOnState>
<!-- req -->
<defaultState> <!ro, req, xs:string, high,low --> </defaultState>
<outputState>
<!ro, req, xs:string, high,low,pulse --> </outputState>
<pulseDuration> <!-- dep, xs:integer, milliseconds --> </pulseDuration>
</PowerOnState>
</IOOutputPort>
8.3.7Output status
/IO/outputs/ID/status
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
IOPortStatus
Notes:
8.3.8Output trigger
/IO/outputs/ID/trigger
PUT
Operator
Description
Query
None
Inbound Data
IOPortData
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.4 Video
/Video
Service v1.0
Notes:
8.4.1Input
/Video/inputs
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
VideoInput
Notes:
An IP media device may contain a set of video inputs. These inputs are hardwired by the
device, meaning that the IDs can be discovered but not created or deleted.
8.4.2Input channels
/Video/inputs/channels
GET
Description
Query
None
Inbound Data
None
Success Return
VideoInputChannelList
Notes:
Since video input channels are resources that are defined by the hardware configuration
of the device, they cannot be created or deleted.
VideoInputChannelList XML Block
<VideoInputChannelList version=1.0
xmlns=http://www.hikvision.com/ver10/XMLSchema>
<VideoInputChannel/>
<!-- opt -->
</VideoInputChannelList>
8.4.3Input channel
/Video/inputs/channels/ID
GET
Description
Query
None
Inbound Data
None
Success Return
VideoInputChannel
PUT
Operator
Description
Query
None
Inbound Data
VideoInputChannel
Success Return
hik:ResponseStaus ResponseStatus
Notes:
Description
Query
None
Inbound Data
None
Success Return
TextOverlayList
PUT
Operator
Description
Query
None
Inbound Data
TextOverlayList
Success Return
hik:ResponseStaus ResponseStatus
POST
Operator
Description
Query
None
Inbound Data
TextOverlay
Success Return
hik:ResponseStaus ResponseStatus
DELETE
Operator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
A set of text overlays is managed. They are composited over the video signal in increasing
ID-order.
TextOverlayList XML Block
<TextOverlayList version=1.0 xmlns=http://www.hikvision.com/ver10/XMLSchema>
<TextOverlay/> <!-- opt -->
</TextOverlayList>
Description
Query
None
Inbound Data
None
Success Return
TextOverlay
PUT
Operator
Description
Query
None
Inbound Data
TextOverlay
Success Return
hik:ResponseStaus ResponseStatus
DELETE
Description
Operator
It is used to delete a particular text overlay configuration for a video
input channel.
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
Description
Query
None
Inbound Data
None
Success Return
channelNameOverlay
PUT
Operator
Description
Query
None
Inbound Data
channelNameOverlay
Success Return
hik:ResponseStaus ResponseStatus
DELETE
Operator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
version=1.0
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
PrivacyMask
PUT
Operator
Description
Query
None
Inbound Data
PrivacyMask
Success Return
hik:ResponseStaus ResponseStatus
Notes:
Privacy masking can be enabled and the region list configured per channel.
PrivacyMask XML Block
<PrivacyMask version=1.0 xmlns=http://www.hikvision.com/ver10/XMLSchema>
<enabled>
<!-- req, xs:boolean -->
</enabled>
<PrivacyMaskRegionList/> <!-- opt -->
</PrivacyMask>
input channel.
Query
None
Inbound Data
None
Success Return
PrivacyMaskRegionList
PUT
Operator
Description
Query
None
Inbound Data
PrivacyMaskRegionList
Success Return
hik:ResponseStaus ResponseStatus
POST
Operator
Description
Query
None
Inbound Data
PrivacyMaskRegion
Success Return
hik:ResponseStaus ResponseStatus
DELETE
Operator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
Privacy masking consists of a set of regions that are combined to grey or black out areas
of a video input.
PrivacyMaskRegionList XML Block
<PrivacyMaskRegionList version=1.0
xmlns=http://www.hikvision.com/ver10/XMLSchema>
<PrivacyMaskRegion/> <!-- opt -->
</PrivacyMaskRegionList>
Description
Query
None
Inbound Data
None
Success Return
PrivacyMaskRegion
PUT
Operator
Description
Query
None
Inbound Data
PrivacyMaskRegion
Success Return
hik:ResponseStaus ResponseStatus
DELETE
Operator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.4.10
/Video/inputs/channels/ID/shelterAlarm
GET
Description
Query
None
Inbound Data
None
Success Return
ShelterAlarm
PUT
Operator
Description
Query
None
Inbound Data
ShelterAlarm
Success Return
hik:ResponseStaus ResponseStatus
Notes:
</ShelterAlarm>
8.4.11
/Video/inputs/channels/ID/shelterAlarm/regions
GET
Description
Query
None
Inbound Data
None
Success Return
ShelterAlarmRegionList
PUT
Operator
Description
Query
None
Inbound Data
ShelterAlarmRegionList
Success Return
hik:ResponseStaus ResponseStatus
POST
Operator
Description
Query
None
Inbound Data
ShelterAlarmRegion
Success Return
hik:ResponseStaus ResponseStatus
DELETE
Operator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.4.12
/Video/inputs/channels/ID/shelterAlarm/regions/ID
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
ShelterAlarmRegion
PUT
Operator
Description
Query
None
Inbound Data
ShelterAlarmRegion
Success Return
hik:ResponseStaus ResponseStatus
DELETE
Operator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
Region coordinates are dependent on video resolution. Only support the rectangular
region which will be drawn from four coordinates. The four points is clockwise direction,
and the beginning point is the low-left point.
Ordering of <ShelterAlarmRegion> blocks is insignificant.
ShelterAlarmRegion XML Block
<ShelterAlarmRegion version=1.0
xmlns=http://www.hikvision.com/ver10/XMLSchema>
<id>
<!-- req, xs:integer, 1 -->
</id>
<RegionCoordinatesList> <!-- req -->
<RegionCoordinates> <!-- req -->
<positionX>
<!-- req, xs:integer;coordinate -->
</positionX>
<positionY>
<!-- req, xs:integer;coordinate --> </positionY>
</RegionCoordinates>
</RegionCoordinatesList>
</ShelterAlarmRegion>
8.4.13
/Video/inputs/channels/ID/osdDatetime
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
OsdDatetime
PUT
Operator
Description
Query
None
Inbound Data
OsdDatetime
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.5 Audio
/Audio
Service v1.0
Notes:
8.5.1Channels
/Audio/channels
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
AudioChannelList
Notes:
Since inputs are resources that are defined by the hardware configuration of the device,
audio channels cannot be created or deleted.
AudioChannelList XML Block
<AudioChannelList version=1.0 xmlns=http://www.hikvision.com/ver10/XMLSchema>
<AudioChannel/> <!-- opt -->
</AudioChannelList>
8.5.2Channel
/Audio/channels/ID
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
AudioChannel
Notes:
<audioMode> is the duplex mode for audio transmission between the client and media
device.
<microphoneVolume> Volume control percentage for device microphone..
<speakerVolume> Volume control percentage for device speaker.
AudioChannel XML Block
<AudioChannel version=1.0 xmlns=http://www.hikvision.com/ver10/XMLSchema>
<id>
<!-- req, xs:integer, 11,12 -->
</id>
2009 2014 by HIKVISION. All rights reserved.
59
<enabled>
<!-- req, xs:boolean -->
</enabled>
<audioMode>
<!-- req, xs:string, talkonly, talkandlisten -->
</audioMode>
<microphoneEnabled> <!-- req, xs:boolean -->
</microphoneEnabled>
<microphoneSource>
<!-- req, xs:string, external -->
</microphoneSource>
<microphoneVolume> <!--req, xs:integer, 0100 -->
</microphoneVolume>
<speakerEnabled>
<!-- req, xs:boolean -->
</speakerEnabled>
<speakerVolume>
<!-- req, xs:integer,0100 -->
</speakerVolume>
</AudioChannel>
For encoder, please refer to Annex B (Additional content for Encoder).
Service v1.0
Notes:
8.6.1Open
/TwowayAudio/open
PUT
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.6.2Close
/TwowayAudio/close
PUT
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.6.3Send data
/TwowayAudio/sendData
PUT
Description
Query
None
Inbound Data
TwowayAudio Data
Success Return
hik:ResponseStaus ResponseStatus
Notes:
Example
PUT /TwowayAudio/sendData HTTP/1.1
Content-Type: audio/basic
Content-Length: xxx
\r\n
TwowayAudio Data
8.6.4Receive data
/TwowayAudio/receiveData
GET
Description
Query
None
Inbound Data
None
Success Return
TwowayAudio Data
Notes:
Example
GET /TwowayAudio/receiveData HTTP/1.1
HTTP/1.1 200 OK
Content-Type: audio/basic
Content-Length: xxx
\r\n
TwowayAudio Data
8.7 Serial
/Serial
Service v1.0
8.7.1Ports
/Serial/ports
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
SerialPorList
Notes:
Since serial ports are resources that are defined by the hardware configuration of the
device, they cannot be created or deleted.
SerialPortList XML Block
<SerialPortList version=1.0 xmlns=http://www.hikvision.com/ver10/XMLSchema>
<SerialPort/> <!-- opt -->
</SerialPortList>
8.7.2Port
/Serial/ports/ID
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
SerialPort
PUT
Operator
Description
Query
None
Inbound Data
SerialPort
Success Return
hik:ResponseStaus ResponseStatus
Notes:
<serialPortType> set the type of port; RS232, RS485. When <id> value is 1,
<serialPortType> value is RS485. When <id> value is 3, <serialPortType> value is
RS232. <serialPortType> value can not set directly.
SerialPort XML Block
<SerialPort version=1.0 xmlns=http://www.hikvision.com/ver10/XMLSchema>
<id>
<!-- req, xs:integer, 1, 3 -->
</id>
<enabled>
<!-- ro, req, xs:boolean -->
</enabled>
<serialPortType> <!-- req, xs:string, RS485, RS232 -->
</serialPortType>
<baudRate>
<!-- req, xs:integer -->
</baudRate>
<dataBits>
<!-- req, xs:integer -->
</dataBits>
<parityType>
<!-- req, xs:string, none,even,odd --> </parityType>
<stopBits>
<!-- req, xs:string, 1,1.5,2 -->
</stopBits>
</SerialPort>
For encoder, please refer to Annex B (Additional content for Encoder).
8.7.3 Command
/Serial/ports/ID/command
PUT
Operator
Description
Query
chainNo
Inbound Data
Success Return
hik:ResponseStaus ResponseStatus
Notes:
/Serial/ports/ID/transChanOpen
PUT
Operator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
Only support RS485 transparent channel, so ID value in the Resource_URI can only be 1.
PUT
Operator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
Only support RS485 transparent channel, so ID value in the Resource_URI can only be 1.
PUT
Operator
Description
Query
None
Inbound Data
Raw Data
Success Return
hik:ResponseStaus ResponseStatus
Notes:
Only support RS485 transparent channel, so ID value in the Resource_URI can only be 1.
Example
2009 2014 by HIKVISION. All rights reserved.
64
GET
Operator
Description
Query
None
Inbound Data
None
Success Return
Raw Data
Notes:
Only support RS485 transparent channel, so ID value in the Resource_URI can only be 1.
Example
GET /Serial/ports/1/transChanRecvData HTTP/1.1
HTTP/1.1 200 OK
8.8 Security
/Security
Service v1.0
Notes:
8.8.1Users
/Security/users
2009 2014 by HIKVISION. All rights reserved.
65
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
UserList
PUT
Administrator
Description
Query
None
Inbound Data
UserList
Success Return
hik:ResponseStaus ResponseStatus
POST
Administrator
Description
Query
None
Inbound Data
User
Success Return
hik:ResponseStaus ResponseStatus
DELETE
Administrator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
A default user account, admin, must be provided. Its default password is 12345. It has
an Administrator user level, and must not be deleted.
Passwords can only be uploaded - they are never revealed during GET operations.
UserList XML Block
<UserList version=1.0 xmlns=http://www.hikvision.com/ver10/XMLSchema>
<User/>
<!-- opt -->
</UserList>
8.8.2User
/Security/users/ID
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
User
PUT
Description
Administrator
It is used to update a particular user configuration for the device.
Query
None
Inbound Data
User
Success Return
hik:ResponseStaus ResponseStatus
DELETE
Administrator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.8.3adminAccess
/Security/adminAccess
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
AdminAccessProtocol
PUT
Administrator
Description
Query
None
Inbound Data
AdminAccessProtocol
Success Return
hik:ResponseStaus ResponseStatus
Notes:
<protocol> is the protocol name for admin access, i.e. HTTP, HTTPS, etc.
AdminAccessProtocol XML Block
2009 2014 by HIKVISION. All rights reserved.
67
<AdminAccessProtocol version=1.0
xmlns=http://www.hikvision.com/ver10/XMLSchema>
<protocol> <!-- req, xs:string; HTTP, HTTPS --> </protocol>
<portNo> <!-- req, xs:integer --> </portNo>
<netClientPort><!-- req, xs:integer --></netClientPort>
</AdminAccessProtocol>
8.9 Streaming
/Streaming
Service v1.0
Notes:
8.9.1Status
/Streaming/status
GET
Administrator
Description
Query
None
Inbound Data
None
Success Return
StreamingStatus
Notes:
8.9.2Channels
/Streaming/channels
GET
Description
Query
None
Inbound Data
None
Success Return
StreamingChannelList
PUT
Administrator
Description
Query
None
Inbound Data
StreamingChannelList
Success Return
hik:ResponseStaus ResponseStatus
POST
Administrator
Description
Query
None
Inbound Data
StreamingChannel
Success Return
hik:ResponseStaus ResponseStatus
DELETE
Administrator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.9.3Channel
/Streaming/channels/ID
GET
Description
Query
None
Inbound Data
None
Success Return
StreamingChannel
PUT
Description
Administrator
It is used to update the properties of a particular streaming channel
None
Inbound Data
StreamingChannel
Success Return
hik:ResponseStaus ResponseStatus
DELETE
Administrator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
To support multi video input devices , the streaming ID in URL should be indicate video
input channel number , so it is defined as : straming-Id + video-input-Id *100, for example :
/Streaming/channels/101 indicates the first streaming from the first video input
/Streaming/channels/202 indicates the second streaming from the second video input
For IPC, becourse of only one video input, case is simeple, it can accecpt 1 as the main
stream id , 2 as the sub-stream.
<ControlProtocolList> identifies the control protocols that are valid for this type of
streaming.
<Unicast> is for direct unicast streaming.
<Multicast> is for direct multicast streaming.
<sourcePortNo> is the unicast source port parameter for the outbound video and audio
streams, and the specific port number is device-dependant.
<destPortNo> is the multicast destination port parameter for the outbound video and
audio streams, and the specific port number is device-dependant.
<videoInputChannelID> refers to /Video/inputs/channels/ID.
<audioInputChannelID> refers to /Audio/channels/ID. It must be configured as an input
channel.
<audioResolution> is the resolution for the outbound audio stream in bits.
<SVC> enables the function to realize temporal scalability, which can drop frames from
bitstream according to actual solution.
StreamingChannel XML Block
<StreamingChannel version=1.0 xmlns=http://www.hikvision.com/ver10/XMLSchema>
<id>
<!-- req, xs:integer, 1, 2 -->
</id>
<channelName> <!-- ro, req, xs:string -->
</channelName>
<enabled>
<!-- ro, req, xs:boolean -->
</enabled>
<Transport>
<!-- req -->
<rtspPortNo>
<!-- opt, xs:integer -->
</rtspPortNo>
<maxPacketSize>
<!-- ro, opt, xs:integer -->
</maxPacketSize>
<sourcePortNo>
<!-- opt, xs:integer -->
</sourcePortNo>
2009 2014 by HIKVISION. All rights reserved.
70
<ControlProtocolList>
<!-- req -->
<ControlProtocol>
<!-- opt -->
<streamingTransport>
<!-- ro, req, xs:string, RTSP -->
</streamingTransport>
</ControlProtocol>
</ControlProtocolList>
<Unicast>
<!-- opt -->
<enabled>
<!-- ro, req, xs:boolean, true-->
</enabled>
</Unicast>
<Multicast>
<!-- opt -->
<enabled>
<!-- ro, req, xs:boolean, true -->
</enabled>
<destIPAddress>
<!-- opt, xs:string -->
</destIPAddress>
<destPortNo>
<!-- opt, xs:integer -->
</destPortNo>
</Multicast>
</Transport>
<Video>
<enabled>
<!-- ro, req, xs:boolean, true -->
</enabled>
<videoInputChannelID>
<!-- req, xs:integer -->
</videoInputChannelID>
<videoCodecType>
<!-- ro, opt, xs:string, H.264,MJPEG -->
</videoCodecType>
<videoScanType> <!-- ro, opt, xs:string, progressive --> </videoScanType>
<videoResolutionWidth>
<!-- req, xs:integer -->
</videoResolutionWidth>
<videoResolutionHeight> <!-- req, xs:integer -->
</videoResolutionHeight>
<videoQualityControlType>
<!-- req, xs:string, CBR,VBR -->
</videoQualityControlType>
<constantBitRate> <!-- opt, xs:integer, in kbps -->
</constantBitRate>
<fixedQuality> <!-- opt, xs:integer, percentage, 0-100 -->
</fixedQuality>
<maxFrameRate> <!-- req, xs:integer, maximum frame rate x100 -->
</maxFrameRate>
<keyFrameInterval> <!-- opt, xs:integer--> </keyFrameInterval>
<BPFrameInterval> <!-- opt, xs:integer --> </BPFrameInterval>
<mirrorStatus> <!-- opt, xs:string ,"OFF,UpToDown,LeftToRight"--> </mirrorStatus>
<rotationDegree><!-- opt, xs: integer,"0,180 "--> </rotationDegree>
<snapShotImageType><!-- ro, opt, xs:string, JPEG --> </snapShotImageType>
<SVC>
<enabled> <!-- opt, xs:boolean -->
</enabled>
<SVC>
</Video>
<Audio>
<enabled>
<!-- ro, req, xs:boolean, true,false -->
</enabled>
2009 2014 by HIKVISION. All rights reserved.
71
<audioInputChannelID>
<!-- ro, req, xs:integer -->
<audioCompressionType>
<!-- ro,opt, xs:string, G.711ulaw -->
</audioCompressionType>
</Audio>
</StreamingChannel>
</audioInputChannelID>
HTTP/1.1 200 OK
Content-Type: application/xml; charset=UTF-8
Content-Length: xxx
<?xml version=1.0 encoding=UTF-8?>
<StreamingChannel version=1.0 xmlns=http://www.hikvision.com/ver10/XMLSchema>
<id>1</id>
<channelName>Input 1 H.264</channelName>
<enabled>true</enabled>
<Transport>
<rtspPortNo>554</rtspPortNo>
<maxPacketSize>1000</maxPacketSize>
<sourcePortNo>8200</sourcePortNo>
<ControlProtocolList>
<ControlProtocol>
<streamingTransport>RTSP</streamingTransport>
</ControlProtocol>
</ControlProtocolList>
<Unicast>
<enabled>true</enabled>
</Unicast>
<Multicast>
<enabled>true</enabled>
<destIPAddress>224.16.74.1</destIPAddress>
<destPortNo>8600</destPortNo>
</Multicast>
</Transport>
<Video>
2009 2014 by HIKVISION. All rights reserved.
72
<enabled>true</enabled>
<videoInputChannelID>1</videoInputChannelID>
<videoCodecType>H.264</videoCodecType>
<videoScanType>progressive</videoScanType>
<videoResolutionWidth>640</videoResolutionWidth>
<videoResolutionHeight>480</videoResolutionHeight>
<videoQualityControlType>CBR</videoQualityControlType>
<constantBitRate>3072</constantBitRate>
<fixedQuality>80</fixedQuality>
<maxFrameRate>2500</maxFrameRate>
<keyFrameInterval>25</keyFrameInterval>
<BPFrameInterval>0</BPFrameInterval>
<mirrorStatus>OFF</mirrorStatus>
<rotationDegree>180</rotationDegree>
<snapShotImageType>JPEG</snapShotImageType>
<SVC>
<enabled>true</enabled>
</SVC>
</Video>
<Audio>
<enabled>true</enabled>
<audioInputChannelID>11</audioInputChannelID>
<audioCompressionType>G.711ulaw</audioCompressionType>
</Audio>
</StreamingChannel>
Example: Getting Streaming Capabilities
GET /Streaming/channels/1/capabilities HTTP/1.1
HTTP/1.1 200 OK
Content-Type: application/xml; charset=UTF-8
Content-Length: xxx
<?xml version=1.0 encoding=UTF-8?>
<StreamingChannel version=1.0 xmlns=http://www.hikvision.com/ver10/XMLSchema>
<id opt=1,2>1</id>
<channelName min=0 max=64>Input 1 H.264</channelName>
<enabled opt=true>true</enabled>
<Transport>
<rtspPortNo min=0 max=65535 def=554>554</rtspPortNo>
<maxPacketSize opt=1000>1000</maxPacketSize>
2009 2014 by HIKVISION. All rights reserved.
73
8.9.4Dynamic capabilities
/Streaming/channels/ID/dynamicCap
GET
Description
Query
None
Inbound Data
None
Success Return
DynamicCap
Notes:
HTTP/1.1 200 OK
Content-Type: application/xml; charset=UTF-8
Content-Length: xxx
<?xml version="1.0" encoding="UTF-8"?>
<DynamicCap version="2.0" xmlns="http://www.hikvision.org/ver20/XMLSchema">
2009 2014 by HIKVISION. All rights reserved.
75
<ResolutionAvailableDscriptorList>
<ResolutionAvailableDscriptor>
<videoResolutionWidth>176</videoResolutionWidth>
<videoResolutionHeight>144</videoResolutionHeight>
<supportedFrameRate>2500,6,12,25,50,100,200,400,600,800,1000,1200,1500,16
00,1800,2000,2200</supportedFrameRate>
</ResolutionAvailableDscriptor>
<ResolutionAvailableDscriptor>
<videoResolutionWidth>352</videoResolutionWidth>
<videoResolutionHeight>288</videoResolutionHeight>
<supportedFrameRate>2500,6,12,25,50,100,200,400,600,800,1000,1200,1500,16
00,1800,2000,2200</supportedFrameRate>
</ResolutionAvailableDscriptor>
<ResolutionAvailableDscriptor>
<videoResolutionWidth>704</videoResolutionWidth>
<videoResolutionHeight>576</videoResolutionHeight>
<supportedFrameRate>2500,6,12,25,50,100,200,400,600,800,1000,1200,1500,16
00,1800,2000,2200</supportedFrameRate>
</ResolutionAvailableDscriptor>
</ResolutionAvailableDscriptorList>
<AudioDscriptorList>
<audioCompressionType
SupportedAudioBitRate="32,64,128">MP2L2</audioCompressionType>
</AudioDscriptorList>
</DynamicCap>
8.9.5Channel status
/Streaming/channels/ID/status
GET
Description
Query
None
Inbound Data
None
Success Return
StreamingSessionStatusList
Notes:
</ipAddress>
8.9.6Picture
/Streaming/channels/ID/picture
GET
Operator
Description
Query
videoResolutionWidth
videoResolutionHeight
snapShotImageType
Inbound Data
None
Success Return
Notes:
GET /Streaming/channels/1/picture
Accept: image/jpeg
8.9.7Request keyframe
/Streaming/channels/ID/requestKeyFrame
PUT
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
The key frame that is issued should include everything necessary to initialize a video
decoder, i.e. parameter sets for H.264.
Service
GET
v1.0
Viewer
Description
It is used to get the motion detection configuration for all video input
channels.
Query
None
Inbound Data
None
Success Return
MotionDetectionList
Notes:
If motion detection is supported by the device, a motion detection ID will be allocated for
each video input channel ID. The motion detection ID must correspond to the video input
channel ID.
MotionDetectionList XML Block
<MotionDetectionList version=1.0
xmlns=http://www.hikvision.com/ver10/XMLSchema>
<MotionDetection/>
<!-- opt -->
</MotionDetectionList >
8.10.1
/MotionDetection/ID
GET
Description
Query
None
Inbound Data
None
Success Return
MotionDetection
PUT
Operator
Description
Query
None
Inbound Data
MotionDetection
Success Return
hik:ResponseStaus ResponseStatus
Notes:
Note that the ID used here MUST correspond to the video input ID.
The interface supports grid-based motion detection.
Grid-based motion detect divides the image into a set of fixed bins that delimit the motion
detection area boundaries.
MotionDetection XML Block
<MotionDetection version=1.0 xmlns=http://www.hikvision.com/ver10/XMLSchema>
<id>
<!-- req, xs:integer -->
</id>
<enabled>
<!-- req, xs:boolean -->
</enabled>
<regionType>
<!-- ro, req, xs:string, grid -->
</regionType>
<Grid>
<!-- req -->
<rowGranularity>
<!-- ro, req, xs:integer --> </rowGranularity>
<columnGranularity> <!-- ro, req, xs:integer --> </columnGranularity>
</Grid>
<MotionDetectionRegionList/> <!-- req -->
</MotionDetection>
8.10.2
/MotionDetection/ID/regions
GET
Description
Query
None
Inbound Data
None
Success Return
MotionDetectionRegionList
PUT
Operator
Description
Query
None
Inbound Data
MotionDetectionRegionList
Success Return
hik:ResponseStaus ResponseStatus
POST
Operator
Description
Query
None
Inbound Data
MotionDetectionRegion
Success Return
hik:ResponseStaus ResponseStatus
DELETE
Operator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.10.3
/MotionDetection/ID/regions/ID
GET
Description
Query
None
Inbound Data
None
Success Return
MotionDetectionRegion
PUT
Operator
Description
Query
None
Inbound Data
MotionDetectionRegion
Success Return
hik:ResponseStaus ResponseStatus
DELETE
Operator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.10.4
1200
Mask Region 3
Region 2
Region 1
1600
<RegionCoordinates>
<positionX>4</positionX>
<positionY>0</positionY>
</RegionCoordinates>
</RegionCoordinatesList>
</MotionDetectionRegion>
<MotionDetectionRegion>
<id>2</id>
<enabled>true</enabled>
<maskEnabled>false</maskEnabled>
<RegionCoordinatesList>
<RegionCoordinates>
<positionX>8</positionX>
<positionY>8</positionY>
</RegionCoordinates>
<RegionCoordinates>
<positionX>8</positionX>
<positionY>12</positionY>
</RegionCoordinates>
<RegionCoordinates>
<positionX>12</positionX>
<positionY>12</positionY>
</RegionCoordinates>
<RegionCoordinates>
<positionX>12</positionX>
<positionY>8</positionY>
</RegionCoordinates>
</RegionCoordinatesList>
</MotionDetectionRegion>
<MotionDetectionRegion>
<id>3</id>
<enabled>true</enabled>
<maskEnabled>true</maskEnabled>
<RegionCoordinatesList>
<RegionCoordinates>
<positionX>11</positionX>
<positionY>11</positionY>
</RegionCoordinates>
<RegionCoordinates>
<positionX>11</positionX>
<positionY>12</positionY>
</RegionCoordinates>
<RegionCoordinates>
2009 2014 by HIKVISION. All rights reserved.
83
<positionX>12</positionX>
<positionY>12</positionY>
</RegionCoordinates>
<RegionCoordinates>
<positionX>12</positionX>
<positionY>11</positionY>
</RegionCoordinates>
</RegionCoordinatesList>
</MotionDetectionRegion>
</MotionDetectionRegionList>
</MotionDetection>
8.10.5
/MotionDetectionExt/<ID>
/MotionDetectionExt/ID
Service v2.0
GET
Description
It is used to get the motion detection configuration for all video input
channels.
Query
None
Inbound Data
None
Success Return
MotionDetectionExt
PUT
Description
Query
None
Inbound Data
MotionDetectionExt
Success Return
ResponseStatus
Notes:
If motion detection is supported by the device, a motion detection ID will be allocated for
each video input channel ID. The motion detection ID must correspond to the video input
channel ID.
<activeMode> indicates current effective motion detection mode, <activeMode> will
switch to Normal mode automatically when using /MotionDetection/<ID>/regions to
configure motion detection; <activeMode> will switch to expert mode automatically when
using /MotionDetectionExt/<ID>
<minObjectSize>
<!-- opt, xs:integer, min number of pixels per object -->
</minObjectSize>
<maxObjectSize>
<!-- opt, xs:integer, max number of pixels per object -->
</maxObjectSize>
<ROI>
<!-- dep, required if <motionType> is roi -->
<minHorizontalResolution> <!-- req, xs:integer --> </minHorizontalResolution>
<minVerticalResolution> <!-- req, xs:integer --> </minVerticalResolution>
</ROI>
<highlightsenabled> <!-- opt, xs:boolean -->
</highlightsenabled>
<MotionDetectionSwitch/>
<activeMode> <!-- ro, xs:string, normal,expert> <activeMode>
<MotionDetectionRegionList/> <!-- req -->
</MotionDetectionExt>
8.10.6
/MotionDetectionExt/<ID>/switch
/MotionDetectionExt/ID/switch
GET
Description
It is used to get the motion detection switch day and night settings.
Query
None
Inbound Data
None
Success Return
MotionDetectionSwitch
PUT
Description
Query
None
Inbound Data
MotionDetectionSwitch
Success Return
ResponseStatus
Notes:
If motion detection is supported by the device, a motion detection ID will be allocated for
each video input channel ID. The motion detection ID must correspond to the video input
channel ID.
MotionDetectionSwitch XML Block
<MotionDetectionSwitch version=1.0
xmlns=http://www.hikvision.com/ver10/XMLSchema>
<type>
2009 2014 by HIKVISION. All rights reserved.
85
8.10.7
/MotionDetectionExt/<ID>/regions
/MotionDetectionExt/ID/regions
GET
MotionDetectionRegionList XML Block
<MotionDetectionRegionList version=1.0
xmlns=http://www.hikvision.com/ver10/XMLSchema>
<MotionDetectionRegion/> <!-- opt -->
</MotionDetectionRegionList>
8.10.8
/MotionDetectionExt/<ID>/regions/<ID>
/MotionDetectionExt/ID/regions/ID
GET
Description
It is used to get the motion detection configuration for all video input
channels.
Query
None
Inbound Data
None
Success Return
MotionDetectionRegion
PUT
Description
Query
None
Inbound Data
MotionDetectionRegion
Success Return
ResponseStatus
Notes:
If motion detection is supported by the device, a motion detection ID will be allocated for
each video input channel ID. The motion detection ID must correspond to the video input
channel ID.
MotionDetectionRegion XML Block
<MotionDetectionRegion version=1.0
xmlns=http://www.hikvision.com/ver10/XMLSchema>
<id> <!-- req, xs:string;id --></id>
<enabled> <!-- req, xs:boolean --> </enabled>
<maskEnabled>
<!-- opt, xs:boolean --> </maskEnabled>
<daySensitivityLevel> <!-- opt -->
<!-- req, xs:integer, 0..100, 0 is least sensitive -->
</daySensitivityLevel>
<nightSensitivityLevel> <!-- opt -->
<!-- req, xs:integer, 0..100, 0 is least sensitive -->
</nightSensitivityLevel>
<sensitivityLevel> <!-- opt -->
<!-- req, xs:integer, 0..100, 0 is least sensitive -->
</sensitivityLevel>
<dayObjectSize> <!-- opt -->
<!-- req, xs:integer, 0..100, 0 is least sensitive -->
</dayObjectSize>
<nightObjectSize> <!-- opt -->
<!-- req, xs:integer, 0..100, 0 is least sensitive -->
</nightObjectSize>
<objectSize> <!-- opt -->
<!-- req, xs:integer, 0..100, 0 is least sensitive -->
</objectSize>
<detectionThreshold> <!-- req -->
<!-- req, xs:integer, 0..100, percentage-->
</detectionThreshold>
<RegionCoordinatesList>
<!-- req -->
<RegionCoordinates> <!-- Note: at least two coordinates are required -->
<positionX>
<!-- req, xs:integer --> </positionX>
<positionY>
<!-- req, xs:integer --> </positionY>
</RegionCoordinates>
</RegionCoordinatesList>
</MotionDetectionRegion>
8.11 Event
/Event
Service
GET
v1.0
Viewer
Description
Query
None
Inbound Data
None
Success Return
EventNotification
PUT
Operator
Description
Query
None
Inbound Data
EventNotification
Success Return
hik:ResponseStaus ResponseStatus
Notes:
The event trigger list defines the set of device behaviors that trigger events.
The event schedule defines when event notifications are active.
The event notification methods define what types of notification (e-mail) are supported.
EventNotification XML Block
<EventNotification version=1.0 xmlns=http://www.hikvision.com/ver10/XMLSchema>
<EventTriggerList/>
<!-- opt -->
<EventSchedule/>
<!-- opt -->
<EventNotificationMethods/> <!-- opt -->
</EventNotification>
8.11.1
Triggers
/Event/triggers
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
EventTriggerList
PUT
Operator
Description
Query
None
Inbound Data
EventTriggerList
Success Return
hik:ResponseStaus ResponseStatus
POST
Operator
Description
Query
None
Inbound Data
EventTrigger
Success Return
hik:ResponseStaus ResponseStatus
DELETE
Operator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
Event triggering defines how the device reacts to particular events, such as video loss or
motion detection.
EventTriggerList XML Block
<EventTriggerList version=1.0 xmlns=http://www.hikvision.com/ver10/XMLSchema>
<EventTrigger/> <!-- opt -->
</EventTriggerList>
8.11.2
Trigger
/Event/triggers/ID
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
EventTrigger
PUT
Operator
Description
Query
None
Inbound Data
EventTrigger
Success Return
hik:ResponseStaus ResponseStatus
DELETE
Operator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
An event trigger determines how the device reacts when a particular event is detected.
The following types are supported:
IO: trigger when an input IO port changes state.
VMD: trigger on video motion detection.
Video loss: trigger when the input video signal cannot be detected.
Shelter alarm: trigger when shelter is set.
The ID in the URI is the sequence number of a trigger , the max value of <id> is depend
on device. The first trigger id is 1.
<inputIOPortID> is only required if <eventType> is IO.
The trigger ID in URL is defined as :
1 to N are assigned for alarm input port 1 to N
N+1 is assigned for VMD event
N+2 is assigned for video-loss event
N+3 is assigned for Shelter alarm event
N+4 is assigned for field detection event
N+5 is assigned for audio exception detection event
N+6 is assigned for defocus detection event
N+7 is assigned for scene change detection event
N+8 is assigned for face detection
Example: For an IPC that with three alarm input ports, trigger 1 is alarm input 1 , trigger 3
is for alarm input 3, trigger 4 is for VMD, trigger 5 is for Video loss , trigger 6 is for shelter
alarm.
For encoder, please refer to Annex B (Additional content for Encoder).
EventTriggerList XML Block
<EventTrigger version=1.0 xmlns=http://www.hikvision.com/ver10/XMLSchema>
<id>
<!-- req, xs:integer-->
</id>
<eventType>
<!-- req, xs:string, IO,VMD,videoloss,shelteralarm, fielddetection,
audioexception,defocus,scenechangedetection,facedetection --> </eventType>
<eventDescription>
<!-- ro, req, xs:string -->
</eventDescription>
<inputIOPortID>
<!-- ro, req, xs:string -->
</inputIOPortID>
<EventTriggerNotificationList/> <!-- req -->
</EventTrigger>
For encoder, please refer to Annex B (Additional content for Encoder).
8.11.3
Trigger notifications
/Event/triggers/ID/notifications
GET
2009 2014 by HIKVISION. All rights reserved.
90
Description
Query
None
Inbound Data
None
Success Return
EventTriggerNotificationList
PUT
Operator
Description
Query
None
Inbound Data
EventTriggerNotificationList
Success Return
hik:ResponseStaus ResponseStatus
POST
Operator
Description
Query
None
Inbound Data
EventTriggerNotification
Success Return
hik:ResponseStaus ResponseStatus
DELETE
Operator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
This section determines the kinds of notifications that are supported for a particular event
trigger and their recurrences and behaviors.
EventTriggerNotificationList XML Block
<EventTriggerNotificationList version=1.0
xmlns=http://www.hikvision.com/ver10/XMLSchema>
<EventTriggerNotification/> <!-- opt -->
</EventTriggerNotificationList>
8.11.4
Trigger notification
/Event/triggers/ID/notifications/ID
GET
Description
Query
None
Inbound Data
None
Success Return
EventTriggerNotification
PUT
Operator
Description
Query
None
Inbound Data
EventTriggerNotification
Success Return
hik:ResponseStaus ResponseStatus
DELETE
Operator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
The first ID in the URI is the sequence number of a trigger , the max value of <id> is
depend on device. The first trigger id is 1.
The second ID in the URI is the sequence number a notification , the max value of <id>
is depend on device. The first notification id is 1.
<outputIOPortID> is only required if the <notifiocationMethod> is IO.
<ptzAction> is only required if the <notifiocationMethod> is PTZ.
For encoder, please refer to Annex B (Additional content for Encoder).
EventTriggerNotification XML Block
<EventTriggerNotification version=1.0
xmlns=http://www.hikvision.com/ver10/XMLSchema>
<id>
<!-- req, xs:integer -->
</id>
<notificationMethod><!--req,xs:string,email,IO,record,HTTP,FTP,ptz--></notificationMetho
d>
<notificationRecurrence> <!-- ro, req, xs:string, beginning -->
</notificationRecurrence>
<outputIOPortID>
<!-- ro, dep, xs:integer -->
</outputIOPortID>
<ptzAction> <!-- dep -->
<ptzChannelID> <!--req, xs:string; id --> </ptzChannelID>
<actionName> <!-- req, xs:string, preset, pattern, patrol --> </actionName>
<actionNum> <!-- dep, xs:integer> </actionNum>
</ptzAction>
</EventTriggerNotification>
For encoder, please refer to Annex B (Additional content for Encoder).
8.11.5
Schedule
/Event/schedule
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
EventSchedule
PUT
Operator
Description
Query
None
Inbound Data
EventSchedule
Success Return
hik:ResponseStaus ResponseStatus
Notes:
Defines the schedule. The schedule is defined as a set of time blocks that define when the
events are active.
The schedule is always valid.
It only supports one TimeBlock every day now.
EventSchedule XML Block
<EventSchedule version=1.0 xmlns=http://www.hikvision.com/ver10/XMLSchema>
<TimeBlockList> <!-- req -->
<TimeBlock>
<dayOfWeek>
<!-- opt, xs:integer, ISO8601 weekday number, 1=Monday, -->
</dayOfWeek>
<TimeRange>
<!-- req -->
<beginTime>
<!-- req, xs:time, ISO8601 time --> </beginTime>
<endTime>
<!-- req, xs:time, ISO8601 time --> </endTime>
</TimeRange>
</TimeBlock>
</TimeBlockList>
</EventSchedule>
8.11.6
Schedule/ID
/Event/Schedule/ID
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
EventSchedule
PUT
Operator
Description
Query
None
Inbound Data
EventSchedule
Success Return
hik:ResponseStaus ResponseStatus
Notes:
</inputIOPortID>
</inputIOPortID>
</beginTime>
</endTime>
</TimeRange>
</TimeBlock>
</TimeBlockList>
</EventSchedule>
8.11.7
Notification
/Event/notification
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
EventNotificationMethods
PUT
Operator
Description
Query
None
Inbound Data
EventNotificationMethods
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.11.8
Mails notification
/Event/notification/mailing
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
MailingNotificationList
PUT
Operator
Description
Query
None
Inbound Data
MailingNotificationList
Success Return
hik:ResponseStaus ResponseStatus
POST
Operator
Description
Query
None
Inbound Data
MailingNotification
Success Return
hik:ResponseStaus ResponseStatus
DELETE
Operator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
When the notification is triggered, an e-mail with relevant information is mailed to the each
of the addresses in the mailing list.
MailingNotificationList XML Block
<MailingNotificationList version=1.0
xmlns=http://www.hikvision.com/ver10/XMLSchema>
<MailingNotification/>
<!-- opt -->
</MailingNotificationList>
8.11.9
Mail notification
/Event/notification/mailing/ID
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
MailingNotification
PUT
Operator
Description
Query
None
Inbound Data
MailingNotification
Success Return
hik:ResponseStaus ResponseStatus
DELETE
Operator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
General Resource
v2.0
GET
Description
Query
None
Inbound Data
None
Success Return
HttpHostNotificationList
PUT
Description
Query
None
Inbound Data
HttpHostNotificationList
Success Return
ResponseStatus
Notes:
version=1.0
General Resource
v2.0
GET
Description
Query
None
Inbound Data
None
Success Return
HttpHostNotification
PUT
Description
Query
None
Inbound Data
HttpHostNotification
Success Return
ResponseStatus
Notes:
version=1.0
</protocolType>
Description
Query
None
Inbound Data
None
Success Return
Stream of <EventNotificationAlert>
Notes:
This function is used to get an event notification alert stream from the media device via
HTTP or HTTPS. This function does not require that a client/VMS system be added as an
HTTP(S) destination on the media device. Instead, the client/VMS system can call this
API to initialize a stream of event information from the device. In other words, a
connection is established with the device when this function is called, and stays open to
constantly receive event notifications.
This API uses HTTP server-push with the MIME type multipart/mixed defined in RFC
2046.
<protocol> is the protocol name, i.e. HTTP or HTTPS.
<channelID> is present for video and analytics events.
<activePostCount> is the sequence number of current notification for this particular event.
It starts at 1. Useful for recurring notifications of an event. Each event maintains a
2009 2014 by HIKVISION. All rights reserved.
99
HTTP/1.1 200 OK
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary=<boundary>
--<boundary>
Content-Type: application/xml; charset=UTF-8
Content-Length: xxx
<?xml version=1.0 encoding=UTF-8?>
<EventNotificationAlert version=1.0
xmlns=http://www.hikvision.com/ver10/XMLSchema>
<ipAddress>172.6.64.7</ipAddress>
<portNo>80</portNo>
<protocol>HTTP</protocol>
2009 2014 by HIKVISION. All rights reserved.
100
<macAddress>01:17:24:45:D9:F4</macAddress>
<channelID>1</channelID>
<dateTime>2009-11-14T15:27Z</dateTime>
<activePostCount>1</activePostCount>
<eventType>VMD</eventType>
<eventState>active</eventState>
<eventDescription>Motion alarm</eventDescription>
<DetectionRegionList>
<DetectionRegionEntry>
<regionID>2</regionID>
<sensitivityLevel>4</sensitivityLevel>
</DetectionRegionEntry>
</DetectionRegionList>
</EventNotificationAlert>
--<boundary>
<EventTriggerNotification>
<id>1</id> <!-- notificationMethod: email -->
</EventTriggerNotification>
<EventTriggerNotification>
<id>2</id> <!-- notificationMethod: IO -->
</EventTriggerNotification>
</EventTriggerNotificationList>
</EventTrigger>
Example: Schedule event detection and triggering
The command below schedules event detection and triggering from 7:00 am to 5:00 pm.
every Tuesday.
PUT /Event/schedule HTTP/1.1
Content-Type: application/xml; charset=UTF-8
Content-Length: xxx
<?xml version=1.0 encoding=UTF-8?>
<EventSchedule version=1.0 xmlns=http://www.hikvision.com/ver10/XMLSchema>
<TimeBlockList>
<TimeBlock>
<dayOfWeek>2</dayOfWeek>
<TimeRange>
<beginTime>07:00:00</beginTime>
<endTime>17:00:00</endTime>
</TimeRange>
</TimeBlock>
</TimeBlockList>
</EventSchedule>
8.12 PTZ
/PTZ
Service v1.0
8.12.1
Channels
/PTZ/channels
GET
Description
Viewer
It is used to get the list of PTZ channels for the device.
Query
None
Inbound Data
None
Success Return
PTZChannelList
PUT
Operator
Description
Query
None
Inbound Data
PTZChannelList
Success Return
hik:ResponseStaus ResponseStatus
POST
Operator
Description
Query
None
Inbound Data
PTZChannel
Success Return
hik:ResponseStaus ResponseStatus
DELETE
Operator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
PTZ channels may be hardwired, or it may be possible to create channels if the device
supports it. To determine whether it is possible to dynamically PTZ channels, check the
defined HTTP methods in /PTZ/channels/description.
PTZChannelList XML Block
<PTZChannelList version=1.0 xmlns=http://www.hikvision.com/ver10/XMLSchema>
<PTZChannel/>
<!-- opt -->
</PTZChannelList>
8.12.2
Channel
/PTZ/channels/ID
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
PTZChannel
PUT
Description
Operator
It is used to update a particular PTZ channel configuration for the
device.
Query
None
Inbound Data
PTZChannel
Success Return
hik:ResponseStaus ResponseStatus
DELETE
Operator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.12.3
Patrols
/PTZ/channels/ID/patrols
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
PTZPatrolList
Notes:
8.12.4
Patrol
/PTZ/channels/ID/patrols/ID
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
PTZPatrol
PUT
Operator
Description
Query
None
Inbound Data
PTZPatrol
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.12.5
Patrol keyPoints
/PTZ/channels/ID/patrols/ID/keyPoints
GET
Description
It is used to get the list of key points of a particular patrol for a PTZ
channel.
Query
None
Inbound Data
None
Success Return
PatrolPointList
PUT
Operator
Description
Query
None
Inbound Data
PatrolPointList
Success Return
hik:ResponseStaus ResponseStatus
POST
Operator
Description
Query
None
Inbound Data
PatrolPoint
Success Return
hik:ResponseStaus ResponseStatus
DELETE
Operator
Description
It is used to delete the list of key points of a particular patrol for a PTZ
channel.
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.12.6
Patrol keyPoint
/PTZ/channels/ID/patrols/ID/keyPoints/ID
GET
Description
Query
None
Inbound Data
None
Success Return
PatrolPoint
PUT
Operator
Description
Query
None
Inbound Data
PatrolPoint
Success Return
hik:ResponseStaus ResponseStatus
DELETE
Operator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.12.7
PTZControl
/PTZ/channels/ID/PTZControl
PUT
Description
Query
command
presetNo
patrolNo
mode
speed
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
/PTZ/channels/ID/PTZControl?command=UP_LEFT&speed=1&mode=start
/PTZ/channels/ID/PTZControl?command=GOTO_PRESET&presetno=1&speed=1
/PTZ/channels/ID/PTZControl?command=TILT_UP&speed=1&mode=start
/PTZ/channels/ID/PTZControl?command=TILT_DOWN&speed=1&mode=start
/PTZ/channels/ID/PTZControl?command=PAN_LEFT&speed=1&mode=start
/PTZ/channels/ID/PTZControl?command=PAN_RIGHT&speed=1&mode=start
/PTZ/channels/ID/PTZControl?command=UP_LEFT&speed=1&mode=start
/PTZ/channels/ID/PTZControl?command=UP_RIGHT&speed=1&mode=start
/PTZ/channels/ID/PTZControl?command=DOWN_LEFT&speed=1&mode=start
/PTZ/channels/ID/PTZControl?command=DOWN_RIGHT&speed=1&mode=start
/PTZ/channels/ID/PTZControl?command=PAN_AUTO&speed=1&mode=start
/PTZ/channels/ID/PTZControl?command=LIGHT
/PTZ/channels/ID/PTZControl?command=WIPER
/PTZ/channels/ID/PTZControl?command=ZOOM_IN&speed=1&mode=start
/PTZ/channels/ID/PTZControl?command=ZOOM_OUT&speed=1&mode=start
/PTZ/channels/ID/PTZControl?command=FOCUS_NEAR&speed=1&mode=start
/PTZ/channels/ID/PTZControl?command=FOCUS_FAR&speed=1&mode=start
/PTZ/channels/ID/PTZControl?command=IRIS_OPEN&speed=1&mode=start
/PTZ/channels/ID/PTZControl?command=IRIS_CLOSE&speed=1&mode=start
8.13 PTZCtrl
/PTZCtrl
Service v1.0
8.13.1
/PTZCtrl/channels
/PTZCtrl/channels
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
PTZChannelList
PUT
Operator
Description
Query
None
Inbound Data
PTZChannelList
Success Return
hik:ResponseStaus ResponseStatus
POST
Operator
Description
Query
None
Inbound Data
PTZChannel
Success Return
hik:ResponseStaus ResponseStatus
DELETE
Administrator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
PTZ channels may be hardwired, or it may be possible to create channels if the device
supports it. To determine whether it is possible to dynamically PTZ channels, check the
defined HTTP methods in /PTZCtrl/channels/description.
PTZChannelList XML Block
<PTZChannelList version=1.0 xmlns=http://www.hikvision.com/ver10/XMLSchema>
<PTZChannel/>
<!-- opt -->
</PTZChannelList>
8.13.2
/PTZCtrl/channels/<ID>
/PTZCtrl/channels/<ID>
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
PTZChannel
PUT
Operator
Description
Query
None
Inbound Data
PTZChannel
Success Return
hik:ResponseStaus ResponseStatus
DELETE
Operator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.13.3
/PTZCtrl/channels/<ID>/homeposition
/PTZCtrl/channels/<ID>/homeposition
PUT
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
DELETE
Operator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.13.4
/PTZCtrl/channels/<ID>/homeposition/goto
/PTZCtrl/channels/<ID>/homeposition/goto
General Resource
v1.0
PUT
Operator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.13.5
/PTZCtrl/channels/<ID>/continuous
/PTZCtrl/channels/<ID>/continuous
PUT
Description
It is used to control PTZ move around and zoom for the device.
Query
Inbound Data
PTZData
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.13.6
/PTZCtrl/channels/<ID>/momentary
/PTZCtrl/channels/<ID>/momentary
PUT
Operator
Description
Query
Inbound Data
PTZData
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.13.7
/PTZCtrl/channels/<ID>/relative
/PTZCtrl/channels/<ID>/relative
PUT
Description
Pans, tilts, and/or zooms the device relative to the current position.
Query
Inbound Data
PTZData
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.13.8
/PTZCtrl/channels/<ID>/absolute
/PTZCtrl/channels/<ID>/absolute
PUT
Description
Query
Inbound Data
PTZData
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.13.9
/PTZCtrl/channels/<ID>/digital
/PTZCtrl/channels/<ID>/digital
PUT
Description
Query
Inbound Data
PTZData
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.13.10 /PTZCtrl/channels/<ID>/status
/PTZCtrl/channels/<ID>/status
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
PTZStatus
Notes:
<AbsoluteHigh> is high precision positioning which is accurate to a bit after the decimal
point; For example elevation -900..2700 is corresponding to vertical -90.0-270.0 degree, and
azimuth 0..3600 is corresponding to horizontal 0.0-360.0 degree, absoluteZoom is corresponding
to zoom 0.0..100.0;
8.13.11 /PTZCtrl/channels/<ID>/presets
/PTZCtrl/channels/<ID>/presets
GET
Description
Query
None
Inbound Data
None
Success Return
PTZPresetList
PUT
Operator
Description
Query
None
Inbound Data
PTZPresetList
Success Return
hik:ResponseStaus ResponseStatus
POST
Operator
Description
Query
None
Inbound Data
PTZPreset
Success Return
hik:ResponseStaus ResponseStatus
DELETE
Administrator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.13.12 /PTZCtrl/channels/<ID>/presets/<ID>
/PTZCtrl/channels/<ID>/presets/<ID>
GET
Description
Query
None
Inbound Data
None
Success Return
PTZPreset
PUT
Description
Operator
It is used to update particular preset configuration information of a
particular PTZ channel for the device.
Query
None
Inbound Data
PTZPreset
Success Return
hik:ResponseStaus ResponseStatus
DELETE
Operator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.13.13 /PTZCtrl/channels/<ID>/presets/<ID>/goto
/PTZCtrl/channels/<ID>/presets/<ID>/goto
PUT
Operator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.13.14 /PTZCtrl/channels/<ID>/patrols
/PTZCtrl/channels/<ID>/patrols
GET
Description
None
Inbound Data
None
Success Return
PTZPatrolList
PUT
Operator
Description
Query
None
Inbound Data
PTZPatrolList
Success Return
hik:ResponseStaus ResponseStatus
POST
Operator
Description
Query
None
Inbound Data
PTZPatrol
Success Return
hik:ResponseStaus ResponseStatus
DELETE
Administrator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
8.13.15 /PTZCtrl/channels/<ID>/patrols/<ID>
/PTZCtrl/channels/<ID>/patrols/<ID>
GET
Description
Query
None
Inbound Data
None
Success Return
PTZPatrol
PUT
Description
Operator
It is used to update a particular patrol configuration of a particular
PTZ channel.
Query
None
Inbound Data
PTZPatrol
Success Return
hik:ResponseStaus ResponseStatus
DELETE
Operator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.13.16 /PTZCtrl/channels/<ID>/patrols/<ID>/start
/PTZCtrl/channels/<ID>/patrols/<ID>/start
PUT
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.13.17 /PTZCtrl/channels/<ID>/patrols/<ID>/stop
/PTZCtrl/channels/<ID>/patrols/<ID>/stop
PUT
Operator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
It is available to stop the patrol route which is in running state or in pause state.
8.13.18 /PTZCtrl/channels/<ID>/patrols/<ID>/pause
/PTZCtrl/channels/<ID>/patrols/<ID>/pause
PUT
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.13.19 /PTZCtrl/channels/<ID>/patrols/<ID>/status
/PTZCtrl/channels/<ID>/patrols/<ID>/status
GET
Viewer
Description
Query
None
Inbound Data
PTZPatrolStatus
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.13.20 /PTZCtrl/channels/<ID>/patrols/<ID>/schedule
/PTZCtrl/channels/<ID>/patrols/<ID>/schedule
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
TimeBlockList
PUT
Operator
Description
Query
None
Inbound Data
TimeBlockList
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.13.21 /PTZCtrl/channels/<ID>/patterns
/PTZCtrl/channels/<ID>/patterns
GET
Description
Query
None
Inbound Data
None
Success Return
PTZPatternList
Notes:
It is similar to presets!!
DELETE
Operator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
8.13.22 /PTZCtrl/channels/<ID>/patterns/<ID>
/PTZCtrl/channels/<ID>/patterns/<ID>
GET
Description
Query
None
Inbound Data
None
Success Return
PTZPattern
PUT
Operator
Description
Query
None
Inbound Data
PTZPattern
Success Return
hik:ResponseStaus ResponseStatus
DELETE
Operator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.13.23 /PTZCtrl/channels/<ID>/patterns/<ID>/recordst
art
/PTZCtrl/channels/<ID>/patterns/<ID>/recordstart
PUT
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
Remaining space information will be uploaded in real time during the recording process.
8.13.24 /PTZCtrl/channels/<ID>/patterns/<ID>/recordst
op
/PTZCtrl/channels/<ID>/patterns/<ID>/recordstop
PUT
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.13.25 /PTZCtrl/channels/<ID>/patterns/<ID>/run
/PTZCtrl/channels/<ID>/patterns/<ID>/run
PUT
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.13.26 /PTZCtrl/channels/<ID>/patterns/<ID>/stop
/PTZCtrl/channels/<ID>/patterns/<ID>/stop
PUT
Operator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.13.27 /PTZCtrl/channels/<ID>/PTZOSDDisplay
/PTZCtrl/channels/<ID>/PTZOSDDisplay
GET
Description
Query
None
Inbound Data
None
Success Return
PTZOSDDisplay
PUT
Operator
Description
Query
None
Inbound Data
PTZOSDDisplay
Success Return
hik:ResponseStaus ResponseStatus
Notes:
</presetlable>
</PTZOSDDisplay>
8.13.28 /PTZCtrl/channels/<ID>/parkaction
/PTZCtrl/channels/<ID>/parkaction
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
ParkAction
PUT
Operator
Description
Query
None
Inbound Data
ParkAction
Success Return
hik:ResponseStaus ResponseStatus
Notes:
</ActionNum>
8.13.29 /PTZCtrl/channels/<ID>/ptzlimiteds
/PTZCtrl/channels/<ID>/ptzlimiteds
GET
Description
Viewer
It is used to get movement limitations of PTZ channels.
Query
None
Inbound Data
None
Success Return
PTZLimitedList
Notes:
PUT
Viewer
Description
Query
None
Inbound Data
None
Success Return
PTZLimitedList
Notes:
DELETE
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
8.13.30 /PTZCtrl/channels/<ID>/ptzlimiteds/<ID>
/PTZCtrl/channels/<ID>/ptzlimiteds/<ID>
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
PTZLimited
DELETE
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
It is used to get or set the parameter that whether movement limitation is enabled or
disabled.
Speed dome add two types of movement limitation.
<ID>=1 Manual control movement limitation <ID>=2 Panorama scan movement limitation
PTZLimited XML Block
<PTZLimited version=1.0 xmlns=http://www.hikvision.com/ver10/XMLSchema>
<enabled> <!-- req, xs:boolean --> </enabled>
<id> <!-- req, xs:string;id --> </id>
</PTZLimited>
8.13.31 /PTZCtrl/channels/<ID>/ptzlimiteds/<ID>/setsta
rt
/PTZCtrl/channels/<ID>/ptzlimiteds/<ID>/setstart
General Resource
v1.0
PUT
Operator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.13.32 /PTZCtrl/channels/<ID>/ptzlimiteds/<ID>/set
/PTZCtrl/channels/<ID>/ptzlimiteds/<ID>/set
PUT
General Resource
v1.0
Operator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
Only used when movement limitation is enabled and setstart already been used.
Order of the positions is leftrightupdown. Please save the settings after setup.
8.13.33 /PTZCtrl/channels/<ID>/saveptzpoweroff
/PTZCtrl/channels/<ID>/saveptzpoweroff
GET
Description
Query
None
Inbound Data
None
Success Return
PTZChannel
PUT
Operator
Description
Query
None
Inbound Data
PTZChannel
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.13.34 /PTZCtrl/channels/<ID>/timetasks
/PTZCtrl/channels/<ID>/timetasks
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
TimeTaskList
PUT
Operator
Description
Query
None
Inbound Data
TimeTaskList
Success Return
hik:ResponseStaus ResponseStatus
Notes:
Operator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
8.13.35 /PTZCtrl/channels/<ID>/timetasks/<ID>
/PTZCtrl/channels/<ID>/timetasks/<ID>
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
TimeTaskBlock
PUT
Operator
Description
Query
None
Inbound Data
TimeTaskBlock
Success Return
hik:ResponseStaus ResponseStatus
DELETE
Operator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
Tasks based on a schedule consist of time blocks ad tasked. This task is enabled always.
<TimeTaskBlock> get all the time span and tasks of one day
<dayOfWeek> specify the day of a week, ranging from 1 to 7
<TimeTaskRange> time span of each task. Up to ten time spans and 10 tasks are
supported in one day.
<beginDateTime> specify the begin time of each task, ranig from 0:0:0-23:59:00, format is
consistent to ISO 8601.
<endDateTime> specify the end time of each task, ranig from 0:0:0-23:59:00, format is
consistent to ISO 8601. endDateTime should be larger than or equal to beginDateTime.
<TaskType> Tasks type
<TaskNum> Tasks number. Enabled when park action is patrol, pattern, preset or
auxoutput, otherwise the value is 0.
2009 2014 by HIKVISION. All rights reserved.
129
8.13.36 /PTZCtrl/channels/<ID>/timetasks
/<ID>/copytask
/PTZCtrl/channels/<ID>/timetasks/<ID>/copytask
GET
Description
It is used to get the default copy time of a tasks list of a specified PTZ
channel.
Query
None
Inbound Data
None
Success Return
TimeTaskCopy
PUT
Operator
Description
Query
None
Inbound Data
TimeTaskCopy
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.13.37 /PTZCtrl/channels/<ID>/auxcontrol
/PTZCtrl/channels/<ID>/auxcontrol
GET
Description
Query
command
Inbound Data
None
Success Return
PTZAuxStatus
PUT
Operator
Description
Query
command
Inbound Data
PTZAuxStatus
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.13.38 /PTZCtrl/channels/<ID>/onepushfoucs/start
/PTZCtrl/channels/<ID>/onepushfoucs/start
PUT
Operator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.13.39 /PTZCtrl/channels/<ID>/onepushfoucs/reset
/PTZCtrl/channels/<ID>/onepushfoucs/reset
PUT
Operator
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.13.40 /PTZCtrl/channels/<ID>/position3D
/PTZCtrl/channels/<ID>/position3D
PUT
Operator
Description
Query
None
Inbound Data
Position3D
Success Return
hik:ResponseStaus ResponseStatus
Notes:
<EndPoint>
<positionX> <!-- req, xs:integer --> </positionX>
<positionY> <!-- req, xs:integer --> </positionY>
</EndPoint>
</Position3D>
8.14 Image
/Image
Service v1.0
8.14.1
/Image/channels
/Image/channels
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
ImageChannellist
PUT
Operator
Description
Query
None
Inbound Data
ImageChannellist
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.14.2
/Image/channels/<ID>
/Image/channels/<ID>
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
ImageChannel
PUT
Operator
Description
Query
None
Inbound Data
ImageChannel
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.14.3
/Image/channels/<ID>/resetImage
/Image/channels/<ID>/resetImage
PUT
Description
It is used to reset an image channel (cut off the power and reboot the
speed dome).
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
8.14.4
/Image/channels/<ID>/restoreImageparam
/Image/channels/<ID>/restoreImageparam
PUT
Description
Query
None
Inbound Data
None
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.14.5
/Image/channels/<ID>/Focus
/Image/channels/<ID>/Focus
GET
Description
Query
None
Inbound Data
None
Success Return
Focus
PUT
Operator
Description
Query
None
Inbound Data
Focus
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.14.6
/Image/channels/<ID>/LensInitialization
/Image/channels/<ID>/ LensInitialization
GET
Description
Query
None
Inbound Data
None
Success Return
LensInitialization
PUT
Operator
Description
Query
None
Inbound Data
LensInitialization
Success Return
hik:ResponseStaus ResponseStatus
Notes:
2009 2014 by HIKVISION. All rights reserved.
136
8.14.7
/Image/channels/<ID>/ImageFlip
/Image/channels/<ID>/ImageFlip
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
ImageFlip
PUT
Operator
Description
Query
None
Inbound Data
ImageFlip
Success Return
ResponseStaus ResponseStatus
Notes:
8.14.8
/Image/channels/<ID>/ImageFreeze
/Image/channels/<ID>/ImageFreeze
GET
Description
Query
None
Inbound Data
None
Success Return
ImageFreeze
PUT
2009 2014 by HIKVISION. All rights reserved.
137
Operator
Description
Query
None
Inbound Data
ImageFreeze
Success Return
ResponseStaus ResponseStatus
Notes:
8.14.9
/Image/channels/<ID>/proportionalpan
/Image/channels/<ID>/proportionalpan
GET
Viewer
Description
It is used to get
channel.
Query
None
Inbound Data
None
Success Return
proportionalpan
PUT
Operator
Description
Query
None
Inbound Data
proportionalpan
Success Return
ResponseStaus ResponseStatus
Notes:
8.14.10 /Image/channels/<ID>/WDRExt
/Image/channels/<ID>/WDRExt
GET
2009 2014 by HIKVISION. All rights reserved.
138
Description
Query
None
Inbound Data
None
Success Return
WDRExt
PUT
Operator
Description
Query
None
Inbound Data
WDRExt
Success Return
hik:ResponseStaus ResponseStatus
Notes:
<WDRLevelExt> is optional; some cameras may use more than one level to control WDR
working.
<mode> value can be open,close or auto , some cameras may not surpport the auto
mode . If a camera works in auto mode, WDR would automatically open or close
according to scene.
WDRExt XML Block
<WDRExt version=1.5.9 xmlns=http://www.hikvision.com/ver10/XMLSchema>
<mode>
<!-- req, xs:string,open,close,auto--> </mode>
<WDRLevel><!--opt,xs:integer,"0--100 "--> </WDRLevel>
<WDRContrastLevel> <!--opt, xs:integer, 0--100 --> </WDRContrastLevel>
<WDRLevelExt> <!--opt-->
<Level2> <!--opt,xs:integer,"0--100 "--> < /Level2>
</WDRLevelExt>
</WDRExt >
8.14.11 /Image/channels/<ID>/BLC
/Image/channels/<ID>/BLC
GET
Description
Query
None
Inbound Data
None
Success Return
BLC
PUT
Description
Operator
It is used to configure the configuration of backlight compensation for
a specified image channel.
Query
None
Inbound Data
BLC
Success Return
ResponseStaus ResponseStatus
Notes:
CENTER,
8.14.12 /Image/channels/<ID>/Imageenhancement
/Image/channels/<ID>/Imageenhancement
GET
Description
Query
None
Inbound Data
None
Success Return
ImageEnhancement
PUT
Operator
Description
Query
None
Inbound Data
ImageEnhancement
Success Return
ResponseStaus ResponseStatus
Notes:
8.14.13 /Image/channels/<ID>/IrcutFilterExt
/Image/channels/<ID>/IrcutFilterExt
GET
Description
Query
None
Inbound Data
None
Success Return
IrcutFilterExt
PUT
Operator
Description
Query
None
Inbound Data
IrcutFilterExt
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.14.14 /Image/channels/<ID>/NoiseReduceExt
/Image/channels/<ID>/NoiseReduceExt
GET
Description
Query
None
Inbound Data
None
Success Return
NoiseReduceExt
PUT
Operator
Description
Query
None
Inbound Data
NoiseReduceExt
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.14.15 /Image/channels/<ID>/DSS
/Image/channels/<ID>/DSS
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
DSS
PUT
Operator
Description
Query
None
Inbound Data
DSS
Success Return
ResponseStaus ResponseStatus
8.14.16 /Image/channels/<ID>/WhiteBlance
/Image/channels/<ID>/WhiteBlance
GET
Description
Query
None
Inbound Data
None
Success Return
WhiteBlance
PUT
Operator
Description
Query
None
Inbound Data
WhiteBlance
Success Return
hik:ResponseStaus ResponseStatus
8.14.17 /Image/channels/<ID>/Exposure
/Image/channels/<ID>/Exposure
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
Exposure
PUT
Operator
Description
Query
None
Inbound Data
Exposure
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.14.18 /Image/channels/<ID>/Sharpness
/Image/channels/<ID>/Sharpness
GET
Description
Query
None
Inbound Data
None
Success Return
Sharpness
PUT
Operator
Description
Query
None
Inbound Data
Sharpness
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.14.19 /Image/channels/<ID>/Iris
/Image/channels/<ID>/Iris
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
Iris
PUT
Operator
Description
Query
None
Inbound Data
Iris
Success Return
hik:ResponseStaus ResponseStatus
irisSpeed: negative numbers close iris, positive numbers open iris. Numerical value is a
percentage of the maximum iris speed of the lens module.
hik:IrisValue XML Block
<Iris version=1.0 xmlns=http://www.hikvision.com/ver10/XMLSchema>
<IrisLevel/>
<!--dep, depends on <ExposureType>, xs:string, f1.4, f1.6, f2.0, f2.4, f2.8, f3.4, f4.0,
f4.8, f5.6, f6.8, f8.0, f9.6, f11, f14, f16, f19, f22,close -->
<irisSpeed>
<!-- opt, xs:integer, -100..100 -->
</irisSpeed>
2009 2014 by HIKVISION. All rights reserved.
145
</Iris>
8.14.20 /Image/channels/<ID>/Shutter
/Image/channels/<ID>/Shutter
GET
Description
Query
None
Inbound Data
None
Success Return
Shutter
PUT
Operator
Description
Query
None
Inbound Data
Shutter
Success Return
hik:ResponseStaus ResponseStatus
8.14.21 /Image/channeles/<ID>/Gain
/Image/channels/<ID>/Gain
GET
Description
Query
None
Inbound Data
None
Success Return
Gain
PUT
Operator
Description
Query
None
Inbound Data
Gain
Success Return
hik:ResponseStaus ResponseStatus
8.14.22 /Image/channeles/<ID>/GamaCorrection
/Image/channels/<ID>/gamaCorrection
GET
Description
Query
None
Inbound Data
None
Success Return
gammaCorrection
PUT
Operator
Description
Query
None
Inbound Data
gammaCorrection
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.14.23 /Image/channels/<ID>/powerLineFrequency
/Image/channels/<ID>/powerLineFrequency
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
powerLineFrequency
PUT
Operator
Description
Query
None
Inbound Data
powerLineFrequency
Success Return
hik:ResponseStaus ResponseStatus
8.14.24 /Image/channels/<ID>/Color
/Image/channels/<ID>/Color
GET
Description
Query
None
Inbound Data
None
Success Return
Color
PUT
Operator
Description
Query
None
Inbound Data
Color
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.14.25 /Image/channels/<ID>/Scene
/Image/channels/<ID>/Scene
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
Scene
PUT
Operator
Description
Query
None
Inbound Data
Scene
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.14.26 /Image/channels/<ID>/EPTZ
/Image/channels/<ID>/EPTZ
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
EPTZ
PUT
Operator
Description
Query
None
Inbound Data
EPTZ
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.14.27 /Image/channels/<ID>/PTZ
/Image/channels/<ID>/PTZ
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
PTZ
8.14.28 /Image/channels/<ID>/EIS
/Image/channels/<ID>/EIS
GET
General Resource
v1.0
Viewer
Description
Query
None
Inbound Data
None
Success Return
EIS
PUT
Operator
Description
Query
None
Inbound Data
EIS
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.14.29 /Image/channels/<ID>/HLC
/Image/channels/<ID>/HLC
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
HLC
PUT
Operator
Description
Query
None
Inbound Data
HLC
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.14.30 /Image/channels/<ID>/ChromaSuppress
/Image/channels/<ID>/ChromaSuppress
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
ChromaSuppress
PUT
Operator
Description
Query
None
Inbound Data
ChromaSuppress
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.14.31 /Image/channels/<ID>/ZoomLimit
/Image/channels/<ID>/ZoomLimit
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
ZoomLimit
PUT
Operator
Description
Query
None
Inbound Data
ZoomLimit
Success Return
hik:ResponseStaus ResponseStatus
Notes:
2009 2014 by HIKVISION. All rights reserved.
152
8.14.32 /Image/channels/<ID>/ExpComp
/Image/channels/<ID>/ExpComp
GET
Description
Query
None
Inbound Data
None
Success Return
ExpComp
PUT
Operator
Description
Query
None
Inbound Data
ExpComp
Success Return
hik:ResponseStaus ResponseStatus
Notes:
8.14.33 /Image/channels/<ID>/IrLight
/Image/channels/<ID>/IrLight
GET
Description
Query
None
Inbound Data
None
Success Return
IrLight
PUT
Operator
Description
Query
None
Inbound Data
IrLight
Success Return
hik:ResponseStaus ResponseStatus
Notes:
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
WDR
PUT
Operator
Description
Query
None
Inbound Data
WDR
Success Return
ResponseStaus ResponseStatus
Notes:
8.14.35 /Image/channels/<ID>/NoiseReduce(1.5.8
old
version)
/Image/channels/<ID>/NoiseReduce
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
NoiseReduce
PUT
Operator
Description
Query
None
Inbound Data
NoiseReduce
Success Return
ResponseStaus ResponseStatus
Notes:
8.14.36 /Image/channels/<ID>/IrcutFilter(1.5.8
old
version)
/Image/channels/<ID>/IrcutFilter
GET
Description
Query
None
Inbound Data
None
Success Return
IrcutFilter
PUT
Description
Operator
It is used to configure the IrcutFilter's configuration of a specified
image channel.
Query
None
Inbound Data
IrcutFilter
Success Return
ResponseStaus ResponseStatus
Notes:
8.15 Record
/Record
Service v1.0
Notes: service of
8.15.1
Recording
/Record/Schedule
/Record/schedule
GET
Viewer
Description
Query
None
Inbound Data
None
Success Return
RecordSchedule
PUT
Operator
Description
Query
None
Inbound Data
RecordSchedule
Success Return
hik:ResponseStaus ResponseStatus
Notes:
<TimeBlock>
<recordType> <!-- req, xs:string,Alarm,Motion,Timing,--></recordType>
<dayOfWeek>
<!-- opt, xs:integer, ISO8601 weekday number, 1=Monday, -->
</dayOfWeek>
<TimeRange>
<!-- req -->
<beginTime>
<!-- req, xs:time, ISO8601 time --> </beginTime>
<endTime>
<!-- req, xs:time, ISO8601 time --> </endTime>
</TimeRange>
</TimeBlock>
</TimeBlockList>
</ RecordSchedule>
8.16 Smart
8.16.1
/Smart/Capabilities
/Smart/capabilities
GET
Description
Query
None
Inbound Data
None
Success Return
<SmartCap>
Notes:
8.16.2
/Smart/ROI/channels/ID
/Smart/ROI/channels/ID
GET
Description
Query
None
Inbound Data
None
Success Return
ROI
PUT
Description
Query
None
Inbound Data
ROI
Success Return
ResponseStatus
DELETE
Description
Query
None
Inbound Data
None
Success Return
ResponseStatus
Notes:
8.16.3
/Smart/ROI/channels/<ID>/regions
/Smart/ROI/channels/ID/regions
GET
Description
Query
None
Inbound Data
None
Success Return
ROIRegionsList
PUT
Description
Query
None
Inbound Data
ROIRegionsList
Success Return
ResponseStatus
Notes:
8.16.4
/Smart/ROI/channels/<ID>/regions/<ID>
/Smart/ROI/channels/ID/regions/ID
GET
Description
Query
None
Inbound Data
None
Success Return
ROIRegion
PUT
Description
Query
None
Inbound Data
ROIRegion
Success Return
ResponseStatus
DELETE
Description
Query
None
Inbound Data
None
Success Return
ResponseStatus
Notes:
</enabled>
<RegionCoordinatesList/>
</ROIRegion>
8.16.5
/Smart/ROI/channels/<ID>/facetrace
/Smart/ROI/channels/ID/facetrace
GET
Description
Query
None
Inbound Data
None
Success Return
FaceTrace
PUT
Description
Query
None
Inbound Data
FaceTrace
Success Return
ResponseStatus
Notes:
</enabled>
8.16.6
/Smart/ROI/channels/<ID>/objecttrace
/Smart/ROI/channels/ID/objecttrace
GET
Description
Query
None
Inbound Data
None
Success Return
ObjectTrace
PUT
Description
Query
None
Inbound Data
ObjectTrace
Success Return
ResponseStatus
Notes:
8.16.7
</enabled>
/Smart/FaceDetect/<ID>
/Smart/FaceDetect/ID
GET
Description
Query
None
Inbound Data
None
Success Return
FaceDetect
PUT
Description
Query
None
Inbound Data
FaceDetect
Success Return
ResponseStatus
Notes:
</enabled>
<minObjectSize>
<!-- opt, xs:integer, min number of pixels per object -->
</minObjectSize>
<maxObjectSize>
<!-- opt, xs:integer, max number of pixels per object -->
</maxObjectSize>
<ROI> <!--opt-->
<minHorizontalResolution> <!-- req, xs:integer --> </minHorizontalResolution>
<minVerticalResolution>
</ROI>
<sensitivityLevel>
<!-- dep-->
8.16.8
</highlightsenabled>
/Smart/IntelliTrace/<ID>
/Smart/IntelliTrace/ID
GET
Description
Query
None
Inbound Data
None
Success Return
IntelliTrace
PUT
Description
Query
None
Inbound Data
IntelliTrace
Success Return
ResponseStatus
Notes:
8.16.9
/Smart/IntelliTrace/<ID>/ZoomRatial
/Smart/IntelliTrace/ID/ZoomRatial
PUT
Description
Query
None
Inbound Data
None
Success Return
ResponseStatus
Notes:
8.16.10 /Smart/FieldDetection/<ID>
/Smart/FieldDetection/ID
GET
Description
Query
None
Inbound Data
None
Success Return
FieldDetection
PUT
Description
Query
None
Inbound Data
FieldDetection
Success Return
ResponseStatus
Notes:
</enabled>
8.16.11 /Smart/FieldDetection/<ID>/regions
/Smart/FieldDetection/ID/regions
GET
Description
Query
None
Inbound Data
None
Success Return
FieldDetectionRegionList
PUT
Description
Query
None
Inbound Data
FieldDetectionRegionList
Success Return
ResponseStatus
POST
Description
Query
None
Inbound Data
None
Success Return
FieldDetectionRegion
DETELE
Description
input channel.
Query
None
Inbound Data
None
Success Return
ResponseStatus
Notes:
8.16.12 /Smart/FieldDetection/<ID>/regions/<ID>
/Smart/FieldDetection/ID/regions/ID
GET
Description
Query
None
Inbound Data
None
Success Return
FieldDetectionRegion
PUT
Description
Query
None
Inbound Data
FieldDetectionRegion
Success Return
ResponseStatus
DELETE
Description
Query
None
Inbound Data
None
Success Return
ResponseStatus
Notes:
</id>
</enabled>
<sensitivityLevel>
version=1.0
<!--req, xs:integer-->
</sensitivityLevel>
<timeThreshold>
<!--req, xs:integer -->
</timeThreshold>
<objectOccupation>
<!--req, xs:integer-->
</objectOccupation>
<RegionCoordinatesList>
<RegionCoordinates> <!-- req, -->
<positionX>
</positionX>
<positionY>
</positionY>
</RegionCoordinates>
</RegionCoordinatesList>
</FieldDetectionRegion>
8.16.13 /Smart/DefocusDetection/<ID>
/Smart/DefocusDetection/ID
GET
Description
Query
None
Inbound Data
None
Success Return
DefocusDetection
PUT
Description
Query
None
Inbound Data
DefocusDetection
Success Return
ResponseStatus
Notes:
</enabled>
</DefocusDetection>
8.16.14 /Smart/AudioDetection/channels/<ID>
/Smart/AudioDetection/channels/ID
GET
Description
Query
None
Inbound Data
None
Success Return
AudioDetection
PUT
Description
Query
None
Inbound Data
AudioDetection
Success Return
ResponseStatus
Notes:
</id>
<audioInputException>
<enabled>
</enabled>
</audioInputException>
<soundIntensityMutation>
<enabled>
</enabled>
<sensitivityLevel>
<!--req, xs:integer-->
</sensitivityLevel>
<mutationThreshold>
<!--req, xs:integer -->
</mutationThreshold>
</soundIntensityMutation>
</AudioDetection>
8.16.15 /Smart/AudioDetection/channels/<ID>/Status
/Smart/AudioDetection/channels/ID/status
GET
Description
Query
None
Inbound Data
None
Success Return
AudioStrengthStatus
Notes:
</id>
8.16.16 /Smart/SceneChangeDetection/<ID>
/Smart/SceneChangeDetection/ID
GET
Description
Query
None
Inbound Data
None
Success Return
SceneChangeDetection
PUT
Description
Query
None
Inbound Data
SceneChangeDetection
Success Return
ResponseStatus
Notes:
Annex A (normative):
XML Schema Definition
A.0 hik.xsd
The following XML Schema Document contains XML schema definitions for data
structures in this specification.
<?xml version=1.0 encoding=UTF-8?>
<xs:schema xmlns:hik=http://www.hikvision.com/ver10/XMLSchema
xmlns:xs=http://www.w3.org/2001/XMLSchema
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance
xmlns:xlink=http://www.w3.org/1999/xlink
targetNamespace=http://www.hikvision.com/ver10/XMLSchema
elementFormDefault=qualified>
<xs:import namespace=http://www.w3.org/1999/xlink schemaLocation=xlink.xsd/>
<xs:annotation>
<xs:documentation>
HIK Core XML Schema
</xs:documentation>
</xs:annotation>
<!-- ======================== -->
<!-Resource Types
-->
<!-- ======================== -->
<xs:simpleType name=ResourceType>
<xs:restriction base=xs:string>
<xs:enumeration value=Special Resource />
<xs:enumeration value=Service/>
<xs:enumeration value=General Resource />
</xs:restriction>
</xs:simpleType>
<!-- ======================== -->
<xs:complexType name=QueryParameter>
<xs:sequence>
<xs:element name=name type=xs:string />
<xs:element name=type type=xs:string />
<xs:element name=description type=xs:string minOccurs=0 maxOccurs=1 />
</xs:sequence>
<xs:complexType>
2009 2014 by HIKVISION. All rights reserved.
169
Notes:
- For IP Camera, now only support one input channel. <id> associated with the
input channel can only be 1.
Port
You can send PUT /Serial/ports/ID to update the configuration of a serial port supported
by the device. Currently, Hikvision encoders support to configure the parameters of
RS232 port and RS485 port, but RS485 of encoders is placed to PTZ branch
(/PTZ/channels/ID for referance), this is different from IPCs. Please refer to the following
XML Block:
2009 2014 by HIKVISION. All rights reserved.
172
/Streaming/channels/ID
Hivision encoders support multiple video inputs and each video input has two video
streams: main stream and sub stream, so it is not enough to only use digit 1 and digit 2
to indicate all of the streams of an encoder. Currently, we use three digits to indicate the
video stream from a video input. For example, /Streaming/channels/101 indicates the
main stream from the first video channel; /Streaming/channels/202 indicates the sub
stream from the seconde video input. Please refer to the following XML Block:
StreamingChannel XML Block
<StreamingChannel version=1.0 xmlns=http://www.hikvision.com/ver10/XMLSchema>
<id>
<!-- req, xs:integer, 101, 202 -->
</id>
<channelName> <!-- ro, req, xs:string -->
</channelName>
<enabled>
<!-- ro, req, xs:boolean -->
</enabled>
<Transport>
<!-- req -->
<rtspPortNo>
<!-- opt, xs:integer -->
</rtspPortNo>
<maxPacketSize>
<!-- ro, opt, xs:integer -->
</maxPacketSize>
<sourcePortNo>
<!-- opt, xs:integer -->
</sourcePortNo>
<ControlProtocolList>
<!-- req -->
<ControlProtocol>
<!-- opt -->
<streamingTransport>
<!-- ro, req, xs:string, RTSP -->
</streamingTransport>
2009 2014 by HIKVISION. All rights reserved.
173
</ControlProtocol>
</ControlProtocolList>
<Unicast>
<!-- opt -->
<enabled>
<!-- ro, req, xs:boolean, true-->
</enabled>
</Unicast>
<Multicast>
<!-- opt -->
<enabled>
<!-- ro, req, xs:boolean, true -->
</enabled>
<destIPAddress>
<!-- opt, xs:string -->
</destIPAddress>
<destPortNo>
<!-- opt, xs:integer -->
</destPortNo>
</Multicast>
</Transport>
<Video>
<enabled>
<!-- ro, req, xs:boolean, true -->
</enabled>
<videoInputChannelID>
<!-- req, xs:integer -->
</videoInputChannelID>
<videoCodecType>
<!-- ro, opt, xs:string, H.264,MJPEG -->
</videoCodecType>
<videoScanType> <!-- ro, opt, xs:string, progressive --> </videoScanType>
<videoResolutionWidth>
<!-- req, xs:integer -->
</videoResolutionWidth>
<videoResolutionHeight> <!-- req, xs:integer -->
</videoResolutionHeight>
<videoQualityControlType>
<!-- req, xs:string, CBR,VBR -->
</videoQualityControlType>
<constantBitRate> <!-- opt, xs:integer, in kbps -->
</constantBitRate>
<fixedQuality> <!-- opt, xs:integer, percentage, 0-100 -->
</fixedQuality>
<maxFrameRate> <!-- req, xs:integer, maximum frame rate x100 -->
</maxFrameRate>
<keyFrameInterval> <!-- opt, xs:integer--> </keyFrameInterval>
<BPFrameInterval> <!-- opt, xs:integer --> </BPFrameInterval>
<mirrorStatus> <!-- opt, xs:string ,"OFF,UpToDown,LeftToRight"--> </mirrorStatus>
<rotationDegree><!-- opt, xs: integer,"0,180 "--> </rotationDegree>
<snapShotImageType><!-- ro, opt, xs:string, JPEG --> </snapShotImageType>
</Video>
<Audio>
<enabled>
<!-- ro, req, xs:boolean, true,false -->
</enabled>
<audioInputChannelID>
<!-- ro, req, xs:integer -->
</audioInputChannelID>
<audioCompressionType>
<!-- ro,opt, xs:string, G.711ulaw -->
</audioCompressionType>
</Audio>
</StreamingChannel>
In the above XML Block, the values of <id> contain 101, 102, 201, 202,,,, 1501, 1502,
2009 2014 by HIKVISION. All rights reserved.
174
Trigger
We can send PUT /Event/triggers/ID command to update a particular event trigger
configuration. For IPC, there is only one video input, so if an IPC supports 4-ch alarm
inputs, the allocation rule of ID in URL is as follows:
1 toN is allocated to alarm input port 1 to N;
N+1 is allocated to VMD event;
N+2 is allocated tovideo-loss event;
N+3 is allocated to Shelter alarm event.
For encoder, an encoder may have multiple video inputs, so the allocation rule of ID of an
encoder in URL is as follows:
1 to N is allocated to alarm input port 1 to N;
1 to M is allocated to channel number 1 to M;
IO-N is allocated to IO event;
VMD-M is allocated to VMD event;
Shelteralarm-M is allocated to video-loss event;
Videoloss-M is allocated to Shelter alarm event;
EventTriggerList XML Block
<EventTrigger version=1.0 xmlns=http://www.hikvision.com/ver10/XMLSchema>
<id>
<!-- req, xs:string-->
</id>
<eventType> <!-- req, xs:string, IO,VMD,videoloss,shelteralarm --> </eventType>
<eventDescription>
<!-- ro, req, xs:string -->
</eventDescription>
2009 2014 by HIKVISION. All rights reserved.
175
<inputIOPortID>
<!-- ro, req, xs:string -->
<EventTriggerNotificationList/> <!-- req -->
</EventTrigger>
</inputIOPortID>
Trigger notification
We can send PUT /Event/triggers/ID/notifications/ID to update a particular notification
method and behavior for an event trigger. Taking multiple video inputs of an encoder into
consideration, if the device is an encoder, the allocation rule of two IDs in URL is as
follows:
The first ID in the URI is the string of a trigger.
1 to N are assigned for alarm input port 1 to N
1 to M are assigned for channel number 1 to M
IO-N is assigned for IO event
VMD-M is assigned for VMD event
Shelteralarm-M is assigned for video-loss event
Videoloss-M is assigned for Shelter alarm event
The second ID in the URI is the string of a notification.
1 to N are assigned for alarm output port 1 to N
1 to M are assigned for channel number 1 to M
1 to K are assigned for preset number 1 to K
1 to P are assigned for pattern number 1 to P
1 to Q are assigned for patrol number 1 to Q
IO-N is assigned for IO notification
record-M is assigned for record notification
ptzM-presetK is assigned for preset notification
ptzM-patternP is assigned for pattern notification
ptzM-patrolQ is assigned for patrol notification
beep is assigned for beep notification
email is assigned for email notification
monitorAlarm is assigned for monitorAlarm notification
center is assigned for upload information to center notification
FTP is assigned for upload picture to FTP server notification
<id>
<!-- req, xs:string -->
</id>
<notificationMethod><!--req,xs:string,email,IO,record,HTTP,FTP,ptz--></notificationM
ethod>
<notificationRecurrence> <!-- ro, req, xs:string, beginning -->
</notificationRecurrence>
<outputIOPortID>
<!-- ro, dep, xs:integer -->
</outputIOPortID>
<ptzAction> <!-- dep -->
<ptzChannelID> <!--req, xs:string; id --> </ptzChannelID>
<actionName> <!-- req, xs:string, preset, pattern, patrol --> </actionName>
<actionNum> <!-- dep, xs:integer> </actionNum>
</ptzAction>
</EventTriggerNotification>
Schedule/ID
We can send PUT /Event/Schedule/ID to update event schedules. For encoder, the event
type includes IO, VMD, videoloss and shelteralarm. These types are suitable for each
channel of an encoder; the corresponding allocation rule is as follows:
VMD_N: Video Motion Detection in channel N
Videoloss_N: Video Loss in channel N
Shelteralarm_N: Shelter Alarm in channel N
IO_ IN _1: the first IO input port
IO_OUT_2: the second IO output port
Please note that letter N stands for the number of channels of the encoder.
/PTZ/channels/ID
We can send PUT /PTZ/channels/ID to update a particular PTZ channel configuration for
the device. As mentioned before, for Hikvision encoders, the configuration of RS485 port
is laid to /PTZ/channels branch. You can set baudRate, dataBits, parityType, stopBits and
flowCtrl for RS485 port. Please refer to the following XML Block:
PTZChannel XML Block
<PTZChannel version=1.0 xmlns=http://www.hikvision.com/ver10/XMLSchema>
<id> <!-- req, xs:integer --> </id>
<videoInputID>
<!-- req, xs:integer --> </videoInputID>
<controlProtocol> <!-- req: xs:string --> </controlProtocol>
<controlAddress>
<!-- req: xs:integer --> </controlAddress>
<PresetIDList> <! opt -->
<PresetID> <! opt -->
/Audio/channels/ID
Hikvision encoders support multiple audio inputs. For IPC, the value of <id> is 1. But the
value of <id> for encoders is 1, 2, 3, maxChanNum, as follows:
AudioChannel XML Block
<AudioChannel version=1.0 xmlns=http://www.hikvision.com/ver10/XMLSchema>
<id>
<!-- req, xs:integer, 1, 2, 3maxChanNum -->
</id>
<enabled>
<!-- req, xs:boolean -->
</enabled>
<audioMode>
<!-- req, xs:string, talkonly, talkandlisten -->
</audioMode>
<microphoneEnabled> <!-- req, xs:boolean -->
</microphoneEnabled>
<microphoneSource>
<!-- req, xs:string, external -->
</microphoneSource>
<microphoneVolume> <!--req, xs:integer, 0100 -->
</microphoneVolume>
<speakerEnabled>
<!-- req, xs:boolean -->
</speakerEnabled>
2009 2014 by HIKVISION. All rights reserved.
178
<speakerVolume>
</AudioChannel>
</speakerVolume>
/Image/channels/<ID>
Currently, Hikvision encoders only support /Image/channels/<ID>/Color command, other
nodes, such as WDR, BLC, Shutter and so on dont support.