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
url
str
default:"\"https://console.vast.ai\""
url
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)