5 account management – Vivotek MD9584-HF3 5MP Outdoor Network Mobile Dome Camera with Night Vision, Heater & 3.6mm Lens User Manual
Page 397
![background image](https://www.manualsdir.com/files/882627/content/doc397.png)
VIVOTEK
User's Manual - 397
© 2022 VIVOTEK INC. All Right Reserved
266
PARAMETER VALUE
DESCRIPTION
quality
1~5
The quality of the image.
streamid
0~( capability_nmediastream -1)
The stream number.
Default: Returns snapshot of
maxmum resolution for current
channel.
The server will return the most up-to-date snapshot of the selected channel and stream in JPEG
format. The size and quality of the image will be set according to the video settings on the server.
Return:
HTTP/1.0 200 OK\r\n
Content-Type: image/jpeg\r\n
[Content-Length:
8.5
Account Management
Note:
This request requires Administrator privileges.
Method:
POST
Syntax:
http://<
servername
>/cgi-bin/admin/editaccount.cgi
?
method=
[&userpass=
][&privilege=
][&return=
page>
]
PARAMETER
VALUE
DESCRIPTION
method
add
Add an account to the server. When using this method,
the“username” field is necessary. It will use the default
value of other fields if not specified.
delete
Remove an account from the server. When using this
method, the “username” field is necessary, and others are
ignored.
edit
Modify the account password and privilege. When using
this method, the“username” field is necessary, and other
fields are optional. If not specified, it will keep the original
settings.
© 2022 VIVOTEK INC. All Right Reserved
267
PARAMETER
VALUE
DESCRIPTION
username
The name of the user to add, delete, or edit.
userpass
The password of the new user to add or that of the old
user to modify. The default value is an empty string.
privilege
view
The privilege of the user to add or to modify.
“view”
: Viewer privilege.
“operator”
: Operator privilege.
“admin”
: Administrator privilege.
operator
admin
return
Redirect to the page
assigned. The
according to the root of camera. If you omit this
parameter, it will redirect to an empty page.
* If the
parameter.
Note:
1.
Rules of password settings is defined by layout_defaultpassword group.
Example:
Request:
http://myserver/cgi-bin/admin/editaccount.cgi?method=add&username=test&userpass=123&privi
lege=view
Response of success:
HTTP/1.1 200 OK\r\n
Content-Type: text/html\r\n
Content-Length: 2\r\n
\r\n
Response of failure:
HTTP/1.1 200 OK\r\n
Content-Type: text/html\r\n
Content-Length:
\r\n
List of error message:
ERROR: Add user fail!
ERROR: Delete user fail!
ERROR: Update user's password fail!