Get management server settings
Get management server settings.
If Link is enabled - server will sync identifiers, access rules, logs etc.
If realtime logging is enabled - device will send the logs in realtime to the server.
If heartbeat is enabled - device will send keep alive to the server every 10 seconds. When MQTT protocol is used heartbeat is enabled by default.
- 200
- 401
OK
- application/json
- Schema
- Example (from schema)
- Mqtt
- Http
Schema
- is_enabled boolean
Describes, if Link management server function is enabled on device
- protocol string
Possible values: [
http,mqtt]Network protocol used to connect to the management server
settings object
Describes protocol settings for picked protocol
oneOf- MOD1
- MOD2
url hostServer host address. Also port can be specified with colon
password asciiPossible values:
non-emptyand<= 32 charactersPassword use for authenticate device on Link server
is_logging_enabled booleanDevice send logs to Link server, if option is enabled
is_encrypted booleanIf enabled you can provide custom certificate with
POST /network/management/settings/certificateor device will use default one.url urlServer address
password asciiPossible values:
non-emptyand<= 32 charactersPassword use for authenticate device on Link server
is_logging_enabled booleanDevice send logs to Link server, if option is enabled
is_heartbeat_enabled booleanIf enabled device will send keep alive request every 10 seconds
{
"is_enabled": true,
"protocol": "http",
"settings": {
"url": "link.bas-ip.com",
"password": "67d6f5as9d5fa9s8df",
"is_logging_enabled": false,
"is_encrypted": false
}
}
{
"is_enabled": false,
"protocol": "mqtt",
"settings": {
"url": "link.bas-ip.com",
"password": "123abc",
"is_logging_enabled": true,
"is_encrypted": true
}
}
{
"is_enabled": false,
"protocol": "http",
"settings": {
"url": "https://link.bas-ip.com",
"password": "123abc",
"is_logging_enabled": true,
"is_heartbeat_enabled": true
}
}
Unauthorized request. Log In
- application/json
- Schema
- Example (from schema)
- Example
Schema
error object
Error object, contains error details
code stringPossible values: [
invalid_authentication,permission_denied,not_valid,system_error,bad_request,connection_timeout]Error code
message stringError message
data object
Did not pass validation parameters. Can be represented as an object, which can include field names, arrays, query parameters etc.
param stringContains validation error details
{
"error": {
"code": "not_valid",
"message": "Data validation error",
"data": {
"param": "must be an string"
}
}
}
{
"error": {
"code": "invalid_authentication",
"message": "Invalid authentication"
}
}