docs/rest: updated connection types
GitHub-Pull-Request: https://github.com/syncthing/docs/pull/176
This commit is contained in:
@@ -2,12 +2,14 @@ GET /rest/system/connections
|
|||||||
============================
|
============================
|
||||||
|
|
||||||
|
|
||||||
.. note:: Return format changed in 0.12.0.
|
.. note:: Return format changed in 0.13.0.
|
||||||
|
|
||||||
|
|
||||||
Returns the list of configured devices and some metadata associated
|
Returns the list of configured devices and some metadata associated
|
||||||
with them. The list also contains the local device itself as not connected.
|
with them. The list also contains the local device itself as not connected.
|
||||||
|
|
||||||
|
The connection types are ``TCP (Client)``, ``TCP (Server)``, ``Relay (Client)`` and ``Relay (Server)``.
|
||||||
|
|
||||||
.. code-block:: json
|
.. code-block:: json
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -17,7 +19,7 @@ with them. The list also contains the local device itself as not connected.
|
|||||||
"at" : "2015-11-07T17:29:47.691637262+01:00",
|
"at" : "2015-11-07T17:29:47.691637262+01:00",
|
||||||
"connected" : false,
|
"connected" : false,
|
||||||
"inBytesTotal" : 1479,
|
"inBytesTotal" : 1479,
|
||||||
"type" : "direct-accept",
|
"type" : "",
|
||||||
"outBytesTotal" : 1318,
|
"outBytesTotal" : 1318,
|
||||||
"address" : ""
|
"address" : ""
|
||||||
},
|
},
|
||||||
@@ -29,12 +31,12 @@ with them. The list also contains the local device itself as not connected.
|
|||||||
"at" : "2015-11-07T17:29:47.691548971+01:00",
|
"at" : "2015-11-07T17:29:47.691548971+01:00",
|
||||||
"clientVersion" : "v0.12.1",
|
"clientVersion" : "v0.12.1",
|
||||||
"address" : "127.0.0.1:22002",
|
"address" : "127.0.0.1:22002",
|
||||||
"type" : "direct-dial",
|
"type" : "TCP (Client)",
|
||||||
"outBytesTotal" : 550
|
"outBytesTotal" : 550
|
||||||
},
|
},
|
||||||
"DOVII4U-SQEEESM-VZ2CVTC-CJM4YN5-QNV7DCU-5U3ASRL-YVFG6TH-W5DV5AA" : {
|
"DOVII4U-SQEEESM-VZ2CVTC-CJM4YN5-QNV7DCU-5U3ASRL-YVFG6TH-W5DV5AA" : {
|
||||||
"outBytesTotal" : 0,
|
"outBytesTotal" : 0,
|
||||||
"type" : "direct-accept",
|
"type" : "",
|
||||||
"address" : "",
|
"address" : "",
|
||||||
"at" : "0001-01-01T00:00:00Z",
|
"at" : "0001-01-01T00:00:00Z",
|
||||||
"clientVersion" : "",
|
"clientVersion" : "",
|
||||||
@@ -44,7 +46,7 @@ with them. The list also contains the local device itself as not connected.
|
|||||||
},
|
},
|
||||||
"UYGDMA4-TPHOFO5-2VQYDCC-7CWX7XW-INZINQT-LE4B42N-4JUZTSM-IWCSXA4" : {
|
"UYGDMA4-TPHOFO5-2VQYDCC-7CWX7XW-INZINQT-LE4B42N-4JUZTSM-IWCSXA4" : {
|
||||||
"address" : "",
|
"address" : "",
|
||||||
"type" : "direct-accept",
|
"type" : "",
|
||||||
"outBytesTotal" : 0,
|
"outBytesTotal" : 0,
|
||||||
"connected" : false,
|
"connected" : false,
|
||||||
"inBytesTotal" : 0,
|
"inBytesTotal" : 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user