create_retranslator
To create a new retranslator, use the core/create_retranslator method.
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>
}
Parameters
| Parameter | Description |
|---|---|
| creatorId | The ID of the user that should be the creator of the retranslator. |
| name | The name of the retranslator (4–50 characters). |
| config | Retranslator configuration. |
| protocol | Protocol ID (see update_config). |
| server | Retranslation server. |
| port | Port (for all protocols, except NIS). |
| auth | Authorization (only for NIS and Wialon IPS protocols). |
| ssl | Using SSL (for NIS):
|
| debug | Using the debug mode:
|
| v6type | Using the protocol version 6 (only for Granit Navigator):
|
| dataFlags | Flags with the retranslator properties for the response (see Retranslators). |
Response
If the request is completed successfully, the response is returned in the following format:
{
"item": { /* Created retranslator. */
...
},
"flags": <uint> /* Applied flags with properties. */
}
The format of the item parameter is described on the Retranslators page.
If the request fails, an error code is returned.
Error codes
| Error code | Description |
|---|---|
| 4 | One of the following errors:
|
| 6 | One of the following errors:
|