Differences
This shows you the differences between two versions of the page.
|
|
en:sidebar:remoteapi:apiref:core:create_retranslator [29/11/2013 12:31] 127.0.0.1 external edit |
en:sidebar:remoteapi:apiref:core:create_retranslator [07/04/2014 08:29] |
{{indexmenu_n>9}} | |
====== Create retranslator ====== | |
| |
To create a new retranslator, use the command **core/create_retranslator**: | |
<code javascript> | |
svc=core/create_retranslator¶ms={"creatorId":<long>, | |
"name":<text>, | |
"config":{ | |
"protocol":<text>, | |
"server":<text>, | |
"port":<ushort>, | |
"auth":<text>, | |
"ssl":<int>, | |
"debug":<int>, | |
"v6type":<int> | |
}, | |
"dataFlags":<uint>} | |
</code> | |
| |
===== Parameters ===== | |
^ Name ^ Description ^ | |
| creatorId | ID of a user who will be assigned a creator for a new retranslator | | |
| name | new retranslator name (at least 4 characters) | | |
| config | retranslator configuration | | |
| protocol | protocol ID (see [[../retranslator/update_config|Retranslators: Update configuration]]) | | |
| server | retranslation server | | |
| port | port (for all protocols except NIS) | | |
| auth | authorization (only for NIS and Wialon IPS protocols) | | |
| ssl | use SSL (for NIS): 0 - no, 1 - yes | | |
| debug | use debug mode: 0 - no, 1 - yes | | |
| v6type | use protocol ver.6 (only for Granit Navigator): 0 - no, 1 - yes | | |
| dataFlags | data flags for the response (see [[../format/retranslator|Data format: Retranslators]])| | |
| |
===== Response ===== | |
<code javascript> | |
{ | |
"item":{ /* retranslator created */ | |
... | |
}, | |
"flags":<unit> /* applied data flags */ | |
} | |
</code> | |
You can find the format of “item” in the chapter [[../format/retranslator|Data format: Retranslators]]. | |