コンテンツにスキップ

fl.create_upstream_info

モデルストアに、モデルのフィードバック先となる上流ノードのモデルストアを登録します。

パラメータ

  • model_store_ddc: string -- モデルストア名。
  • upstream_endpoint: string -- 上流ノードのエンドポイント。
  • upstream_apikey: string -- 上流ノードに接続するための API キー。
  • upstream_secret: string -- 上流ノードに接続するためのシークレット。
  • upstream_model_store_ddc: string -- 上流ノードのモデルストア名。

戻り値

モデルストアの上流情報が戻されます。 詳細は upstream_info を参照してください。

実行例

リクエストデータ

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "fl.create_upstream_info",
  "params": {
    "model_store_ddc": "my_store",
    "upstream_endpoint": "https://localhost/api/v2/fl/jsonrpc",
    "upstream_apikey": "9c6f4574-89d1-4e3c-8af7-2549dc217fcf",
    "upstream_secret": "aef8caingiej1ieNieJ3Phool4maeGohcies",
    "upstream_model_store_ddc": "upstream_store"
  }
}

リクエスト実行

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/fl/jsonrpc

レスポンス

{
  "result": {
    "id": 4,
    "model_store_ddc_id": null,
    "model_store_dataset_id": 4,
    "upstream_endpoint": "http://localhost/api/v2/fl/jsonrpc",
    "upstream_apikey": "9c6f4574-89d1-4e3c-8af7-2549dc217fcf",
    "upstream_secret": "aef8caingiej1ieNieJ3Phool4maeGohcies",
    "upstream_model_store_ddc": "upstream_store",
    "alias": "default",
    "description": "",
    "enabled": true,
    "created_at": {
      "_type": "datetime",
      "val": "2025-07-10T14:19:59.186408+09:00"
    },
    "updated_at": {
      "_type": "datetime",
      "val": "2025-07-10T14:19:59.186408+09:00"
    }
  },
  "id": 1,
  "jsonrpc": "2.0"
}