Managed targets API
Generated from servtuner commit 5b46cdad0e5c.
GET /managed-targets
Section titled “GET /managed-targets”Lists managed targets.
| Status | Meaning | Body |
|---|---|---|
200 |
Successful Response | array of ManagedTargetResource |
POST /managed-targets
Section titled “POST /managed-targets”Store a vLLM template in a tuning namespace (the chart’s rbac.tuning.namespaces).
Request body: ManagedTargetCreate (application/json)
| Status | Meaning | Body |
|---|---|---|
201 |
Successful Response | ManagedTargetResource |
DELETE /managed-targets/{target_id}
Section titled “DELETE /managed-targets/{target_id}”Tear down what servtuner deployed for it (the model cache stays), then forget it.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
target_id |
path | string |
Yes |
| Status | Meaning | Body |
|---|---|---|
204 |
Successful Response | None |
422 |
Validation Error | HTTPValidationError |
GET /managed-targets/{target_id}
Section titled “GET /managed-targets/{target_id}”Returns one managed target.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
target_id |
path | string |
Yes |
| Status | Meaning | Body |
|---|---|---|
200 |
Successful Response | ManagedTargetResource |
422 |
Validation Error | HTTPValidationError |
PUT /managed-targets/{target_id}
Section titled “PUT /managed-targets/{target_id}”Replaces a managed target. Refused while an active session uses it.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
target_id |
path | string |
Yes |
Request body: ManagedTargetCreate (application/json)
| Status | Meaning | Body |
|---|---|---|
200 |
Successful Response | ManagedTargetResource |
422 |
Validation Error | HTTPValidationError |
POST /managed-targets/{target_id}/boot-probe
Section titled “POST /managed-targets/{target_id}/boot-probe”Poll the deployed configuration as a boot probe: its KV capacity, or why it did not boot (a tuningBootResult for servtuner propose). No result while it is still starting.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
target_id |
path | string |
Yes |
Request body: BootProbeRequest (application/json)
| Status | Meaning | Body |
|---|---|---|
200 |
Successful Response | BootProbeView |
422 |
Validation Error | HTTPValidationError |
POST /managed-targets/{target_id}/check-launcher
Section titled “POST /managed-targets/{target_id}/check-launcher”A host target’s launcher: reached, token accepted, and what vLLM is doing there. Read-only, so it is allowed while a session tunes the target.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
target_id |
path | string |
Yes |
| Status | Meaning | Body |
|---|---|---|
200 |
Successful Response | LauncherCheckView |
422 |
Validation Error | HTTPValidationError |
DELETE /managed-targets/{target_id}/credentials/{slot}
Section titled “DELETE /managed-targets/{target_id}/credentials/{slot}”Clears a credential.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
target_id |
path | string |
Yes | |
slot |
path | string |
Yes |
| Status | Meaning | Body |
|---|---|---|
204 |
Successful Response | None |
422 |
Validation Error | HTTPValidationError |
PUT /managed-targets/{target_id}/credentials/{slot}
Section titled “PUT /managed-targets/{target_id}/credentials/{slot}”A host target’s launcher_token or api_key: a pasted value servtuner keeps in a Secret it owns, or a Secret you name. Write-only: no route ever returns the value.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
target_id |
path | string |
Yes | |
slot |
path | string |
Yes |
Request body: CredentialInput (application/json)
| Status | Meaning | Body |
|---|---|---|
204 |
Successful Response | None |
422 |
Validation Error | HTTPValidationError |
POST /managed-targets/{target_id}/deploy
Section titled “POST /managed-targets/{target_id}/deploy”Apply the target with these vLLM knobs. Poll readiness before starting a run.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
target_id |
path | string |
Yes |
Request body: DeployRequest (application/json)
| Status | Meaning | Body |
|---|---|---|
202 |
Successful Response | ManagedTargetResource |
422 |
Validation Error | HTTPValidationError |
GET /managed-targets/{target_id}/logs
Section titled “GET /managed-targets/{target_id}/logs”The end of vLLM’s log: the newest pod’s (a crash-looping one’s last exit), or the host launcher’s. Read-only, so it is allowed while a session tunes the target.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
target_id |
path | string |
Yes | |
tail_lines |
query | integer |
No | ≥ 1; ≤ 1000 Default: 200. |
| Status | Meaning | Body |
|---|---|---|
200 |
Successful Response | LogView |
422 |
Validation Error | HTTPValidationError |
GET /managed-targets/{target_id}/readiness
Section titled “GET /managed-targets/{target_id}/readiness”One readiness poll: pending, ready, infeasible (a configuration result) or failed.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
target_id |
path | string |
Yes |
| Status | Meaning | Body |
|---|---|---|
200 |
Successful Response | ReadinessView |
422 |
Validation Error | HTTPValidationError |
POST /managed-targets/{target_id}/scale-down
Section titled “POST /managed-targets/{target_id}/scale-down”Free the GPU: the Deployment goes to 0 replicas; the objects and cache stay.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
target_id |
path | string |
Yes |
| Status | Meaning | Body |
|---|---|---|
204 |
Successful Response | None |
422 |
Validation Error | HTTPValidationError |