syncthing-rest-api.7 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .TH "SYNCTHING-REST-API" "7" "Jun 11, 2019" "v1" "Syncthing"
  4. .SH NAME
  5. syncthing-rest-api \- REST API
  6. .
  7. .nr rst2man-indent-level 0
  8. .
  9. .de1 rstReportMargin
  10. \\$1 \\n[an-margin]
  11. level \\n[rst2man-indent-level]
  12. level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
  13. -
  14. \\n[rst2man-indent0]
  15. \\n[rst2man-indent1]
  16. \\n[rst2man-indent2]
  17. ..
  18. .de1 INDENT
  19. .\" .rstReportMargin pre:
  20. . RS \\$1
  21. . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
  22. . nr rst2man-indent-level +1
  23. .\" .rstReportMargin post:
  24. ..
  25. .de UNINDENT
  26. . RE
  27. .\" indent \\n[an-margin]
  28. .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
  29. .nr rst2man-indent-level -1
  30. .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
  31. .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
  32. ..
  33. .sp
  34. Syncthing exposes a REST interface over HTTP on the GUI port. This is used by
  35. the GUI (from Javascript) and can be used by other processes wishing to control
  36. Syncthing. In most cases both the input and output data is in JSON format. The
  37. interface is subject to change.
  38. .SH API KEY
  39. .sp
  40. To use the REST API an API key must be set and used. The API key can be
  41. generated in the GUI, or set in the \fBconfiguration/gui/apikey\fP element in
  42. the configuration file. To use an API key, set the request header
  43. \fBX\-API\-Key\fP to the API key value. For example, \fBcurl \-X POST \-H
  44. "X\-API\-Key: abc123" http://localhost:8384/rest/...\fP can be used to invoke
  45. with \fBcurl\fP\&.
  46. .SH SYSTEM ENDPOINTS
  47. .SS GET /rest/system/browse
  48. .sp
  49. Returns a list of directories matching the path given by the optional parameter
  50. \fBcurrent\fP\&. The path can use \fI\%patterns as described in Go’s filepath package\fP <\fBhttps://golang.org/pkg/path/filepath/#Match\fP>\&. A ‘*’ will always be appended
  51. to the given path (e.g. \fB/tmp/\fP matches all its subdirectories). If the option
  52. \fBcurrent\fP is not given, filesystem root paths are returned.
  53. .INDENT 0.0
  54. .INDENT 3.5
  55. .sp
  56. .nf
  57. .ft C
  58. $ curl \-H "X\-API\-Key: yourkey" localhost:8384/rest/system/browse | json_pp
  59. [
  60. "/"
  61. ]
  62. $ curl \-H "X\-API\-Key: yourkey" localhost:8384/rest/system/browse?current=/var/ | json_pp
  63. [
  64. "/var/backups/",
  65. "/var/cache/",
  66. "/var/lib/",
  67. "/var/local/",
  68. "/var/lock/",
  69. "/var/log/",
  70. "/var/mail/",
  71. "/var/opt/",
  72. "/var/run/",
  73. "/var/spool/",
  74. "/var/tmp/"
  75. ]
  76. $ curl \-H "X\-API\-Key: yourkey" localhost:8384/rest/system/browse?current=/var/*o | json_pp
  77. [
  78. "/var/local/",
  79. "/var/lock/",
  80. "/var/log/",
  81. "/var/opt/",
  82. "/var/spool/"
  83. ]
  84. .ft P
  85. .fi
  86. .UNINDENT
  87. .UNINDENT
  88. .SS GET /rest/system/config
  89. .sp
  90. Returns the current configuration.
  91. .INDENT 0.0
  92. .INDENT 3.5
  93. .sp
  94. .nf
  95. .ft C
  96. {
  97. {
  98. "version": 15,
  99. "folders": [
  100. {
  101. "id": "GXWxf\-3zgnU",
  102. "label": "MyFolder",
  103. "path": "...",
  104. "type": "sendreceive",
  105. "devices": [
  106. {
  107. "deviceID": "..."
  108. }
  109. ],
  110. "rescanIntervalS": 60,
  111. "ignorePerms": false,
  112. "autoNormalize": true,
  113. "minDiskFreePct": 1,
  114. "versioning": {
  115. "type": "simple",
  116. "params": {
  117. "keep": "5"
  118. }
  119. },
  120. "copiers": 0,
  121. "pullers": 0,
  122. "hashers": 0,
  123. "order": "random",
  124. "ignoreDelete": false,
  125. "scanProgressIntervalS": 0,
  126. "pullerSleepS": 0,
  127. "pullerPauseS": 0,
  128. "maxConflicts": 10,
  129. "disableSparseFiles": false,
  130. "disableTempIndexes": false,
  131. "fsync": false,
  132. "invalid": ""
  133. }
  134. ],
  135. "devices": [
  136. {
  137. "deviceID": "...",
  138. "name": "Laptop",
  139. "addresses": [
  140. "dynamic",
  141. "tcp://192.168.1.2:22000"
  142. ],
  143. "compression": "metadata",
  144. "certName": "",
  145. "introducer": false
  146. }
  147. ],
  148. "gui": {
  149. "enabled": true,
  150. "address": "127.0.0.1:8384",
  151. "user": "Username",
  152. "password": "$2a$10$ZFws69T4FlvWwsqeIwL.TOo5zOYqsa/.TxlUnsGYS.j3JvjFTmxo6",
  153. "useTLS": false,
  154. "apiKey": "pGahcht56664QU5eoFQW6szbEG6Ec2Cr",
  155. "insecureAdminAccess": false,
  156. "theme": "default"
  157. },
  158. "options": {
  159. "listenAddresses": [
  160. "default"
  161. ],
  162. "globalAnnounceServers": [
  163. "default"
  164. ],
  165. "globalAnnounceEnabled": true,
  166. "localAnnounceEnabled": true,
  167. "localAnnouncePort": 21027,
  168. "localAnnounceMCAddr": "[ff12::8384]:21027",
  169. "maxSendKbps": 0,
  170. "maxRecvKbps": 0,
  171. "reconnectionIntervalS": 60,
  172. "relaysEnabled": true,
  173. "relayReconnectIntervalM": 10,
  174. "startBrowser": false,
  175. "natEnabled": true,
  176. "natLeaseMinutes": 60,
  177. "natRenewalMinutes": 30,
  178. "natTimeoutSeconds": 10,
  179. "urAccepted": \-1,
  180. "urUniqueId": "",
  181. "urURL": "https://data.syncthing.net/newdata",
  182. "urPostInsecurely": false,
  183. "urInitialDelayS": 1800,
  184. "restartOnWakeup": true,
  185. "autoUpgradeIntervalH": 12,
  186. "keepTemporariesH": 24,
  187. "cacheIgnoredFiles": false,
  188. "progressUpdateIntervalS": 5,
  189. "limitBandwidthInLan": false,
  190. "minHomeDiskFreePct": 1,
  191. "releasesURL": "https://upgrades.syncthing.net/meta.json",
  192. "alwaysLocalNets": [],
  193. "overwriteRemoteDeviceNamesOnConnect": false,
  194. "tempIndexMinBlocks": 10
  195. },
  196. "ignoredDevices": [],
  197. "ignoredFolders": []
  198. }
  199. }
  200. .ft P
  201. .fi
  202. .UNINDENT
  203. .UNINDENT
  204. .SS GET /rest/system/config/insync
  205. .sp
  206. Returns whether the config is in sync, i.e. whether the running
  207. configuration is the same as that on disk.
  208. .INDENT 0.0
  209. .INDENT 3.5
  210. .sp
  211. .nf
  212. .ft C
  213. {
  214. "configInSync": true
  215. }
  216. .ft P
  217. .fi
  218. .UNINDENT
  219. .UNINDENT
  220. .SS POST /rest/system/config
  221. .sp
  222. Post the full contents of the configuration, in the same format as returned by
  223. the corresponding GET request. The configuration will be saved to disk and the
  224. \fBconfigInSync\fP flag set to false. Restart Syncthing to activate.
  225. .SS GET /rest/system/connections
  226. .sp
  227. \fBNOTE:\fP
  228. .INDENT 0.0
  229. .INDENT 3.5
  230. Return format changed in 0.13.0.
  231. .UNINDENT
  232. .UNINDENT
  233. .sp
  234. Returns the list of configured devices and some metadata associated
  235. with them. The list also contains the local device itself as not connected.
  236. .sp
  237. The connection types are \fBTCP (Client)\fP, \fBTCP (Server)\fP, \fBRelay (Client)\fP and \fBRelay (Server)\fP\&.
  238. .INDENT 0.0
  239. .INDENT 3.5
  240. .sp
  241. .nf
  242. .ft C
  243. {
  244. "total" : {
  245. "paused" : false,
  246. "clientVersion" : "",
  247. "at" : "2015\-11\-07T17:29:47.691637262+01:00",
  248. "connected" : false,
  249. "inBytesTotal" : 1479,
  250. "type" : "",
  251. "outBytesTotal" : 1318,
  252. "address" : ""
  253. },
  254. "connections" : {
  255. "YZJBJFX\-RDBL7WY\-6ZGKJ2D\-4MJB4E7\-ZATSDUY\-LD6Y3L3\-MLFUYWE\-AEMXJAC" : {
  256. "connected" : true,
  257. "inBytesTotal" : 556,
  258. "paused" : false,
  259. "at" : "2015\-11\-07T17:29:47.691548971+01:00",
  260. "clientVersion" : "v0.12.1",
  261. "address" : "127.0.0.1:22002",
  262. "type" : "TCP (Client)",
  263. "outBytesTotal" : 550
  264. },
  265. "DOVII4U\-SQEEESM\-VZ2CVTC\-CJM4YN5\-QNV7DCU\-5U3ASRL\-YVFG6TH\-W5DV5AA" : {
  266. "outBytesTotal" : 0,
  267. "type" : "",
  268. "address" : "",
  269. "at" : "0001\-01\-01T00:00:00Z",
  270. "clientVersion" : "",
  271. "paused" : false,
  272. "inBytesTotal" : 0,
  273. "connected" : false
  274. },
  275. "UYGDMA4\-TPHOFO5\-2VQYDCC\-7CWX7XW\-INZINQT\-LE4B42N\-4JUZTSM\-IWCSXA4" : {
  276. "address" : "",
  277. "type" : "",
  278. "outBytesTotal" : 0,
  279. "connected" : false,
  280. "inBytesTotal" : 0,
  281. "paused" : false,
  282. "at" : "0001\-01\-01T00:00:00Z",
  283. "clientVersion" : ""
  284. }
  285. }
  286. }
  287. .ft P
  288. .fi
  289. .UNINDENT
  290. .UNINDENT
  291. .SS GET /rest/system/debug
  292. .sp
  293. New in version 0.12.0.
  294. .sp
  295. Returns the set of debug facilities and which of them are currently enabled.
  296. .INDENT 0.0
  297. .INDENT 3.5
  298. .sp
  299. .nf
  300. .ft C
  301. {
  302. "enabled": [
  303. "beacon"
  304. ],
  305. "facilities": {
  306. "beacon": "Multicast and broadcast discovery",
  307. "config": "Configuration loading and saving",
  308. "connections": "Connection handling",
  309. "db": "The database layer",
  310. "dialer": "Dialing connections",
  311. "discover": "Remote device discovery",
  312. "events": "Event generation and logging",
  313. "http": "REST API",
  314. "main": "Main package",
  315. "model": "The root hub",
  316. "protocol": "The BEP protocol",
  317. "relay": "Relay connection handling",
  318. "scanner": "File change detection and hashing",
  319. "stats": "Persistent device and folder statistics",
  320. "sync": "Mutexes",
  321. "upgrade": "Binary upgrades",
  322. "upnp": "UPnP discovery and port mapping",
  323. "versioner": "File versioning"
  324. }
  325. }
  326. .ft P
  327. .fi
  328. .UNINDENT
  329. .UNINDENT
  330. .SS POST /rest/system/debug
  331. .sp
  332. New in version 0.12.0.
  333. .sp
  334. Enables or disables debugging for specified facilities. Give one or both of
  335. \fBenable\fP and \fBdisable\fP query parameters, with comma separated facility
  336. names. To disable debugging of the beacon and discovery packages, and enable it
  337. for config and db:
  338. .INDENT 0.0
  339. .INDENT 3.5
  340. .sp
  341. .nf
  342. .ft C
  343. $ curl \-H X\-API\-Key:abc123 \-X POST \(aqhttp://localhost:8384/rest/system/debug?disable=beacon,discovery&enable=config,db\(aq
  344. .ft P
  345. .fi
  346. .UNINDENT
  347. .UNINDENT
  348. .SS GET /rest/system/discovery
  349. .sp
  350. Returns the contents of the local discovery cache.
  351. .INDENT 0.0
  352. .INDENT 3.5
  353. .sp
  354. .nf
  355. .ft C
  356. {
  357. "LGFPDIT7SKNNJVJZA4FC7QNCRKCE753K72BW5QD2FOZ7FRFEP57Q": [
  358. "192.162.129.11:22000"
  359. ]
  360. }
  361. .ft P
  362. .fi
  363. .UNINDENT
  364. .UNINDENT
  365. .SS POST /rest/system/discovery
  366. .sp
  367. \fBNOTE:\fP
  368. .INDENT 0.0
  369. .INDENT 3.5
  370. Removed in v0.12.0.
  371. .UNINDENT
  372. .UNINDENT
  373. .sp
  374. Post with the query parameters \fBdevice\fP and \fBaddr\fP to add entries to
  375. the discovery cache.
  376. .INDENT 0.0
  377. .INDENT 3.5
  378. .sp
  379. .nf
  380. .ft C
  381. curl \-X POST http://127.0.0.1:8384/rest/system/discovery?device=LGFPDIT7SKNNJVJZA4FC7QNCRKCE753K72BW5QD2FOZ7FRFEP57Q\e&addr=192.162.129.11:22000
  382. # Or with the X\-API\-Key header:
  383. curl \-X POST \-\-header "X\-API\-Key: TcE28kVPdtJ8COws1JdM0b2nodj77WeQ" http://127.0.0.1:8384/rest/system/discovery?device=LGFPDIT7SKNNJVJZA4FC7QNCRKCE753K72BW5QD2FOZ7FRFEP57Q\e&addr=192.162.129.11:22000
  384. .ft P
  385. .fi
  386. .UNINDENT
  387. .UNINDENT
  388. .SS POST /rest/system/error/clear
  389. .sp
  390. Post with empty to body to remove all recent errors.
  391. .SS GET /rest/system/error
  392. .sp
  393. \fBNOTE:\fP
  394. .INDENT 0.0
  395. .INDENT 3.5
  396. Return format changed in 0.12.0.
  397. .UNINDENT
  398. .UNINDENT
  399. .sp
  400. Returns the list of recent errors.
  401. .INDENT 0.0
  402. .INDENT 3.5
  403. .sp
  404. .nf
  405. .ft C
  406. {
  407. "errors": [
  408. {
  409. "when": "2014\-09\-18T12:59:26.549953186+02:00",
  410. "message": "This is an error string"
  411. }
  412. ]
  413. }
  414. .ft P
  415. .fi
  416. .UNINDENT
  417. .UNINDENT
  418. .SS POST /rest/system/error
  419. .sp
  420. Post with an error message in the body (plain text) to register a new
  421. error. The new error will be displayed on any active GUI clients.
  422. .SS GET /rest/system/log
  423. .sp
  424. New in version 0.12.0.
  425. .sp
  426. Returns the list of recent log entries.
  427. .INDENT 0.0
  428. .INDENT 3.5
  429. .sp
  430. .nf
  431. .ft C
  432. {
  433. "messages": [
  434. {
  435. "when": "2014\-09\-18T12:59:26.549953186+02:00",
  436. "message": "This is a log entry"
  437. }
  438. ]
  439. }
  440. .ft P
  441. .fi
  442. .UNINDENT
  443. .UNINDENT
  444. .SS POST /rest/system/pause
  445. .sp
  446. Pause the given device or all devices.
  447. .sp
  448. Takes the optional parameter \fBdevice\fP (device ID). When omitted,
  449. pauses all devices. Returns status 200 and no content upon success, or status
  450. 500 and a plain text error on failure.
  451. .SS GET /rest/system/ping
  452. .sp
  453. Returns a \fB{"ping": "pong"}\fP object.
  454. .INDENT 0.0
  455. .INDENT 3.5
  456. .sp
  457. .nf
  458. .ft C
  459. {
  460. "ping": "pong"
  461. }
  462. .ft P
  463. .fi
  464. .UNINDENT
  465. .UNINDENT
  466. .SS POST /rest/system/ping
  467. .sp
  468. Returns a \fB{"ping": "pong"}\fP object.
  469. .SS POST /rest/system/reset
  470. .sp
  471. Post with empty body to erase the current index database and restart
  472. Syncthing. With no query parameters, the entire database is erased from disk.
  473. By specifying the \fBfolder\fP parameter with a valid folder ID, only
  474. information for that folder will be erased:
  475. .INDENT 0.0
  476. .INDENT 3.5
  477. .sp
  478. .nf
  479. .ft C
  480. $ curl \-X POST \-H "X\-API\-Key: abc123" http://localhost:8384/rest/system/reset?folder=default
  481. .ft P
  482. .fi
  483. .UNINDENT
  484. .UNINDENT
  485. .sp
  486. \fBCaution\fP: See \fB\-reset\-database\fP for \fB\&.stfolder\fP creation side\-effect and caution regarding mountpoints.
  487. .SS POST /rest/system/restart
  488. .sp
  489. Post with empty body to immediately restart Syncthing.
  490. .SS POST /rest/system/resume
  491. .sp
  492. Resume the given device or all devices.
  493. .sp
  494. Takes the optional parameter \fBdevice\fP (device ID). When omitted,
  495. resumes all devices. Returns status 200 and no content upon success, or status
  496. 500 and a plain text error on failure.
  497. .SS POST /rest/system/shutdown
  498. .sp
  499. Post with empty body to cause Syncthing to exit and not restart.
  500. .SS GET /rest/system/status
  501. .sp
  502. Returns information about current system status and resource usage.
  503. .INDENT 0.0
  504. .INDENT 3.5
  505. .sp
  506. .nf
  507. .ft C
  508. {
  509. "alloc": 30618136,
  510. "connectionServiceStatus": {
  511. "dynamic+https://relays.syncthing.net/endpoint": {
  512. "error": null,
  513. "lanAddresses": [
  514. "relay://23.92.71.120:443/?id=53STGR7\-YBM6FCX\-PAZ2RHM\-YPY6OEJ\-WYHVZO7\-PCKQRCK\-PZLTP7T\-434XCAD&pingInterval=1m0s&networkTimeout=2m0s&sessionLimitBps=0&globalLimitBps=0&statusAddr=:22070&providedBy=canton7"
  515. ],
  516. "wanAddresses": [
  517. "relay://23.92.71.120:443/?id=53STGR7\-YBM6FCX\-PAZ2RHM\-YPY6OEJ\-WYHVZO7\-PCKQRCK\-PZLTP7T\-434XCAD&pingInterval=1m0s&networkTimeout=2m0s&sessionLimitBps=0&globalLimitBps=0&statusAddr=:22070&providedBy=canton7"
  518. ]
  519. },
  520. "tcp://0.0.0.0:22000": {
  521. "error": null,
  522. "lanAddresses": [
  523. "tcp://0.0.0.0:22000"
  524. ],
  525. "wanAddresses": [
  526. "tcp://0.0.0.0:22000"
  527. ]
  528. }
  529. },
  530. "cpuPercent": 0.006944836512046966,
  531. "discoveryEnabled": true,
  532. "discoveryErrors": {
  533. "global@https://discovery\-v4\-1.syncthing.net/v2/": "500 Internal Server Error",
  534. "global@https://discovery\-v4\-2.syncthing.net/v2/": "Post https://discovery\-v4\-2.syncthing.net/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)",
  535. "global@https://discovery\-v4\-3.syncthing.net/v2/": "Post https://discovery\-v4\-3.syncthing.net/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)",
  536. "global@https://discovery\-v6\-1.syncthing.net/v2/": "Post https://discovery\-v6\-1.syncthing.net/v2/: dial tcp [2001:470:28:4d6::5]:443: connect: no route to host",
  537. "global@https://discovery\-v6\-2.syncthing.net/v2/": "Post https://discovery\-v6\-2.syncthing.net/v2/: dial tcp [2604:a880:800:10::182:a001]:443: connect: no route to host",
  538. "global@https://discovery\-v6\-3.syncthing.net/v2/": "Post https://discovery\-v6\-3.syncthing.net/v2/: dial tcp [2400:6180:0:d0::d9:d001]:443: connect: no route to host"
  539. },
  540. "discoveryMethods": 8,
  541. "goroutines": 49,
  542. "lastDialStatus": {
  543. "tcp://10.20.30.40": {
  544. "when": "2019\-05\-16T07:41:23Z",
  545. "error": "dial tcp 10.20.30.40:22000: i/o timeout"
  546. },
  547. "tcp://172.16.33.3:22000": {
  548. "when": "2019\-05\-16T07:40:43Z",
  549. "ok": true
  550. },
  551. "tcp://83.233.120.221:22000": {
  552. "when": "2019\-05\-16T07:41:13Z",
  553. "error": "dial tcp 83.233.120.221:22000: connect: connection refused"
  554. }
  555. },
  556. "myID": "P56IOI7\-MZJNU2Y\-IQGDREY\-DM2MGTI\-MGL3BXN\-PQ6W5BM\-TBBZ4TJ\-XZWICQ2",
  557. "pathSeparator": "/",
  558. "startTime": "2016\-06\-06T19:41:43.039284753+02:00",
  559. "sys": 42092792,
  560. "themes": [
  561. "default",
  562. "dark"
  563. ],
  564. "tilde": "/Users/jb",
  565. "uptime": 2635
  566. }
  567. .ft P
  568. .fi
  569. .UNINDENT
  570. .UNINDENT
  571. .sp
  572. New in version 1.2.0: The \fBlastDialStatus\fP dictionary contains the last error (or \fBnull\fP for
  573. success) for each peer address that Syncthing has attempted to contact.
  574. The \fBconnectionServiceStatus\fP entries gained \fB"error": null\fP
  575. attributes where previously there would be no \fBerror\fP attribute at all
  576. in the success case.
  577. .SS GET /rest/system/upgrade
  578. .sp
  579. Checks for a possible upgrade and returns an object describing the
  580. newest version and upgrade possibility.
  581. .INDENT 0.0
  582. .INDENT 3.5
  583. .sp
  584. .nf
  585. .ft C
  586. {
  587. "latest": "v0.14.47",
  588. "majorNewer": false,
  589. "newer": true,
  590. "running": "v0.14.46"
  591. }
  592. .ft P
  593. .fi
  594. .UNINDENT
  595. .UNINDENT
  596. .SS POST /rest/system/upgrade
  597. .sp
  598. Perform an upgrade to the newest released version and restart. Does
  599. nothing if there is no newer version than currently running.
  600. .SS GET /rest/system/version
  601. .sp
  602. Returns the current Syncthing version information.
  603. .INDENT 0.0
  604. .INDENT 3.5
  605. .sp
  606. .nf
  607. .ft C
  608. {
  609. "arch": "amd64",
  610. "longVersion": "syncthing v0.10.27+3\-gea8c3de (go1.4 darwin\-amd64 default) jb@syno 2015\-03\-16 11:01:29 UTC",
  611. "os": "darwin",
  612. "version": "v0.10.27+3\-gea8c3de"
  613. }
  614. .ft P
  615. .fi
  616. .UNINDENT
  617. .UNINDENT
  618. .SH DATABASE ENDPOINTS
  619. .SS GET /rest/db/browse
  620. .sp
  621. Returns the directory tree of the global model. Directories are always
  622. JSON objects (map/dictionary), and files are always arrays of
  623. modification time and size. The first integer is the files modification
  624. time, and the second integer is the file size.
  625. .sp
  626. The call takes one mandatory \fBfolder\fP parameter and two optional
  627. parameters. Optional parameter \fBlevels\fP defines how deep within the
  628. tree we want to dwell down (0 based, defaults to unlimited depth)
  629. Optional parameter \fBprefix\fP defines a prefix within the tree where to
  630. start building the structure.
  631. .INDENT 0.0
  632. .INDENT 3.5
  633. .sp
  634. .nf
  635. .ft C
  636. $ curl \-s http://localhost:8384/rest/db/browse?folder=default | json_pp
  637. {
  638. "directory": {
  639. "file": ["2015\-04\-20T22:20:45+09:00", 130940928],
  640. "subdirectory": {
  641. "another file": ["2015\-04\-20T22:20:45+09:00", 130940928]
  642. }
  643. },
  644. "rootfile": ["2015\-04\-20T22:20:45+09:00", 130940928]
  645. }
  646. $ curl \-s http://localhost:8384/rest/db/browse?folder=default&levels=0 | json_pp
  647. {
  648. "directory": {},
  649. "rootfile": ["2015\-04\-20T22:20:45+09:00", 130940928]
  650. }
  651. $ curl \-s http://localhost:8384/rest/db/browse?folder=default&levels=1 | json_pp
  652. {
  653. "directory": {
  654. "file": ["2015\-04\-20T22:20:45+09:00", 130940928],
  655. "subdirectory": {}
  656. },
  657. "rootfile": ["2015\-04\-20T22:20:45+09:00", 130940928]
  658. }
  659. $ curl \-s http://localhost:8384/rest/db/browse?folder=default&prefix=directory/subdirectory | json_pp
  660. {
  661. "another file": ["2015\-04\-20T22:20:45+09:00", 130940928]
  662. }
  663. $ curl \-s http://localhost:8384/rest/db/browse?folder=default&prefix=directory&levels=0 | json_pp
  664. {
  665. "file": ["2015\-04\-20T22:20:45+09:00", 130940928],
  666. "subdirectory": {}
  667. }
  668. .ft P
  669. .fi
  670. .UNINDENT
  671. .UNINDENT
  672. .sp
  673. \fBNOTE:\fP
  674. .INDENT 0.0
  675. .INDENT 3.5
  676. This is an expensive call, increasing CPU and RAM usage on the device. Use sparingly.
  677. .UNINDENT
  678. .UNINDENT
  679. .SS GET /rest/db/completion
  680. .sp
  681. Returns the completion percentage (0 to 100) for a given device and
  682. folder. Takes \fBdevice\fP and \fBfolder\fP parameters.
  683. .INDENT 0.0
  684. .INDENT 3.5
  685. .sp
  686. .nf
  687. .ft C
  688. {
  689. "completion": 100,
  690. "globalBytes": 156793013575,
  691. "needBytes": 0,
  692. "needDeletes": 0
  693. }
  694. .ft P
  695. .fi
  696. .UNINDENT
  697. .UNINDENT
  698. .sp
  699. \fBNOTE:\fP
  700. .INDENT 0.0
  701. .INDENT 3.5
  702. This is an expensive call, increasing CPU and RAM usage on the device. Use sparingly.
  703. .UNINDENT
  704. .UNINDENT
  705. .SS GET /rest/db/file
  706. .sp
  707. Returns most data available about a given file, including version and
  708. availability. Takes \fBfolder\fP and \fBfile\fP parameters.
  709. .INDENT 0.0
  710. .INDENT 3.5
  711. .sp
  712. .nf
  713. .ft C
  714. {
  715. "availability": [
  716. {
  717. "id": "ITZRNXE\-YNROGBZ\-HXTH5P7\-VK5NYE5\-QHRQGE2\-7JQ6VNJ\-KZUEDIU\-5PPR5AM",
  718. "fromTemporary": false
  719. }
  720. ],
  721. "global": {
  722. "deleted": false,
  723. "ignored": false,
  724. "invalid": false,
  725. "localFlags": 0,
  726. "modified": "2018\-08\-18T12:21:13.836784059+02:00",
  727. "modifiedBy": "SYNO4VL",
  728. "mustRescan": false,
  729. "name": "testfile",
  730. "noPermissions": false,
  731. "numBlocks": 1,
  732. "permissions": "0755",
  733. "sequence": 107499,
  734. "size": 1234,
  735. "type": 0,
  736. "version": [
  737. "SYNO4VL:1"
  738. ]
  739. },
  740. "local": {
  741. "deleted": false,
  742. "ignored": false,
  743. "invalid": false,
  744. "localFlags": 0,
  745. "modified": "2018\-08\-18T12:21:13.836784059+02:00",
  746. "modifiedBy": "SYNO4VL",
  747. "mustRescan": false,
  748. "name": "testfile",
  749. "noPermissions": false,
  750. "numBlocks": 1,
  751. "permissions": "0755",
  752. "sequence": 111038,
  753. "size": 1234,
  754. "type": 0,
  755. "version": [
  756. "SYNO4VL:1"
  757. ]
  758. }
  759. }
  760. .ft P
  761. .fi
  762. .UNINDENT
  763. .UNINDENT
  764. .SS GET /rest/db/ignores
  765. .sp
  766. Takes one parameter, \fBfolder\fP, and returns the content of the
  767. \fB\&.stignore\fP as the \fBignore\fP field. A second field, \fBexpanded\fP,
  768. provides a list of strings which represent globbing patterns described by gobwas/glob (based on standard wildcards) that match the patterns in \fB\&.stignore\fP and all the includes. If appropriate these globs are prepended by the following modifiers: \fB!\fP to negate the glob, \fB(?i)\fP to do case insensitive matching and \fB(?d)\fP to enable removing of ignored files in an otherwise empty directory.
  769. .INDENT 0.0
  770. .INDENT 3.5
  771. .sp
  772. .nf
  773. .ft C
  774. {
  775. "ignore": [
  776. "(?i)/Backups"
  777. ],
  778. "expanded": [
  779. "(?i)Backups",
  780. "(?i)Backups/**"
  781. ]
  782. }
  783. .ft P
  784. .fi
  785. .UNINDENT
  786. .UNINDENT
  787. .SS POST /rest/db/ignores
  788. .sp
  789. Expects a format similar to the output of \fBGET\fP call, but only
  790. containing the \fBignore\fP field (\fBexpanded\fP field should be omitted).
  791. It takes one parameter, \fBfolder\fP, and either updates the content of
  792. the \fB\&.stignore\fP echoing it back as a response, or returns an error.
  793. .SS GET /rest/db/need
  794. .sp
  795. Takes one mandatory parameter, \fBfolder\fP, and returns lists of files which are
  796. needed by this device in order for it to become in sync.
  797. .sp
  798. Furthermore takes an optional \fBpage\fP and \fBperpage\fP arguments for pagination.
  799. Pagination happens, across the union of all needed files, that is \- across all
  800. 3 sections of the response.
  801. For example, given the current need state is as follows:
  802. .INDENT 0.0
  803. .IP 1. 3
  804. \fBprogress\fP has 15 items
  805. .IP 2. 3
  806. \fBqueued\fP has 3 items
  807. .IP 3. 3
  808. \fBrest\fP has 12 items
  809. .UNINDENT
  810. .sp
  811. If you issue a query with \fBpage=1\fP and \fBperpage=10\fP, only the \fBprogress\fP
  812. section in the response will have 10 items. If you issue a request query with
  813. \fBpage=2\fP and \fBperpage=10\fP, \fBprogress\fP section will have the last 5 items,
  814. \fBqueued\fP section will have all 3 items, and \fBrest\fP section will have first
  815. 2 items. If you issue a query for \fBpage=3\fP and \fBperpage=10\fP, you will only
  816. have the last 10 items of the \fBrest\fP section.
  817. .sp
  818. In all these calls, \fBtotal\fP will be 30 to indicate the total number of
  819. available items.
  820. .INDENT 0.0
  821. .INDENT 3.5
  822. .sp
  823. .nf
  824. .ft C
  825. {
  826. # Files currently being downloaded
  827. "progress": [
  828. {
  829. "flags": "0755",
  830. "sequence": 6,
  831. "modified": "2015\-04\-20T23:06:12+09:00",
  832. "name": "ls",
  833. "size": 34640,
  834. "version": [
  835. "5157751870738175669:1"
  836. ]
  837. }
  838. ],
  839. # Files queued to be downloaded next (as per array order)
  840. "queued": [
  841. ...
  842. ],
  843. # Files to be downloaded after all queued files will be downloaded.
  844. # This happens when we start downloading files, and new files get added while we are downloading.
  845. "rest": [
  846. ...
  847. ],
  848. "page": 1,
  849. "perpage": 100,
  850. "total": 2000
  851. }
  852. .ft P
  853. .fi
  854. .UNINDENT
  855. .UNINDENT
  856. .sp
  857. \fBNOTE:\fP
  858. .INDENT 0.0
  859. .INDENT 3.5
  860. This is an expensive call, increasing CPU and RAM usage on the device. Use sparingly.
  861. .UNINDENT
  862. .UNINDENT
  863. .SS POST /rest/db/override
  864. .sp
  865. Request override of a send only folder. Override means to make the local
  866. version latest, overriding changes made on other devices. This API call does
  867. nothing if the folder is not a send only folder.
  868. .sp
  869. Takes the mandatory parameter \fIfolder\fP (folder ID).
  870. .INDENT 0.0
  871. .INDENT 3.5
  872. .sp
  873. .nf
  874. .ft C
  875. curl \-X POST \-H X\-API\-key:... http://127.0.0.1:8384/rest/db/override?folder=default
  876. .ft P
  877. .fi
  878. .UNINDENT
  879. .UNINDENT
  880. .SS POST /rest/db/prio
  881. .sp
  882. Moves the file to the top of the download queue.
  883. .INDENT 0.0
  884. .INDENT 3.5
  885. .sp
  886. .nf
  887. .ft C
  888. curl \-X POST http://127.0.0.1:8384/rest/db/prio?folder=default&file=foo/bar
  889. .ft P
  890. .fi
  891. .UNINDENT
  892. .UNINDENT
  893. .sp
  894. Response contains the same output as \fBGET /rest/db/need\fP
  895. .SS POST /rest/db/revert
  896. .sp
  897. New in version 0.14.50.
  898. .sp
  899. Request revert of a receive only folder. Reverting a folder means to undo
  900. all local changes. This API call does nothing if the folder is not a receive
  901. only folder.
  902. .sp
  903. Takes the mandatory parameter \fIfolder\fP (folder ID).
  904. .INDENT 0.0
  905. .INDENT 3.5
  906. .sp
  907. .nf
  908. .ft C
  909. curl \-X POST \-H X\-API\-Key:... http://127.0.0.1:8384/rest/db/revert?folder=default
  910. .ft P
  911. .fi
  912. .UNINDENT
  913. .UNINDENT
  914. .SS POST /rest/db/scan
  915. .sp
  916. Request immediate scan. Takes the optional parameters \fBfolder\fP (folder ID),
  917. \fBsub\fP (path relative to the folder root) and \fBnext\fP (time in seconds). If
  918. \fBfolder\fP is omitted or empty all folders are scanned. If \fBsub\fP is given,
  919. only this path (and children, in case it’s a directory) is scanned. The \fBnext\fP
  920. argument delays Syncthing’s automated rescan interval for a given amount of
  921. seconds.
  922. .sp
  923. Requesting scan of a path that no longer exists, but previously did, is
  924. valid and will result in Syncthing noticing the deletion of the path in
  925. question.
  926. .sp
  927. Returns status 200 and no content upon success, or status 500 and a
  928. plain text error if an error occurred during scanning.
  929. .INDENT 0.0
  930. .INDENT 3.5
  931. .sp
  932. .nf
  933. .ft C
  934. curl \-X POST http://127.0.0.1:8384/rest/db/scan?folder=default&sub=foo/bar
  935. .ft P
  936. .fi
  937. .UNINDENT
  938. .UNINDENT
  939. .SS GET /rest/db/status
  940. .sp
  941. Returns information about the current status of a folder.
  942. .sp
  943. Parameters: \fBfolder\fP, the ID of a folder.
  944. .INDENT 0.0
  945. .INDENT 3.5
  946. .sp
  947. .nf
  948. .ft C
  949. {
  950. "globalBytes": 0,
  951. "globalDeleted": 0,
  952. "globalDirectories": 0,
  953. "globalFiles": 0,
  954. "globalSymlinks": 0,
  955. "ignorePatterns": false,
  956. "inSyncBytes": 0,
  957. "inSyncFiles": 0,
  958. "invalid": "",
  959. "localBytes": 0,
  960. "localDeleted": 0,
  961. "localDirectories": 0,
  962. "localFiles": 0,
  963. "localSymlinks": 0,
  964. "needBytes": 0,
  965. "needDeletes": 0,
  966. "needDirectories": 0,
  967. "needFiles": 0,
  968. "needSymlinks": 0,
  969. "pullErrors": 0,
  970. "receiveOnlyChangedBytes": 0,
  971. "receiveOnlyChangedDeletes": 0,
  972. "receiveOnlyChangedDirectories": 0,
  973. "receiveOnlyChangedFiles": 0,
  974. "receiveOnlyChangedSymlinks": 0,
  975. "sequence": 0,
  976. "state": "idle",
  977. "stateChanged": "2018\-08\-08T07:04:57.301064781+02:00",
  978. "version": 0
  979. }
  980. .ft P
  981. .fi
  982. .UNINDENT
  983. .UNINDENT
  984. .sp
  985. The various fields have the following meaning:
  986. .INDENT 0.0
  987. .TP
  988. .B global*:
  989. Data in the cluster latest version.
  990. .TP
  991. .B inSync*:
  992. Data that is locally the same as the cluster latest version.
  993. .TP
  994. .B local*:
  995. Data that is locally present, regardless of whether it’s the same or different version as the cluster latest version.
  996. .TP
  997. .B need*:
  998. Data that is needed to become up to date with the cluster latest version (i.e., data that is out of sync).
  999. .TP
  1000. .B receiveOnlyChanged*:
  1001. Data that has changed locally in a receive only folder, and thus not been sent to the cluster.
  1002. .TP
  1003. .B invalid:
  1004. Deprecated, always empty.
  1005. .TP
  1006. .B pullErrors:
  1007. The number of files that failed to sync during the last sync operations.
  1008. .TP
  1009. .B sequence:
  1010. The current folder sequence number.
  1011. .TP
  1012. .B state:
  1013. The current folder state.
  1014. .TP
  1015. .B stateChanged:
  1016. When the folder state last changed.
  1017. .TP
  1018. .B version:
  1019. Deprecated, equivalent to the sequence number.
  1020. .UNINDENT
  1021. .sp
  1022. \fBNOTE:\fP
  1023. .INDENT 0.0
  1024. .INDENT 3.5
  1025. This is an expensive call, increasing CPU and RAM usage on the device. Use sparingly.
  1026. .UNINDENT
  1027. .UNINDENT
  1028. .SH EVENT ENDPOINTS
  1029. .SS GET /rest/events
  1030. .sp
  1031. To receive events, perform a HTTP GET of \fB/rest/events\fP\&.
  1032. .sp
  1033. To filter the event list, in effect creating a specific subscription for
  1034. only the desired event types, add a parameter
  1035. \fBevents=EventTypeA,EventTypeB,...\fP where the event types are any of the event\-types\&.
  1036. .sp
  1037. The optional parameter \fBsince=<lastSeenID>\fP sets the ID of the last event
  1038. you’ve already seen. Syncthing returns a JSON encoded array of event objects,
  1039. starting at the event just after the one with this last seen ID. The default
  1040. value is 0, which returns all events. There is a limit to the number of events
  1041. buffered, so if the rate of events is high or the time between polling calls is
  1042. long some events might be missed. This can be detected by noting a discontinuity
  1043. in the event IDs.
  1044. .sp
  1045. If no new events are produced since \fB<lastSeenID>\fP, the HTTP call blocks and
  1046. waits for new events to happen before returning. By default it times out after
  1047. 60 seconds returning an empty array. The time out duration can be customized
  1048. with the optional parameter \fBtimeout=seconds\fP\&.
  1049. .sp
  1050. To receive only a limited number of events, add the \fBlimit=n\fP parameter with a
  1051. suitable value for \fBn\fP and only the \fIlast\fP \fBn\fP events will be returned. This
  1052. can be used to catch up with the latest event ID after a disconnection for
  1053. example: \fB/rest/events?since=0&limit=1\fP\&.
  1054. .SH STATISTICS ENDPOINTS
  1055. .SS GET /rest/stats/device
  1056. .sp
  1057. Returns general statistics about devices. Currently, only contains the
  1058. time the device was last seen.
  1059. .INDENT 0.0
  1060. .INDENT 3.5
  1061. .sp
  1062. .nf
  1063. .ft C
  1064. $ curl \-s http://localhost:8384/rest/stats/device | json
  1065. {
  1066. "P56IOI7\-MZJNU2Y\-IQGDREY\-DM2MGTI\-MGL3BXN\-PQ6W5BM\-TBBZ4TJ\-XZWICQ2": {
  1067. "lastSeen" : "2015\-04\-18T11:21:31.3256277+01:00"
  1068. }
  1069. }
  1070. .ft P
  1071. .fi
  1072. .UNINDENT
  1073. .UNINDENT
  1074. .SS GET /rest/stats/folder
  1075. .sp
  1076. Returns general statistics about folders. Currently contains the
  1077. last scan time and the last synced file.
  1078. .INDENT 0.0
  1079. .INDENT 3.5
  1080. .sp
  1081. .nf
  1082. .ft C
  1083. $ curl \-s http://localhost:8384/rest/stats/folder | json
  1084. {
  1085. "folderid" : {
  1086. "lastScan": "2016\-06\-02T13:28:01.288181412\-04:00",
  1087. "lastFile" : {
  1088. "filename" : "file/name",
  1089. "at" : "2015\-04\-16T22:04:18.3066971+01:00"
  1090. }
  1091. }
  1092. }
  1093. .ft P
  1094. .fi
  1095. .UNINDENT
  1096. .UNINDENT
  1097. .SH MISC SERVICES ENDPOINTS
  1098. .SS GET /rest/svc/deviceid
  1099. .sp
  1100. Verifies and formats a device ID. Accepts all currently valid formats
  1101. (52 or 56 characters with or without separators, upper or lower case,
  1102. with trivial substitutions). Takes one parameter, \fBid\fP, and returns
  1103. either a valid device ID in modern format, or an error.
  1104. .INDENT 0.0
  1105. .INDENT 3.5
  1106. .sp
  1107. .nf
  1108. .ft C
  1109. $ curl \-s http://localhost:8384/rest/svc/deviceid?id=1234 | json
  1110. {
  1111. "error": "device ID invalid: incorrect length"
  1112. }
  1113. $ curl \-s http://localhost:8384/rest/svc/deviceid?id=p56ioi7m\-\-zjnu2iq\-gdr\-eydm\-2mgtmgl3bxnpq6w5btbbz4tjxzwicq | json
  1114. {
  1115. "id": "P56IOI7\-MZJNU2Y\-IQGDREY\-DM2MGTI\-MGL3BXN\-PQ6W5BM\-TBBZ4TJ\-XZWICQ2"
  1116. }
  1117. .ft P
  1118. .fi
  1119. .UNINDENT
  1120. .UNINDENT
  1121. .SS GET /rest/svc/lang
  1122. .sp
  1123. Returns a list of canonicalized localization codes, as picked up from
  1124. the \fBAccept\-Language\fP header sent by the browser.
  1125. .INDENT 0.0
  1126. .INDENT 3.5
  1127. .sp
  1128. .nf
  1129. .ft C
  1130. ["sv_sv","sv","en_us","en"]
  1131. .ft P
  1132. .fi
  1133. .UNINDENT
  1134. .UNINDENT
  1135. .SS GET /rest/svc/random/string
  1136. .sp
  1137. Returns a strong random generated string (alphanumeric) of the specified length. Takes the \fBlength\fP parameter.
  1138. .INDENT 0.0
  1139. .INDENT 3.5
  1140. .sp
  1141. .nf
  1142. .ft C
  1143. {
  1144. "random": "FdPaEaZQ56sXEKYNxpgF"
  1145. }
  1146. .ft P
  1147. .fi
  1148. .UNINDENT
  1149. .UNINDENT
  1150. .SS GET /rest/svc/report
  1151. .sp
  1152. Returns the data sent in the anonymous usage report.
  1153. .INDENT 0.0
  1154. .INDENT 3.5
  1155. .sp
  1156. .nf
  1157. .ft C
  1158. {
  1159. "folderMaxMiB" : 0,
  1160. "platform" : "linux\-amd64",
  1161. "totMiB" : 0,
  1162. "longVersion" : "syncthing v0.12.2 \e"Beryllium Bedbug\e" (go1.4.3 linux\-amd64 default) unknown\[email protected] 2015\-11\-09 13:23:26 UTC",
  1163. "upgradeAllowedManual" : true,
  1164. "totFiles" : 3,
  1165. "folderUses" : {
  1166. "ignorePerms" : 0,
  1167. "autoNormalize" : 0,
  1168. "sendonly" : 0,
  1169. "ignoreDelete" : 0
  1170. },
  1171. "memoryUsageMiB" : 13,
  1172. "version" : "v0.12.2",
  1173. "sha256Perf" : 27.28,
  1174. "numFolders" : 2,
  1175. "memorySize" : 1992,
  1176. "announce" : {
  1177. "defaultServersIP" : 0,
  1178. "otherServers" : 0,
  1179. "globalEnabled" : false,
  1180. "defaultServersDNS" : 1,
  1181. "localEnabled" : false
  1182. },
  1183. "usesRateLimit" : false,
  1184. "numCPU" : 2,
  1185. "uniqueID" : "",
  1186. "urVersion" : 2,
  1187. "rescanIntvs" : [
  1188. 60,
  1189. 60
  1190. ],
  1191. "numDevices" : 2,
  1192. "folderMaxFiles" : 3,
  1193. "relays" : {
  1194. "defaultServers" : 1,
  1195. "enabled" : true,
  1196. "otherServers" : 0
  1197. },
  1198. "deviceUses" : {
  1199. "compressMetadata" : 1,
  1200. "customCertName" : 0,
  1201. "staticAddr" : 1,
  1202. "compressAlways" : 0,
  1203. "compressNever" : 1,
  1204. "introducer" : 0,
  1205. "dynamicAddr" : 1
  1206. },
  1207. "upgradeAllowedAuto" : false
  1208. }
  1209. .ft P
  1210. .fi
  1211. .UNINDENT
  1212. .UNINDENT
  1213. .SH AUTHOR
  1214. The Syncthing Authors
  1215. .SH COPYRIGHT
  1216. 2014-2019, The Syncthing Authors
  1217. .\" Generated by docutils manpage writer.
  1218. .