Skip to main content
Show stats on owned volumes.

Signature

VastAI.show_volumes(
    type: str = 'all'
) -> list[dict]

Parameters

type
str
default:"all"
volume type to display. Default to all. Possible values are “local”, “all”, “network”

Returns

list[dict]

Example

from vastai import VastAI

client = VastAI(api_key="YOUR_API_KEY")
result = client.show_volumes()
print(result)