You can append to any HTTP API with &pretty=y to see a formatted json output.

Volume Server

Upload File

  1. curl -F file=@/home/chris/myphoto.jpg http://127.0.0.1:8080/3,01637037d6
  2. {"size": 43234}

The size returned is the size stored on SeaweedFS, sometimes the file is automatically gzipped based on the mime type.

Upload File Directly

  1. curl -F file=@/home/chris/myphoto.jpg http://localhost:9333/submit
  2. {"fid":"3,01fbe0dc6f1f38","fileName":"myphoto.jpg","fileUrl":"localhost:8080/3,01fbe0dc6f1f38","size":68231}

This API is just for convenience. The master server would get a file id and store the file to the right volume server.It is a convenient API and does not support different parameters when assigning file id. (or you can add the support and make a pull request.)

Delete File

  1. curl -X DELETE http://127.0.0.1:8080/3,01637037d6

View Manifest File Content for chunked big file

  1. curl http://127.0.0.1:8080/3,01637037d6?cm=false

Check Volume Server Status

  1. curl "http://localhost:8080/status?pretty=y"
  2. {
  3. "Version": "0.34",
  4. "Volumes": [
  5. {
  6. "Id": 1,
  7. "Size": 1319688,
  8. "RepType": "000",
  9. "Version": 2,
  10. "FileCount": 276,
  11. "DeleteCount": 0,
  12. "DeletedByteCount": 0,
  13. "ReadOnly": false
  14. },
  15. {
  16. "Id": 2,
  17. "Size": 1040962,
  18. "RepType": "000",
  19. "Version": 2,
  20. "FileCount": 291,
  21. "DeleteCount": 0,
  22. "DeletedByteCount": 0,
  23. "ReadOnly": false
  24. },
  25. {
  26. "Id": 3,
  27. "Size": 1486334,
  28. "RepType": "000",
  29. "Version": 2,
  30. "FileCount": 301,
  31. "DeleteCount": 2,
  32. "DeletedByteCount": 0,
  33. "ReadOnly": false
  34. },
  35. {
  36. "Id": 4,
  37. "Size": 8953592,
  38. "RepType": "000",
  39. "Version": 2,
  40. "FileCount": 320,
  41. "DeleteCount": 2,
  42. "DeletedByteCount": 0,
  43. "ReadOnly": false
  44. },
  45. {
  46. "Id": 5,
  47. "Size": 70815851,
  48. "RepType": "000",
  49. "Version": 2,
  50. "FileCount": 309,
  51. "DeleteCount": 1,
  52. "DeletedByteCount": 0,
  53. "ReadOnly": false
  54. },
  55. {
  56. "Id": 6,
  57. "Size": 1483131,
  58. "RepType": "000",
  59. "Version": 2,
  60. "FileCount": 301,
  61. "DeleteCount": 1,
  62. "DeletedByteCount": 0,
  63. "ReadOnly": false
  64. },
  65. {
  66. "Id": 7,
  67. "Size": 46797832,
  68. "RepType": "000",
  69. "Version": 2,
  70. "FileCount": 292,
  71. "DeleteCount": 0,
  72. "DeletedByteCount": 0,
  73. "ReadOnly": false
  74. }
  75. ]
  76. }