Rentals
Rent GPUs, then list, stop, start and delete rentals, back them up and read their network.
Operations
- GET/v1/rentalsList the organization's rentalsAPI keyPaginated
- POST/v1/rentalsRent GPUs on a hostAPI keyIdempotent
- GET/v1/rentals/{rental_id}Get a rentalAPI key
- PATCH/v1/rentals/{rental_id}Change a rental's settingsAPI key
- DELETE/v1/rentals/{rental_id}Delete a rental and its workspaceAPI key
- GET/v1/rentals/{rental_id}/serveHow to reach the model a rental servesAPI key
- POST/v1/rentals/{rental_id}/serve/exposeCreate the rental's model service if it has noneAPI key
- GET/v1/rentals/{rental_id}/networkThe rental's effective network policy and whether its host applied itAPI key
- GET/v1/rentals/{rental_id}/hostThe host a rental runs on, its health and its GPUs' live telemetryAPI key
- GET/v1/rentals/{rental_id}/network/activityWhat the rental's network blocked or would have blocked in the last 24 hoursAPI key
- GET/v1/rentals/{rental_id}/logsRead a rental's logsAPI keyPaginated
- POST/v1/rentals/{rental_id}/stopStop a rentalAPI key
- POST/v1/rentals/{rental_id}/startRestart a stopped rentalAPI key
- GET/v1/rentals/{rental_id}/workspace-exportsList a rental's recent workspace exportsAPI key
- POST/v1/rentals/{rental_id}/workspace-exportsExport a stopped rental's workspaceAPI key
- GET/v1/rentals/{rental_id}/workspace-exports/{export_id}Get a workspace exportAPI key
- POST/v1/rentals/{rental_id}/workspace-exports/{export_id}/cancelCancel a pending workspace exportAPI key
- GET/v1/rentals/{rental_id}/workspace-exports/estimateWhat downloading a rental's workspace export will costAPI key
- POST/v1/rentals/{rental_id}/workspace-exports/{export_id}/download-linksMake a single-use download link for a ready workspace exportAPI keyIdempotent
- GET/v1/storage-policyHow long a stopped rental's files are kept, and what backups costAPI key
- GET/v1/rentals/{rental_id}/transferData this rental sent out through Legion's relays, and what it costAPI key
- GET/v1/transferThe organization's relay traffic this month, its free allowance and the rentals that used mostAPI key
- GET/v1/rentals/{rental_id}/backup-estimateWhat a backup of this rental would costAPI key
- GET/v1/rentals/{rental_id}/backupsA rental's backups, newest firstAPI keyPaginated
- POST/v1/rentals/{rental_id}/backupsBack up a stopped or failed rental's workspaceAPI keyIdempotent
- GET/v1/backupsThe organization's backups, newest firstAPI keyPaginated
- GET/v1/backups/{backup_id}Get a backupAPI key
- DELETE/v1/backups/{backup_id}Delete a ready backup earlyAPI key
- POST/v1/backups/{backup_id}/cancelCancel a queued or uploading backupAPI key
- POST/v1/backups/{backup_id}/download-linksMint a download link for a ready backupAPI keyIdempotent