This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:sidebar:remoteapi:apiref:core:create_retranslator [24/01/2013 14:14] zuve |
en:sidebar:remoteapi:apiref:core:create_retranslator [07/04/2014 06:29] mast |
||
---|---|---|---|
Line 2: | Line 2: | ||
====== Create retranslator ====== | ====== Create retranslator ====== | ||
- | To create a new retranslator use command **core/create_retranslator**: | + | To create a new retranslator, use the command **core/create_retranslator**: |
<code javascript> | <code javascript> | ||
svc=core/create_retranslator¶ms={"creatorId":<long>, | svc=core/create_retranslator¶ms={"creatorId":<long>, | ||
Line 20: | Line 20: | ||
===== Parameters ===== | ===== Parameters ===== | ||
^ Name ^ Description ^ | ^ Name ^ Description ^ | ||
- | | creatorId | ID of user, who will be assigned as creator for new user | | + | | creatorId | ID of a user who will be assigned a creator for a new retranslator | |
| name | new retranslator name (at least 4 characters) | | | name | new retranslator name (at least 4 characters) | | ||
| config | retranslator configuration | | | config | retranslator configuration | | ||
- | | protocol | protocol ID (see [[../format/retranslator#Configuration|Data format: Retranslator configuration]]) | | + | | protocol | protocol ID (see [[../retranslator/update_config|Retranslators: Update configuration]]) | |
| server | retranslation server | | | server | retranslation server | | ||
- | | port | port (for all protocols, except NIS) | | + | | port | port (for all protocols except NIS) | |
| auth | authorization (only for NIS and Wialon IPS protocols) | | | auth | authorization (only for NIS and Wialon IPS protocols) | | ||
| ssl | use SSL (for NIS): 0 - no, 1 - yes | | | ssl | use SSL (for NIS): 0 - no, 1 - yes | | ||
| debug | use debug mode: 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 | | | v6type | use protocol ver.6 (only for Granit Navigator): 0 - no, 1 - yes | | ||
- | | dataFlags | data flags for response (see [[../format/retranslator|Data format: Retranslators]])| | + | | dataFlags | data flags for the response (see [[../format/retranslator|Data format: Retranslators]])| |
===== Response ===== | ===== Response ===== | ||
Line 38: | Line 38: | ||
... | ... | ||
}, | }, | ||
- | "flags":<unit> /* applied data flags */ | + | "flags":<uint> /* applied data flags */ |
} | } | ||
</code> | </code> | ||
- | Format of field "item" you can see in chapter [[../format/retranslator|Data format: Retranslators]]. | + | You can find the format of “item” in the chapter [[../format/retranslator|Data format: Retranslators]]. |
|