Oms API GET list of database cleanup logs - openmpp/openmpp.github.io GitHub Wiki

User can reduce database file size by invoking database cleanup script. Console output from cleanup script captured into the log file. This method allow to get the list of database cleanup log files. Use GET database cleanup log file method to get the content of the log file by name.

Method:

GET /api/admin/db-cleanup/log-all

Example:

curl http://localhost:4040/api/admin/db-cleanup/log-all
[{
    "DbName": "OncoSimX-allcancers.sqlite",
    "LogStamp": "2024_03_05_01_08_24_223",
    "LogFileName": "db-cleanup.2024_03_05_01_08_24_223.OncoSimX-allcancers.sqlite.console.txt"
  }, {
    "DbName": "modelOne.sqlite",
    "LogStamp": "2024_03_05_01_31_56_780",
    "LogFileName": "db-cleanup.2024_03_05_01_31_56_780.modelOne.sqlite.console.txt"
  }, {
    "DbName": "RiskPaths.sqlite",
    "LogStamp": "2024_03_09_00_15_39_343",
    "LogFileName": "db-cleanup.2024_03_09_00_15_39_343.RiskPaths.sqlite.console.txt"
  }, {
    "DbName": "RiskPaths.sqlite",
    "LogStamp": "2024_03_09_00_15_49_684",
    "LogFileName": "db-cleanup.2024_03_09_00_15_49_684.RiskPaths.sqlite.console.txt"
  }
]
⚠️ **GitHub.com Fallback** ⚠️