Skip to content

Hosts API

Generated from servtuner commit 5b46cdad0e5c.

Lists hosts.

Status Meaning Body
200 Successful Response array of HostResource

Registers a host: a GPU machine outside Kubernetes, with its price.

Request body: HostCreate (application/json)

Status Meaning Body
201 Successful Response HostResource

Refused (409) while a managed target names the host.

Parameter In Type Required Description
host_id path string Yes
Status Meaning Body
204 Successful Response None
422 Validation Error HTTPValidationError

Returns one host.

Parameter In Type Required Description
host_id path string Yes
Status Meaning Body
200 Successful Response HostResource
422 Validation Error HTTPValidationError

Replaces a host.

Parameter In Type Required Description
host_id path string Yes

Request body: HostCreate (application/json)

Status Meaning Body
200 Successful Response HostResource
422 Validation Error HTTPValidationError

Read the machine through the launcher of a host target on it (GET /machine) and keep it as the host’s hardware. 422 when no host target names the host.

Parameter In Type Required Description
host_id path string Yes
Status Meaning Body
200 Successful Response HostResource
422 Validation Error HTTPValidationError