This is a host method, used for managing machines you are renting out on Vast.ai.
Signature
Parameters
int
required
id
Optional[float]
sdate
Optional[float]
duration
Returns
str, Result from the API call.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
VastAI.schedule_maint(id: int, sdate: Optional[float] = None, duration: Optional[float] = None) -> str
str, Result from the API call.
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
result = client.schedule_maint(id=12345)
print(result)