Oms API POST service refresh disk use - openmpp/openmpp.github.io GitHub Wiki

POST refresh disk space usage info.

This method can be used to refersh disk usage info on the server. Server periodically scan disk storage to GET disk usage state. It is a slow background process and disk usage info may be updated only every 2-3 times per hour. By using this method you can force the server to scan disk usage immediately.

Method:

POST /api/service/disk-use/refersh

Call example:

curl -v -X POST http://localhost:4040/api/service/disk-use/refersh

Example:

curl -v -X POST http://localhost:4040/api/service/disk-use/refresh

*   Trying [::1]:4040...
* Connected to localhost (::1) port 4040
> POST /api/service/disk-use/refresh HTTP/1.1
> Host: localhost:4040
> User-Agent: curl/8.4.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Content-Location: /api/service/disk-use/refresh/true
< Date: Sat, 10 Feb 2024 08:27:59 GMT
< Content-Length: 0
<
* Connection #0 to host localhost left intact
⚠️ **GitHub.com Fallback** ⚠️