Skip to main content
Show details of an instance.

Signature

VastAI.show_instance(id: int) -> str

Parameters

id
int
required
id

Returns

str — Result from the API call.

Example

from vastai import VastAI

client = VastAI(api_key="YOUR_API_KEY")
result = client.show_instance(id=12345)
print(result)