Skip to main content
List disk space for rent as a volume.

Signature

VastAI.list_volume(
    id: int,
    price_disk: Optional[float] = 0.1,
    end_date: Optional[str] = None,
    size: Optional[str] = 15
) -> dict

Parameters

id
int
required
id of machine to list
price_disk
Optional[float]
default:"0.1"
storage price in /GB/month,default:/GB/month, default: %(default).2f/GB/month
end_date
Optional[str]
contract offer expiration - the available until date (optional, in unix float timestamp or MM/DD/YYYY format), default 3 months
size
Optional[str]
default:"15"
size of disk space allocated to offer in GB, default %(default)s GB

Returns

dict

Example

from vastai import VastAI

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