![Lightware UCX-2x1-HC30 User Manual Download Page 95](http://html1.mh-extra.com/html/lightware/ucx-2x1-hc30/ucx-2x1-hc30_user-manual_1915482095.webp)
7. Lightware REST API Reference
UCX series – User's Manual
95
Applied firmware package: v1.2.0b9 | LDC software: v2.5.10b1
7.14.5.
Set Password for Authentication
INFO:
Due to security reasons, the password is not stored in any property, so it can not be queried. No
password is set for default, giving a password before authorize the authentication is necessary.
Request and Response
#password
ɯ
header:
POST·http://
<ip>
/api/V1/MANAGEMENT/NETWORK/AUTH/USER1/setPassword·HTTP/1.1
ɯ
body:
<password>
ɮ
header:
200 OK
ɮ
body:
<password>
Parameters
Identifier
Parameter description
Value description
<password>
User defined password for authentication.
max. character length: 100
accepted characters: a-z, A-Z, 0-9
Example
ɯ
header:
POST http://192.168.0.50/api/V1/MANAGEMENT/NETWORK/AUTH/USER1/setPassword HTTP/1.1
ɯ
body: password
ɮ
header:
200 OK
ɮ
body: password
7.14.6.
Enable Authentication
INFO:
Set the password before enable the authentication, because no password is set for default. Restart
of the HTTP(S) services is required to apply the authentication settings.
Request and Response
ɯ
header:
POST·http://
<ip>
/api/V1/MANAGEMENT/NETWORK/SERVICES/
<port>
/
AuthenticationEnabled·HTTP/1.1
ɯ
body:
<status>
ɮ
header:
200 OK
ɮ
body:
<status>
Parameters
Identifier
Parameter description
Parameter values
<port>
Port type
HTTP
HTTPS
<status>
Authentication enabled
Authentication disabled
true
false
Example
ɯ
header:
POST http://192.168.0.50/api/V1/MANAGEMENT/NETWORK/SERVICES/HTTP/
AuthenticationEnabled HTTP/1.1
ɯ
body: false
ɮ
header:
200 OK
ɮ
body: false