Skip to main content
Show details of a hosted machine.
This is a host method, used for managing machines you are renting out on Vast.ai.

Signature

VastAI.show_machine(Machine: int, quiet: bool = False) -> str

Parameters

Machine
int
required
Machine
quiet
bool
default:"False"
quiet

Returns

str — Result from the API call.

Example

from vastai import VastAI

client = VastAI(api_key="YOUR_API_KEY")
result = client.show_machine(Machine=12345)
print(result)