Retranslator
Retranslator
Retranslator and retranslator protocol objects and CRUD actions for retranslators. They can be used to redirect the data that comes from a device to the platform to some third-party application specified by the user.
Retranslator protocol object
{
"id": 123456,
"name": "protocol",
"has_login": true,
"has_password": false,
"fake_device_id_pattern": "id_pattern",
"required_login": true,
"required_password": false
}id- int. Protocol ID.name- string. Protocol name.has_login- boolean.trueif this protocol use login.has_password- boolean.trueif this protocol use password.fake_device_id_pattern- optional string. Regex pattern forfake_device_idvalidation.required_login- boolean.trueif for this protocol login required.required_password- boolean.trueif for this protocol password required.
Retranslator object
id- int. Retranslator ID.name- string. Zone label.protocol_id- int. Protocol ID.address- string. Network address, e.g.127.0.0.1orlocalhost.port- int. Port number.login- optional string.password- optional string.enabled- boolean. Status.
API actions
API path: /retranslator.
create
Creates new retranslator.
required sub-user rights: admin (available only to master users).
Parameters
retranslator
Retranslator object without id field.
JSON object
Example
cURL
Response
id- int. ID of the created retranslator.
Errors
247 - Entity already exists - if retranslator with this address, port and login already exists.
7 - Invalid parameters - if retranslator have required fields (login or password), but was send empty.
268 - Over quota – if the user's quota for retranslators exceeded.
delete
Deletes user's retranslator with specified retranslator_id.
required sub-user rights: admin (available only to master users).
Parameters
retranslator_id
ID of the retranslator that will be deleted.
int
123456
Examples
Response
Errors
201 - Not found in the database.
list
Get all users' retranslators.
Examples
Response
id- int. Retranslator ID.name- string. Zone label.protocol_id- int. Protocol ID.address- string. Network address, e.g.127.0.0.1orlocalhost.port- int. Port number.login- optional string.password- optional string.enabled- boolean. Status.
update
Updates retranslator parameters for the specified retranslator. Note that retranslator must exist, and must belong to the current user.
required sub-user rights: admin (available only to master users).
Parameters
retranslator
Retranslator object without id field.
JSON object
Example
cURL
Response
Errors
201 - Not found in the database – if retranslator with the specified ID cannot be found or belongs to another user.
247 - Entity already exists – if retranslator with this address, port and login already exists.
protocol/list
Returns all available retranslator protocols.
Parameters
Only API key hash.
Examples
Response
id- int. Protocol ID.name- string. Protocol name.has_login- boolean.trueif this protocol use login.has_password- boolean.trueif this protocol use password.fake_device_id_pattern- optional string. Regex pattern forfake_device_idvalidation.required_login- boolean.trueif for this protocol login required.required_password- boolean.trueif for this protocol password required.
Last updated
Was this helpful?