Skip to main content
Perform a self-test on the specified machine.
This is a host method, used for managing machines you are renting out on Vast.ai.

Signature

VastAI.self_test_machine(
    machine_id: str,
    debugging: bool = False,
    explain: bool = False,
    raw: bool = False,
    url: str = "https://console.vast.ai",
    retry: int = 3,
    ignore_requirements: bool = False
) -> str

Parameters

machine_id
str
required
machine_id
debugging
bool
default:"False"
debugging
explain
bool
default:"False"
explain
raw
bool
default:"False"
raw
url
str
default:"\"https://console.vast.ai\""
url
retry
int
default:"3"
retry
ignore_requirements
bool
default:"False"
ignore_requirements

Returns

str — Result from the API call.

Example

from vastai import VastAI

client = VastAI(api_key="YOUR_API_KEY")
result = client.self_test_machine(machine_id="...")
print(result)