Aten PE7216 RESTful API для релейного управления онлайн

Aten PE8108 RESTful API для релейного управления онлайн
RESTful API for Relay Control of ATEN PDU
Set Relay Status
HTTP Method
POST
Resource URI
Device level relay control: PDU_IP/api/device/relay
Bank level relay control: PDU_IP/api/bank/relay
Outlet level relay control: PDU_IP/api/outlet/relay
Parameters for Set Relay Status
usr
Username which is the same with web page
pwd
Password which is the same with web page
index
1-based index of device, bank , or outlet according to request URI.
Can be omitted while switching the whole device.
method
Relay control method. Can either be one of the following:
on
off
reboot
on_immediate
on w/o configured switch on delay
off_immediate
off w/o configured switch off delay
HTTP Response Code
200
OK. Command accepted, user authenticated and processed successfully.
400
Bad Request. Malformed syntax or unsupported parameters.
401
Unauthorized. Account authentication failed.
404
Resource not found. Can either be one of the following:
URI mismatch
Index of device/bank/outlet is out of range
The device/bank/outlet assigned has no relay support
Example:
Switch off Outlet 1
POST https://192.168.0.60/api/outlet/relay
with request body: usr=username&pwd=password&index=1&method=off
Switch on Bank 2
POST https://192.168.0.60/api/bank/relay
with request body: usr=username&pwd=password&index=2&method=on
Reboot all outlets
POST https://192.168.0.60/api/device/relay
with request body: usr=username&pwd=password&method=reboot
Скачать