syncthing-rest-api.7 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .TH "SYNCTHING-REST-API" "7" "July 01, 2015" "v0.11" "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. .SH DESCRIPTION
  34. .sp
  35. Syncthing exposes a REST interface over HTTP on the GUI port. This is used by
  36. the GUI code (JavaScript) and can be used by other processes wishing to control
  37. Syncthing. In most cases both the input and output data is in JSON format. The
  38. interface is subject to change.
  39. .SH API KEY
  40. .sp
  41. To use the POST methods, or \fIany\fP method when authentication is enabled, an API
  42. key must be set and used. The API key can be generated in the GUI, or set in the
  43. \fBconfiguration/gui/apikey\fP element in the configuration file. To use an API
  44. key, set the request header \fBX\-API\-Key\fP to the API key value.
  45. .SH SYSTEM ENDPOINTS
  46. .SS GET /rest/system/config
  47. .sp
  48. Returns the current configuration.
  49. .INDENT 0.0
  50. .INDENT 3.5
  51. .sp
  52. .nf
  53. .ft C
  54. {
  55. # etc
  56. }
  57. .ft P
  58. .fi
  59. .UNINDENT
  60. .UNINDENT
  61. .SS GET /rest/system/config/insync
  62. .sp
  63. Returns whether the config is in sync, i.e. whether the running
  64. configuration is the same as that on disk.
  65. .INDENT 0.0
  66. .INDENT 3.5
  67. .sp
  68. .nf
  69. .ft C
  70. {
  71. "configInSync": true
  72. }
  73. .ft P
  74. .fi
  75. .UNINDENT
  76. .UNINDENT
  77. .SS POST /rest/system/config
  78. .sp
  79. Post the full contents of the configuration, in the same format as returned by
  80. the corresponding GET request. The configuration will be saved to disk and the
  81. \fBconfigInSync\fP flag set to false. Restart Syncthing to activate.
  82. .SS GET /rest/system/connections
  83. .sp
  84. Returns the list of current connections and some metadata associated
  85. with the connection/peer.
  86. .INDENT 0.0
  87. .INDENT 3.5
  88. .sp
  89. .nf
  90. .ft C
  91. {
  92. "connections": {
  93. "SMAHWLH\-AP74FAB\-QWLDYGV\-Q65ASPL\-GAAR2TB\-KEF5FLB\-DRLZCPN\-DJBFZAG": {
  94. "address": "172.21.20.78:22000",
  95. "at": "2015\-03\-16T21:51:38.672758819+01:00",
  96. "clientVersion": "v0.10.27",
  97. "inBytesTotal": 415980,
  98. "outBytesTotal": 396300
  99. }
  100. },
  101. "total": {
  102. "address": "",
  103. "at": "2015\-03\-16T21:51:38.672868814+01:00",
  104. "clientVersion": "",
  105. "inBytesTotal": 415980,
  106. "outBytesTotal": 396300
  107. }
  108. }
  109. .ft P
  110. .fi
  111. .UNINDENT
  112. .UNINDENT
  113. .SS GET /rest/system/discovery
  114. .sp
  115. Returns the contents of the local discovery cache.
  116. .INDENT 0.0
  117. .INDENT 3.5
  118. .sp
  119. .nf
  120. .ft C
  121. {
  122. "LGFPDIT7SKNNJVJZA4FC7QNCRKCE753K72BW5QD2FOZ7FRFEP57Q": [
  123. "192.162.129.11:22000"
  124. ]
  125. }
  126. .ft P
  127. .fi
  128. .UNINDENT
  129. .UNINDENT
  130. .SS POST /rest/system/discovery/hint
  131. .sp
  132. Post with the query parameters \fBdevice\fP and \fBaddr\fP to add entries to
  133. the discovery cache.
  134. .INDENT 0.0
  135. .INDENT 3.5
  136. .sp
  137. .nf
  138. .ft C
  139. curl \-X POST http://127.0.0.1:8384/rest/system/discovery/hint?device=LGFPDIT7SKNNJVJZA4FC7QNCRKCE753K72BW5QD2FOZ7FRFEP57Q\e&addr=192.162.129.11:22000
  140. # Or with the X\-API\-Key header:
  141. curl \-X POST \-\-header "X\-API\-Key: TcE28kVPdtJ8COws1JdM0b2nodj77WeQ" http://127.0.0.1:8384/rest/system/discovery/hint?device=LGFPDIT7SKNNJVJZA4FC7QNCRKCE753K72BW5QD2FOZ7FRFEP57Q\e&addr=192.162.129.11:22000
  142. .ft P
  143. .fi
  144. .UNINDENT
  145. .UNINDENT
  146. .SS POST /rest/system/error/clear
  147. .sp
  148. Post with empty to body to remove all recent errors.
  149. .SS GET /rest/system/error
  150. .sp
  151. Returns the list of recent errors.
  152. .INDENT 0.0
  153. .INDENT 3.5
  154. .sp
  155. .nf
  156. .ft C
  157. {
  158. "errors": [
  159. {
  160. "time": "2014\-09\-18T12:59:26.549953186+02:00",
  161. "error": "This is an error string"
  162. }
  163. ]
  164. }
  165. .ft P
  166. .fi
  167. .UNINDENT
  168. .UNINDENT
  169. .SS POST /rest/system/error
  170. .sp
  171. Post with an error message in the body (plain text) to register a new
  172. error. The new error will be displayed on any active GUI clients.
  173. .SS GET /rest/system/ping
  174. .sp
  175. Returns a \fB{"ping": "pong"}\fP object.
  176. .INDENT 0.0
  177. .INDENT 3.5
  178. .sp
  179. .nf
  180. .ft C
  181. {
  182. "ping": "pong"
  183. }
  184. .ft P
  185. .fi
  186. .UNINDENT
  187. .UNINDENT
  188. .SS POST /rest/system/ping
  189. .sp
  190. Returns a \fB{"ping": "pong"}\fP object.
  191. .sp
  192. \fBNOTE:\fP
  193. .INDENT 0.0
  194. .INDENT 3.5
  195. Due to being a POST request, this method requires using an API key or CSRF token, as opposed to the GET request to the same URL.
  196. .UNINDENT
  197. .UNINDENT
  198. .SS POST /rest/system/reset
  199. .sp
  200. Post with empty body to erase the current index database and restart
  201. Syncthing. With no query parameters, the entire database is erased from disk.
  202. By specifying the \fBfolder\fP parameter with a valid folder ID, only
  203. information for that folder will be erased:
  204. .INDENT 0.0
  205. .INDENT 3.5
  206. .sp
  207. .nf
  208. .ft C
  209. $ curl \-X POST \-H "X\-API\-Key: abc123" http://localhost:8384/rest/system/reset?folder=default
  210. .ft P
  211. .fi
  212. .UNINDENT
  213. .UNINDENT
  214. .SS POST /rest/system/restart
  215. .sp
  216. Post with empty body to immediately restart Syncthing.
  217. .SS POST /rest/system/shutdown
  218. .sp
  219. Post with empty body to cause Syncthing to exit and not restart.
  220. .SS GET /rest/system/status
  221. .sp
  222. Returns information about current system status and resource usage.
  223. .INDENT 0.0
  224. .INDENT 3.5
  225. .sp
  226. .nf
  227. .ft C
  228. {
  229. "alloc": 30618136,
  230. "cpuPercent": 0.006944836512046966,
  231. "extAnnounceOK": {
  232. "udp4://announce.syncthing.net:22026": true,
  233. "udp6://announce\-v6.syncthing.net:22026": true
  234. },
  235. "goroutines": 49,
  236. "myID": "P56IOI7\-MZJNU2Y\-IQGDREY\-DM2MGTI\-MGL3BXN\-PQ6W5BM\-TBBZ4TJ\-XZWICQ2",
  237. "pathSeparator": "/",
  238. "sys": 42092792,
  239. "tilde": "/Users/jb"
  240. }
  241. .ft P
  242. .fi
  243. .UNINDENT
  244. .UNINDENT
  245. .SS GET /rest/system/upgrade
  246. .sp
  247. Checks for a possible upgrade and returns an object describing the
  248. newest version and upgrade possibility.
  249. .INDENT 0.0
  250. .INDENT 3.5
  251. .sp
  252. .nf
  253. .ft C
  254. {
  255. "latest": "v0.10.27",
  256. "newer": false,
  257. "running": "v0.10.27+5\-g36c93b7"
  258. }
  259. .ft P
  260. .fi
  261. .UNINDENT
  262. .UNINDENT
  263. .SS POST /rest/system/upgrade
  264. .sp
  265. Perform an upgrade to the newest released version and restart. Does
  266. nothing if there is no newer version than currently running.
  267. .SS GET /rest/system/version
  268. .sp
  269. Returns the current Syncthing version information.
  270. .INDENT 0.0
  271. .INDENT 3.5
  272. .sp
  273. .nf
  274. .ft C
  275. {
  276. "arch": "amd64",
  277. "longVersion": "syncthing v0.10.27+3\-gea8c3de (go1.4 darwin\-amd64 default) jb@syno 2015\-03\-16 11:01:29 UTC",
  278. "os": "darwin",
  279. "version": "v0.10.27+3\-gea8c3de"
  280. }
  281. .ft P
  282. .fi
  283. .UNINDENT
  284. .UNINDENT
  285. .SH DATABASE ENDPOINTS
  286. .SS GET /rest/db/browse
  287. .sp
  288. Returns the directory tree of the global model. Directories are always
  289. JSON objects (map/dictionary), and files are always arrays of
  290. modification time and size. The first integer is the files modification
  291. time, and the second integer is the file size.
  292. .sp
  293. The call takes one mandatory \fBfolder\fP parameter and two optional
  294. parameters. Optional parameter \fBlevels\fP defines how deep within the
  295. tree we want to dwell down (0 based, defaults to unlimited depth)
  296. Optional parameter \fBprefix\fP defines a prefix within the tree where to
  297. start building the structure.
  298. .INDENT 0.0
  299. .INDENT 3.5
  300. .sp
  301. .nf
  302. .ft C
  303. $ curl \-s http://localhost:8384/rest/db/browse?folder=default | json_pp
  304. {
  305. "directory": {
  306. "file": ["2015\-04\-20T22:20:45+09:00", 130940928],
  307. "subdirectory": {
  308. "another file": ["2015\-04\-20T22:20:45+09:00", 130940928]
  309. }
  310. },
  311. "rootfile": ["2015\-04\-20T22:20:45+09:00", 130940928]
  312. }
  313. $ curl \-s http://localhost:8384/rest/db/browse?folder=default&levels=0 | json_pp
  314. {
  315. "directory": {},
  316. "rootfile": ["2015\-04\-20T22:20:45+09:00", 130940928]
  317. }
  318. $ curl \-s http://localhost:8384/rest/db/browse?folder=default&levels=1 | json_pp
  319. {
  320. "directory": {
  321. "file": ["2015\-04\-20T22:20:45+09:00", 130940928],
  322. "subdirectory": {}
  323. },
  324. "rootfile": ["2015\-04\-20T22:20:45+09:00", 130940928]
  325. }
  326. $ curl \-s http://localhost:8384/rest/db/browse?folder=default&prefix=directory/subdirectory | json_pp
  327. {
  328. "another file": ["2015\-04\-20T22:20:45+09:00", 130940928]
  329. }
  330. $ curl \-s http://localhost:8384/rest/db/browse?folder=default&prefix=directory&levels=0 | json_pp
  331. {
  332. "file": ["2015\-04\-20T22:20:45+09:00", 130940928],
  333. "subdirectory": {}
  334. }
  335. .ft P
  336. .fi
  337. .UNINDENT
  338. .UNINDENT
  339. .sp
  340. \fBNOTE:\fP
  341. .INDENT 0.0
  342. .INDENT 3.5
  343. This is an expensive call, increasing CPU and RAM usage on the device. Use sparingly.
  344. .UNINDENT
  345. .UNINDENT
  346. .SS GET /rest/db/completion
  347. .sp
  348. Returns the completion percentage (0 to 100) for a given device and
  349. folder.Takes \fBdevice\fP and \fBfolder\fP parameters.
  350. .INDENT 0.0
  351. .INDENT 3.5
  352. .sp
  353. .nf
  354. .ft C
  355. {
  356. "completion": 0
  357. }
  358. .ft P
  359. .fi
  360. .UNINDENT
  361. .UNINDENT
  362. .sp
  363. \fBNOTE:\fP
  364. .INDENT 0.0
  365. .INDENT 3.5
  366. This is an expensive call, increasing CPU and RAM usage on the device. Use sparingly.
  367. .UNINDENT
  368. .UNINDENT
  369. .SS GET /rest/db/file
  370. .sp
  371. Returns most data available about a given file, including version and
  372. availability.
  373. .INDENT 0.0
  374. .INDENT 3.5
  375. .sp
  376. .nf
  377. .ft C
  378. {
  379. "availability": [
  380. "I6KAH76\-66SLLLB\-5PFXSOA\-UFJCDZC\-YAOMLEK\-CP2GB32\-BV5RQST\-3PSROAU"
  381. ],
  382. "global": {
  383. "flags": "0644",
  384. "localVersion": 3,
  385. "modified": "2015\-04\-20T22:20:45+09:00",
  386. "name": "util.go",
  387. "numBlocks": 1,
  388. "size": 9642,
  389. "version": [
  390. "5407294127585413568:1"
  391. ]
  392. },
  393. "local": {
  394. "flags": "0644",
  395. "localVersion": 4,
  396. "modified": "2015\-04\-20T22:20:45+09:00",
  397. "name": "util.go",
  398. "numBlocks": 1,
  399. "size": 9642,
  400. "version": [
  401. "5407294127585413568:1"
  402. ]
  403. }
  404. }
  405. .ft P
  406. .fi
  407. .UNINDENT
  408. .UNINDENT
  409. .SS GET /rest/db/ignores
  410. .sp
  411. Takes one parameter, \fBfolder\fP, and returns the content of the
  412. \fB\&.stignore\fP as the \fBignore\fP field. A second field, \fBpatterns\fP,
  413. provides a compiled version of all included ignore patterns in the form
  414. of regular expressions. Excluded items in the \fBpatterns\fP field have a
  415. nonstandard \fB(?exclude)\fP marker in front of the regular expression.
  416. .INDENT 0.0
  417. .INDENT 3.5
  418. .sp
  419. .nf
  420. .ft C
  421. {
  422. "ignore": [
  423. "/Backups"
  424. ],
  425. "patterns": [
  426. "(?i)^Backups$",
  427. "(?i)^Backups/.*$"
  428. ]
  429. }
  430. .ft P
  431. .fi
  432. .UNINDENT
  433. .UNINDENT
  434. .SS POST /rest/db/ignores
  435. .sp
  436. Expects a format similar to the output of \fBGET\fP call, but only
  437. containing the \fBignore\fP field (\fBpatterns\fP field should be omitted).
  438. It takes one parameter, \fBfolder\fP, and either updates the content of
  439. the \fB\&.stignore\fP echoing it back as a response, or returns an error.
  440. .SS GET /rest/db/need
  441. .sp
  442. Takes one parameter, \fBfolder\fP, and returns lists of files which are
  443. needed by this device in order for it to become in sync.
  444. .INDENT 0.0
  445. .INDENT 3.5
  446. .sp
  447. .nf
  448. .ft C
  449. {
  450. # Files currently being downloaded
  451. "progress": [
  452. {
  453. "flags": "0755",
  454. "localVersion": 6,
  455. "modified": "2015\-04\-20T23:06:12+09:00",
  456. "name": "ls",
  457. "size": 34640,
  458. "version": [
  459. "5157751870738175669:1"
  460. ]
  461. }
  462. ],
  463. # Files queued to be downloaded next (as per array order)
  464. "queued": [
  465. ...
  466. ],
  467. # Files to be downloaded after all queued files will be downloaded.
  468. # This happens when we start downloading files, and new files get added while we are downloading.
  469. "rest": [
  470. ...
  471. ]
  472. }
  473. .ft P
  474. .fi
  475. .UNINDENT
  476. .UNINDENT
  477. .SS POST /rest/db/prio
  478. .sp
  479. Moves the file to the top of the download queue.
  480. .INDENT 0.0
  481. .INDENT 3.5
  482. .sp
  483. .nf
  484. .ft C
  485. curl \-X POST http://127.0.0.1:8384/rest/db/prio?folder=default&file=foo/bar
  486. .ft P
  487. .fi
  488. .UNINDENT
  489. .UNINDENT
  490. .sp
  491. Response contains the same output as \fBGET /rest/db/need\fP
  492. .SS POST /rest/db/scan
  493. .sp
  494. Request immediate rescan of a folder, or a specific path within a folder.
  495. Takes the mandatory parameter \fIfolder\fP (folder ID), an optional parameter
  496. \fBsub\fP (path relative to the folder root) and an optional parameter \fBnext\fP\&. If
  497. \fBsub\fP is omitted or empty, the entire folder is scanned for changes, otherwise
  498. only the given path (and children, in case it\(aqs a directory) is scanned. The
  499. \fBnext\fP argument delays Syncthing\(aqs automated rescan interval for a given
  500. amount of seconds.
  501. .sp
  502. Requesting scan of a path that no longer exists, but previously did, is
  503. valid and will result in Syncthing noticing the deletion of the path in
  504. question.
  505. .sp
  506. Returns status 200 and no content upon success, or status 500 and a
  507. plain text error if an error occurred during scanning.
  508. .INDENT 0.0
  509. .INDENT 3.5
  510. .sp
  511. .nf
  512. .ft C
  513. curl \-X POST http://127.0.0.1:8384/rest/db/scan?folder=default&sub=foo/bar
  514. .ft P
  515. .fi
  516. .UNINDENT
  517. .UNINDENT
  518. .SS GET /rest/db/status
  519. .sp
  520. Returns information about the current status of a folder.
  521. .sp
  522. Parameters: \fBfolder\fP, the ID of a folder.
  523. .INDENT 0.0
  524. .INDENT 3.5
  525. .sp
  526. .nf
  527. .ft C
  528. {
  529. # latest version according to cluster:
  530. "globalBytes": 13173473780,
  531. "globalDeleted": 1847,
  532. "globalFiles": 42106,
  533. # what we have locally:
  534. "localBytes": 13173473780,
  535. "localDeleted": 1847,
  536. "localFiles": 42106,
  537. # which part of what we have locally is the latest cluster version:
  538. "inSyncBytes": 13173473780,
  539. "inSyncFiles": 42106,
  540. # which part of what we have locally should be fetched from the cluster:
  541. "needBytes": 0,
  542. "needFiles": 0,
  543. # various other metadata
  544. "ignorePatterns": true,
  545. "invalid": "",
  546. "state": "idle",
  547. "stateChanged": "2015\-03\-16T21:47:28.750853241+01:00",
  548. "version": 71989
  549. }
  550. .ft P
  551. .fi
  552. .UNINDENT
  553. .UNINDENT
  554. .sp
  555. \fBNOTE:\fP
  556. .INDENT 0.0
  557. .INDENT 3.5
  558. This is an expensive call, increasing CPU and RAM usage on the device. Use sparingly.
  559. .UNINDENT
  560. .UNINDENT
  561. .SH STATISTICS ENDPOINTS
  562. .SS GET /rest/stats/device
  563. .sp
  564. Returns general statistics about devices. Currently, only contains the
  565. time the device was last seen.
  566. .INDENT 0.0
  567. .INDENT 3.5
  568. .sp
  569. .nf
  570. .ft C
  571. $ curl \-s http://localhost:8384/rest/stats/device | json
  572. {
  573. "P56IOI7\-MZJNU2Y\-IQGDREY\-DM2MGTI\-MGL3BXN\-PQ6W5BM\-TBBZ4TJ\-XZWICQ2": {
  574. "lastSeen" : "2015\-04\-18T11:21:31.3256277+01:00"
  575. }
  576. }
  577. .ft P
  578. .fi
  579. .UNINDENT
  580. .UNINDENT
  581. .SS GET /rest/stats/folder
  582. .sp
  583. Returns general statistics about folders. Currently, only contains the
  584. last synced file.
  585. .INDENT 0.0
  586. .INDENT 3.5
  587. .sp
  588. .nf
  589. .ft C
  590. $ curl \-s http://localhost:8384/rest/stats/folder | json
  591. {
  592. "folderid" : {
  593. "lastFile" : {
  594. "filename" : "file/name",
  595. "at" : "2015\-04\-16T22:04:18.3066971+01:00"
  596. }
  597. }
  598. }
  599. .ft P
  600. .fi
  601. .UNINDENT
  602. .UNINDENT
  603. .SH MISC SERVICES ENDPOINTS
  604. .SS GET /rest/svc/deviceid
  605. .sp
  606. Verifies and formats a device ID. Accepts all currently valid formats
  607. (52 or 56 characters with or without separators, upper or lower case,
  608. with trivial substitutions). Takes one parameter, \fBid\fP, and returns
  609. either a valid device ID in modern format, or an error.
  610. .INDENT 0.0
  611. .INDENT 3.5
  612. .sp
  613. .nf
  614. .ft C
  615. $ curl \-s http://localhost:8384/rest/svc/deviceid?id=1234 | json
  616. {
  617. "error": "device ID invalid: incorrect length"
  618. }
  619. $ curl \-s http://localhost:8384/rest/svc/deviceid?id=p56ioi7m\-\-zjnu2iq\-gdr\-eydm\-2mgtmgl3bxnpq6w5btbbz4tjxzwicq | json
  620. {
  621. "id": "P56IOI7\-MZJNU2Y\-IQGDREY\-DM2MGTI\-MGL3BXN\-PQ6W5BM\-TBBZ4TJ\-XZWICQ2"
  622. }
  623. .ft P
  624. .fi
  625. .UNINDENT
  626. .UNINDENT
  627. .SS GET /rest/svc/lang
  628. .sp
  629. Returns a list of canonicalized localization codes, as picked up from
  630. the \fBAccept\-Language\fP header sent by the browser.
  631. .INDENT 0.0
  632. .INDENT 3.5
  633. .sp
  634. .nf
  635. .ft C
  636. ["sv_sv","sv","en_us","en"]
  637. .ft P
  638. .fi
  639. .UNINDENT
  640. .UNINDENT
  641. .SS GET /rest/svc/report
  642. .sp
  643. Returns the data sent in the anonymous usage report.
  644. .INDENT 0.0
  645. .INDENT 3.5
  646. .sp
  647. .nf
  648. .ft C
  649. {
  650. "folderMaxFiles": 42106,
  651. "folderMaxMiB": 12563,
  652. "longVersion": "syncthing v0.10.27+5\-g36c93b7 (go1.4 darwin\-amd64 default) jb@syno 2015\-03\-16 20:43:34 UTC",
  653. "memorySize": 16384,
  654. "memoryUsageMiB": 41,
  655. "numDevices": 10,
  656. "numFolders": 4,
  657. "platform": "darwin\-amd64",
  658. "sha256Perf": 122.38,
  659. "totFiles": 45180,
  660. "totMiB": 18151,
  661. "uniqueID": "6vulmdGw",
  662. "version": "v0.10.27+5\-g36c93b7"
  663. }
  664. .ft P
  665. .fi
  666. .UNINDENT
  667. .UNINDENT
  668. .SH AUTHOR
  669. The Syncthing Authors
  670. .SH COPYRIGHT
  671. 2015, The Syncthing Authors
  672. .\" Generated by docutils manpage writer.
  673. .