Documentation Index
Fetch the complete documentation index at: https://docs.vast.ai/llms.txt
Use this file to discover all available pages before exploring further.
Copy files between cloud and instance.
Signature
VastAI.cloud_copy(
src: Optional[str] = None,
dst: Optional[str] = "/workspace",
instance: Optional[str] = None,
connection: Optional[str] = None,
transfer: str = "Instance to Cloud"
) -> str
Parameters
dst
Optional[str]
default:"\"/workspace\""
dst
transfer
str
default:"\"Instance to Cloud\""
transfer
Returns
str, Result from the API call.
Example
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
result = client.cloud_copy()
print(result)