接口 13

GET/api/v1/runrun_info
200dict[str, object]

Run info

处理器run_info
签名async run_info() -> JSONResponse
源码L2259
REQUEST
curl -X GET \
  http://127.0.0.1:8000/api/v1/run
GET/api/v1/run/artifactsrun_artifacts
200dict[str, object]

Run artifacts

处理器run_artifacts
签名async run_artifacts(slot_generation: _SlotGenerationHeader=None) -> JSONResponse
源码L2299
REQUEST
curl -X GET \
  http://127.0.0.1:8000/api/v1/run/artifacts
GET/api/v1/run/artifacts/{artifact_path:path}run_artifact
200dict[str, object]

Run 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
REQUEST
curl -X GET \
  http://127.0.0.1:8000/api/v1/run/artifacts/{artifact_path:path}
POST/api/v1/run/closelifecycle_close
202dict[str, object]

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
REQUEST
curl -X POST \
  http://127.0.0.1:8000/api/v1/run/close \
  -H 'Content-Type: application/json' \
  -d @request.json
POST/api/v1/run/launchrun_launch
202dict[str, object]

Run launch

处理器run_launch
签名async run_launch(payload: RunLaunchRequest, idempotency_key: _RequiredIdempotencyHeader) -> JSONResponse
源码L2517
REQUEST
curl -X POST \
  http://127.0.0.1:8000/api/v1/run/launch \
  -H 'Content-Type: application/json' \
  -d @request.json
POST/api/v1/run/pauselifecycle_pause
202dict[str, object]

Lifecycle pause

处理器lifecycle_pause
签名async lifecycle_pause(payload: _EmptyBody=None, idempotency_key: _IdempotencyHeader=None, slot_generation: _SlotGenerationHeader=None) -> JSONResponse
源码L2548
REQUEST
curl -X POST \
  http://127.0.0.1:8000/api/v1/run/pause \
  -H 'Content-Type: application/json' \
  -d @request.json
POST/api/v1/run/preparelifecycle_prepare
202dict[str, object]

Lifecycle prepare

处理器lifecycle_prepare
签名async lifecycle_prepare(payload: _EmptyBody=None, idempotency_key: _IdempotencyHeader=None, slot_generation: _SlotGenerationHeader=None) -> JSONResponse
源码L2530
REQUEST
curl -X POST \
  http://127.0.0.1:8000/api/v1/run/prepare \
  -H 'Content-Type: application/json' \
  -d @request.json
POST/api/v1/run/resetlifecycle_reset
202dict[str, object]

Lifecycle reset

处理器lifecycle_reset
签名async lifecycle_reset(payload: _EmptyBody=None, idempotency_key: _IdempotencyHeader=None, slot_generation: _SlotGenerationHeader=None) -> JSONResponse
源码L2580
REQUEST
curl -X POST \
  http://127.0.0.1:8000/api/v1/run/reset \
  -H 'Content-Type: application/json' \
  -d @request.json
POST/api/v1/run/resumelifecycle_resume
202dict[str, object]

Lifecycle resume

处理器lifecycle_resume
签名async lifecycle_resume(payload: _EmptyBody=None, idempotency_key: _IdempotencyHeader=None, slot_generation: _SlotGenerationHeader=None) -> JSONResponse
源码L2557
REQUEST
curl -X POST \
  http://127.0.0.1:8000/api/v1/run/resume \
  -H 'Content-Type: application/json' \
  -d @request.json
GET/api/v1/run/snapshotrun_snapshot
200dict[str, object]

Run snapshot

处理器run_snapshot
签名async run_snapshot() -> JSONResponse
源码L2373
REQUEST
curl -X GET \
  http://127.0.0.1:8000/api/v1/run/snapshot
POST/api/v1/run/startlifecycle_start
202dict[str, object]

Lifecycle start

处理器lifecycle_start
签名async lifecycle_start(payload: _EmptyBody=None, idempotency_key: _IdempotencyHeader=None, slot_generation: _SlotGenerationHeader=None) -> JSONResponse
源码L2539
REQUEST
curl -X POST \
  http://127.0.0.1:8000/api/v1/run/start \
  -H 'Content-Type: application/json' \
  -d @request.json
POST/api/v1/run/steplifecycle_step
202dict[str, object]

Lifecycle step

处理器lifecycle_step
签名async lifecycle_step(payload: _StepBody=None, idempotency_key: _IdempotencyHeader=None, slot_generation: _SlotGenerationHeader=None) -> JSONResponse
源码L2566
REQUEST
curl -X POST \
  http://127.0.0.1:8000/api/v1/run/step \
  -H 'Content-Type: application/json' \
  -d @request.json
POST/api/v1/run/stoplifecycle_stop
202dict[str, object]

Lifecycle stop

处理器lifecycle_stop
签名async lifecycle_stop(payload: _EmptyBody=None, idempotency_key: _IdempotencyHeader=None, slot_generation: _SlotGenerationHeader=None) -> JSONResponse
源码L2589
REQUEST
curl -X POST \
  http://127.0.0.1:8000/api/v1/run/stop \
  -H 'Content-Type: application/json' \
  -d @request.json