コンテンツにスキップ

model_store.model.get_info

モデルストアに登録されているモデルの情報を取得します。

パラメータ

  • model_store_ddc: string -- モデルストア名。
  • conds: condition -- 取得条件。
  • offset: integer -- 取得開始位置。
  • limit: integer -- 取得件数。
  • order: string -- 結果の並び替えの基準にするカラム名。

戻り値

モデル情報が配列として戻されます。 詳細は model_info を参照してください。

実行例

リクエストデータ

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "model_store.model.get_info",
  "params": {
    "model_store_ddc": "my_store",
    "conds": {
      "=": ["model_state", 10]
    },
    "offset": 0,
    "limit": 1,
    "order": "-start_datetime"
  }
}

リクエスト実行

curl -H "Content-type: application/json" \
     -H "APIKey: 9c6f4574-89d1-4e3c-8af7-2549dc217fcf" \
     -H "Secret: aef8caingiej1ieNieJ3Phool4maeGohcies" \
     -X POST -d "@request.json" \
     https://localhost/api/v2/model_store/jsonrpc

レスポンス

{
  "result": [
    {
      "start_datetime": {
        "_type": "datetime",
        "val": "2025-07-11T14:35:29.520625+09:00"
      },
      "end_datetime": {
        "_type": "datetime",
        "val": "2025-07-11T14:35:29.520628+09:00"
      },
      "location": "010100000000000000000000000000000000000000",
      "tenant_id": "id-party",
      "model_id": "b9817ad7-3c69-4beb-ba45-633e139a59aa",
      "model_kind": "my_model",
      "model_description": "this is my sample model",
      "model_meta": {
        "version": "1",
        "created": "2025-07-01 01:02:03",
        "loss": 0.123
      },
      "model_state": 10,
      "model_hash": "e9a5b77d4b6794a47ad0ba1682185148",
      "model_size": 17,
      "round": 0,
      "hop_count": 0
    }
  ],
  "id": 1,
  "jsonrpc": "2.0"
}