Create retranslator

To create a new retranslator, use the command core/create_retranslator:

svc=core/create_retranslator&params={"creatorId":<long>,
				     "name":<text>,
				     "config":{		
					"protocol":<text>,	
					"server":<text>,
					"port":<ushort>,
					"auth":<text>,
					"ssl":<int>,
					"debug":<int>,
					"v6type":<int>
				     },			     
				     "dataFlags":<uint>}

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 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 Data format: Retranslators)

Response

{
	"item":{	/* retranslator created */
		...	
	},
	"flags":<uint>	/* applied data flags */
}

You can find the format of “item” in the chapter Data format: Retranslators.