How to get the connection status
Introduction
You can obtain information about the connection status of the device:
- VPN connection
- Configuration connection
- Data logging connection
Get the Connection Status
curl --request GET \
--url 'http://192.168.140.1:80/api/v1/connection/status'{
"vpn": {
"status": "inactive"
},
"configuration": {
"status": "connected"
},
"data_logging": {
"status": "unconfigured"
}
}Possible statuses per connection type:
- VPN:
inactiveconnectingconnected
- Configuration:
disconnectingdisconnectedconnectingconnected
- Data logging:
unconfigureddisconnectedconnected
Connection timeouts applyIf you unplug the ethernet cable, you may not immediately see connection status of each component go to
disconnectedorconnecting, because each connection has a timeout. Only after that timeout expires, the connection will no longer be consideredconnected.
Updated about 7 hours ago
Did this page help you?
