Signature
Parameters
List[int]
required
ids
float
default:"0.1"
price_disk
Optional[str]
end_date
int
default:"15"
size
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.list_volumes(
ids: List[int],
price_disk: float = 0.1,
end_date: Optional[str] = None,
size: int = 15
) -> str
str, Result from the API call.
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
result = client.list_volumes(ids=[12345])
print(result)