Oms API GET past file tree - openmpp/openmpp.github.io GitHub Wiki

GET the list of past model runs job files.

This method retrun the list of all model runs from shadow history job/past/ folder. It return JSON array of objects based on parsed past/yyyy_mm/ file names and directory names. Use IsDir = true property to filter out directories (see example below).

It is available only if oms started with "global admin" privileges, for example:

oms -l localhost:4040 -oms.JobDir job -oms.AdminAll

Method:

GET /api/admin-all/job/past/file-tree

Call example:

http://localhost:4040/api/admin-all/job/past/file-tree

Example:

[
  {
    "YearMonth": "2024_12",
    "IsDir": true,
    "Oms": "",
    "SubmitStamp": "",
    "ModelName": "",
    "ModelDigest": "",
    "RunStamp": "",
    "Cpu": 0,
    "Mem": 0,
    "IsMpi": false,
    "TotalSec": 0,
    "Status": ""
  },
  {
    "YearMonth": "2025_12",
    "IsDir": false,
    "Oms": "_4040",
    "SubmitStamp": "2025_12_30_19_24_47_235",
    "ModelName": "RiskPaths",
    "ModelDigest": "43976e100f44b6c4e2968fc74442a745",
    "RunStamp": "2025_12_30_19_45_38_715",
    "Cpu": 6,
    "Mem": 0,
    "IsMpi": true,
    "TotalSec": 968,
    "Status": "success"
  },
  {
    "YearMonth": "2025_12",
    "IsDir": false,
    "Oms": "_4040",
    "SubmitStamp": "2025_12_30_19_44_47_839",
    "ModelName": "RiskPaths",
    "ModelDigest": "43976e100f44b6c4e2968fc74442a745",
    "RunStamp": "2025_12_30_23_45_32_673",
    "Cpu": 6,
    "Mem": 0,
    "IsMpi": true,
    "TotalSec": 927,
    "Status": "success"
  },
  {
    "YearMonth": "2026_01",
    "IsDir": true,
    "Oms": "",
    "SubmitStamp": "",
    "ModelName": "",
    "ModelDigest": "",
    "RunStamp": "",
    "Cpu": 0,
    "Mem": 0,
    "IsMpi": false,
    "TotalSec": 0,
    "Status": ""
  },
  {
    "YearMonth": "2026_01",
    "IsDir": false,
    "Oms": "alice_4042",
    "SubmitStamp": "2026_01_29_02_01_48_112",
    "ModelName": "RiskPaths",
    "ModelDigest": "43976e100f44b6c4e2968fc74442a745",
    "RunStamp": "2026_01_29_02_02_24_114",
    "Cpu": 6,
    "Mem": 0,
    "IsMpi": true,
    "TotalSec": 3,
    "Status": "success"
  },
  {
    "YearMonth": "2026_01",
    "IsDir": false,
    "Oms": "alice_4042",
    "SubmitStamp": "2026_01_29_16_02_23_770",
    "ModelName": "RiskPaths",
    "ModelDigest": "43976e100f44b6c4e2968fc74442a745",
    "RunStamp": "2026_01_29_16_04_03_936",
    "Cpu": 3,
    "Mem": 0,
    "IsMpi": true,
    "TotalSec": 1713,
    "Status": "success"
  },
  {
    "YearMonth": "2026_01",
    "IsDir": false,
    "Oms": "admin_4040",
    "SubmitStamp": "2026_01_29_16_03_28_156",
    "ModelName": "RiskPaths",
    "ModelDigest": "43976e100f44b6c4e2968fc74442a745",
    "RunStamp": "2026_01_29_16_03_56_663",
    "Cpu": 3,
    "Mem": 0,
    "IsMpi": true,
    "TotalSec": 1636,
    "Status": "success"
  },
  {
    "YearMonth": "2026_01",
    "IsDir": false,
    "Oms": "admin_4040",
    "SubmitStamp": "2026_01_29_18_59_22_839",
    "ModelName": "modelOne",
    "ModelDigest": "_201208171604590148_",
    "RunStamp": "2026_01_29_18_59_22_839",
    "Cpu": 4,
    "Mem": 0,
    "IsMpi": true,
    "TotalSec": 0,
    "Status": "kill"
  }
]
⚠️ **GitHub.com Fallback** ⚠️