Signature
Parameters
int
required
id
Optional[int]
template_id
Optional[str]
template_hash_id
Optional[str]
image
Optional[str]
args
Optional[str]
env
Optional[str]
onstart
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.update_instance(
id: int,
template_id: Optional[int] = None,
template_hash_id: Optional[str] = None,
image: Optional[str] = None,
args: Optional[str] = None,
env: Optional[str] = None,
onstart: Optional[str] = None
) -> str
str, Result from the API call.
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
result = client.update_instance(id=12345)
print(result)