GET/api/v1/runrun_info
Run info
| 处理器 | run_info |
|---|---|
| 签名 | async run_info() -> JSONResponse |
| 源码 | L2259 |
REQUEST
curl -X GET \
http://127.0.0.1:8000/api/v1/runServer 当前 运行生命周期 接口;路径、方法、状态码与处理器签名直接来自 0.8.4 源码。
源码 packages/fastsim-plugin-server/src/fastsim_plugin_server/application.pyRun info
| 处理器 | run_info |
|---|---|
| 签名 | async run_info() -> JSONResponse |
| 源码 | L2259 |
curl -X GET \
http://127.0.0.1:8000/api/v1/runRun artifacts
| 处理器 | run_artifacts |
|---|---|
| 签名 | async run_artifacts(slot_generation: _SlotGenerationHeader=None) -> JSONResponse |
| 源码 | L2299 |
curl -X GET \
http://127.0.0.1:8000/api/v1/run/artifactsRun artifact
| 处理器 | run_artifact |
|---|---|
| 签名 | async run_artifact(artifact_path: str=Path(min_length=1, max_length=4096), slot_generation: _SlotGenerationHeader=None, range_header: _RangeHeader=None) -> Response |
| 源码 | L2314 |
curl -X GET \
http://127.0.0.1:8000/api/v1/run/artifacts/{artifact_path:path}Terminally close the owned Run while preserving operation history.
| 处理器 | lifecycle_close |
|---|---|
| 签名 | async lifecycle_close(payload: _EmptyBody=None, idempotency_key: _IdempotencyHeader=None, slot_generation: _SlotGenerationHeader=None) -> JSONResponse |
| 源码 | L2598 |
curl -X POST \
http://127.0.0.1:8000/api/v1/run/close \
-H 'Content-Type: application/json' \
-d @request.jsonRun launch
| 处理器 | run_launch |
|---|---|
| 签名 | async run_launch(payload: RunLaunchRequest, idempotency_key: _RequiredIdempotencyHeader) -> JSONResponse |
| 源码 | L2517 |
curl -X POST \
http://127.0.0.1:8000/api/v1/run/launch \
-H 'Content-Type: application/json' \
-d @request.jsonLifecycle pause
| 处理器 | lifecycle_pause |
|---|---|
| 签名 | async lifecycle_pause(payload: _EmptyBody=None, idempotency_key: _IdempotencyHeader=None, slot_generation: _SlotGenerationHeader=None) -> JSONResponse |
| 源码 | L2548 |
curl -X POST \
http://127.0.0.1:8000/api/v1/run/pause \
-H 'Content-Type: application/json' \
-d @request.jsonLifecycle prepare
| 处理器 | lifecycle_prepare |
|---|---|
| 签名 | async lifecycle_prepare(payload: _EmptyBody=None, idempotency_key: _IdempotencyHeader=None, slot_generation: _SlotGenerationHeader=None) -> JSONResponse |
| 源码 | L2530 |
curl -X POST \
http://127.0.0.1:8000/api/v1/run/prepare \
-H 'Content-Type: application/json' \
-d @request.jsonLifecycle reset
| 处理器 | lifecycle_reset |
|---|---|
| 签名 | async lifecycle_reset(payload: _EmptyBody=None, idempotency_key: _IdempotencyHeader=None, slot_generation: _SlotGenerationHeader=None) -> JSONResponse |
| 源码 | L2580 |
curl -X POST \
http://127.0.0.1:8000/api/v1/run/reset \
-H 'Content-Type: application/json' \
-d @request.jsonLifecycle resume
| 处理器 | lifecycle_resume |
|---|---|
| 签名 | async lifecycle_resume(payload: _EmptyBody=None, idempotency_key: _IdempotencyHeader=None, slot_generation: _SlotGenerationHeader=None) -> JSONResponse |
| 源码 | L2557 |
curl -X POST \
http://127.0.0.1:8000/api/v1/run/resume \
-H 'Content-Type: application/json' \
-d @request.jsonRun snapshot
| 处理器 | run_snapshot |
|---|---|
| 签名 | async run_snapshot() -> JSONResponse |
| 源码 | L2373 |
curl -X GET \
http://127.0.0.1:8000/api/v1/run/snapshotLifecycle start
| 处理器 | lifecycle_start |
|---|---|
| 签名 | async lifecycle_start(payload: _EmptyBody=None, idempotency_key: _IdempotencyHeader=None, slot_generation: _SlotGenerationHeader=None) -> JSONResponse |
| 源码 | L2539 |
curl -X POST \
http://127.0.0.1:8000/api/v1/run/start \
-H 'Content-Type: application/json' \
-d @request.jsonLifecycle step
| 处理器 | lifecycle_step |
|---|---|
| 签名 | async lifecycle_step(payload: _StepBody=None, idempotency_key: _IdempotencyHeader=None, slot_generation: _SlotGenerationHeader=None) -> JSONResponse |
| 源码 | L2566 |
curl -X POST \
http://127.0.0.1:8000/api/v1/run/step \
-H 'Content-Type: application/json' \
-d @request.jsonLifecycle stop
| 处理器 | lifecycle_stop |
|---|---|
| 签名 | async lifecycle_stop(payload: _EmptyBody=None, idempotency_key: _IdempotencyHeader=None, slot_generation: _SlotGenerationHeader=None) -> JSONResponse |
| 源码 | L2589 |
curl -X POST \
http://127.0.0.1:8000/api/v1/run/stop \
-H 'Content-Type: application/json' \
-d @request.json