Signature
Parameters
int
required
Optional[str]
Number of lines to show from the end of the logs (default ‘1000’)
Optional[str]
Grep filter for log entries
bool
Fetch daemon system logs instead of container logs
Returns
str
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
VastAI.logs(
instance_id: int,
tail: Optional[str] = None,
filter: Optional[str] = None,
daemon_logs: bool = False
) -> str
str
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
result = client.logs(instance_id=12345)
print(result)