To update retranslator configuration, use the command retranslator/update_config:
svc=retranslator/update_config¶ms={"itemId":<long>, "config":{ "protocol":<text>, "server":<text>, "port":<ushort>, "v6type":<text>, "auth":<text>, "attach_sensors":<bool>, "ssl":<text>, "login":<text>, "password":<text>, "notauth":<int> }}
Parameters
Name | Description |
---|---|
itemId | retranslator ID |
config | configuration |
protocol | protocol name (see below) |
server | server for retranslation |
port | port (for all except NIS) |
v6type | use protocol v.6 (only for Granit Navigator): 1 – yes, 0 – no |
auth | authorization (only for NIS and IPS) |
attach_sensors | retranslate calculated sensor values (for IPS & Retranslator) 1 – yes optional |
ssl | secure connection (for NIS): 1 – yes, 0 – no |
login | login |
password | password |
notauth | disable autorization (only for EGTS): 0 – no, 1 – yes |
Protocols:
- nis – Nis;
- granit3 – Granit Navigator;
- skaut – Skaut;
- cyber_glx – Cyber GLX;
- vt300 – VT300;
- egts – EGTS;
- soap – SOAP.
Attention!
The set of parameters in the object config depends on protocol type.
Response
{ "rtrc":{ "port":<ushort>, /* port (for all except NIS) */ "protocol":<text>, /* protocol */ "server":<text>, /* server for retranslation */ "v6type":<text>, /* protocol v.6 (only for Granit Navigator): 1 - yes, 0 - no */ "auth":<text>, /* authorization (only for NIS and IPS) */ "ssl":<text>, /* secure connection (for NIS): 1 - yes, 0 - no */ "login":<text>, /* login */ "password":<text>, /* password */ "notauth":<int> /* disable autorization (only for EGTS): 0 - no, 1 - yes */ } }