Restart a stopped rental
API keyAllocates the same number of GPUs on the same host again and restarts the container on the retained workspace, in the rental's own tier and at its own price. An on-demand rental takes GPUs from the host's interruptible rentals when too few are free, as createRental does; an interruptible rental, a preempted one included, uses free GPUs only. Fails with 409 gpus_ if the host no longer has enough free GPUs, and with 409 host_ if other rentals took the disk the rental needs back: a stopped rental counts only the disk it uses, and a restart needs its whole share (resources.) free again. Starting a running or starting rental succeeds. 409 export_ while an export of its workspace is pending, and 409 backup_ while a backup of it is queued or uploading. On a host short of disk, a member's start may reclaim the disk of other renters' stopped rentals stopped for more than 24 hours ( §3, the kill switch storage.); it then starts once their agent confirmed they are deleted.
409 own_ for an interruptible rental on a host whose provider is its organization or linked to it (a bid made before legion-risk linked them).
409 linked_ for a rental of an organization linked to the host's provider: linked organizations may not rent each other's hosts. Own use (own_) starts again at the fee of the host's listed price now, and takes free GPUs only.
409 rental_ while the rental is on a preservation hold.
Send an API key as Authorization: Bearer lgn_…. Authentication
https://api.legion.ambient.xyz/v1/rentals/{rental_id}/startcurl -s -X POST "https://api.legion.ambient.xyz/v1/rentals/$RENTAL_ID/start" \
-H "Authorization: Bearer $LEGION_API_KEY"This operation changes your account, so run it with the curl sample.
{
"maintenance": {
"start": "2026-10-15T12:00:00Z",
"end": "2026-10-15T12:00:00Z",
"reason": "hardware",
"state": "scheduled",
"resume": false
},
"id": "0192f1a2-7c3d-7e4f-8a9b-0c1d2e3f4a5b",
"service_id": "0192f1a2-7c3d-7e4f-8a9b-0c1d2e3f4a5b",
"service_managed": false,
"service_name": "string",
"service_initial_key": {
"key": {
"id": "0192f1a2-7c3d-7e4f-8a9b-0c1d2e3f4a5b",
"kind": "service",
"name": "string",
"prefix": "string",
"status": "active",
"created_at": "2026-10-15T12:00:00Z",
"created_by": "0192f1a2-7c3d-7e4f-8a9b-0c1d2e3f4a5b",
"expires_at": "2026-10-15T12:00:00Z",
"last_used_at": "2026-10-15T12:00:00Z",
"revoked_at": "2026-10-15T12:00:00Z",
"rate_limit_per_minute": 0,
"direct_url": "string"
},
"secret": "string"
},
"name": "quiet-river-7k2f",
"host_id": "0192f1a2-7c3d-7e4f-8a9b-0c1d2e3f4a5b",
"host_name": "quiet-river-7k2f",
"host_score": 0,
"state": "starting",
"ssh_key_fingerprint": "string",
"tier": "on_demand",
"own_use": false,
"own_use_reference_price": {
"amount_minor": 250,
"currency": "USD"
},
"own_use_reference_basis": "on_demand",
"own_use_fee_bps": 0,
"stop_reason": "preempted",
"interruption_behavior": "keep",
"auto_resume": false,
"preempt_at": "2026-10-15T12:00:00Z",
"gpu_count": 0,
"gpu_model": "string",
"image": "string",
"image_digest": "sha256:3f2a9c1d5b7e8f40a6c3d2b19e0f7a845c6d1e2f3a4b5c6d7e8f9a0b1c2d3e4f",
"private_image": false,
"registry_credential_id": "0192f1a2-7c3d-7e4f-8a9b-0c1d2e3f4a5b",
"price_per_gpu_hour": {
"amount_minor": 250,
"currency": "USD"
},
"renter_fee_bps": 0,
"max_price_per_gpu_hour": {
"amount_minor": 250,
"currency": "USD"
},
"spot_price_to_win_per_gpu_hour": {
"amount_minor": 250,
"currency": "USD"
},
"spot_win_status": "free_gpus",
"current_price_per_gpu_hour": {
"amount_minor": 250,
"currency": "USD"
},
"resources": {
"cpu_cores": 0,
"memory_mib": 0,
"disk_gib": 0
},
"ssh": {
"host": "string",
"port": 1,
"host_key_fingerprint": "SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU"
},
"failure_reason": "string",
"storage_price_per_gib_month": {
"amount_minor": 250,
"currency": "USD"
},
"delete_after": "2026-10-15T12:00:00Z",
"data_status": "on_host",
"data_protected_until": "2026-10-15T12:00:00Z",
"data_reclaimable": false,
"data_deleted_at": "2026-10-15T12:00:00Z",
"data_deleted_reason": "renter_deleted",
"delete_attempts": 1,
"delete_error": "string",
"latest_backup": {
"id": "0192f1a2-7c3d-7e4f-8a9b-0c1d2e3f4a5b",
"rental_id": "0192f1a2-7c3d-7e4f-8a9b-0c1d2e3f4a5b",
"rental_name": "quiet-river-7k2f",
"state": "queued",
"retention_days": 7,
"requested_at": "2026-10-15T12:00:00Z",
"upload_started_at": "2026-10-15T12:00:00Z",
"ready_at": "2026-10-15T12:00:00Z",
"expires_at": "2026-10-15T12:00:00Z",
"ended_at": "2026-10-15T12:00:00Z",
"purge_at": "2026-10-15T12:00:00Z",
"size_bytes": 0,
"estimated_size_bytes": 0,
"estimate_basis": "disk_used",
"total_bytes": 0,
"uploaded_bytes": 0,
"upload_rate_bytes_per_second": 0,
"estimated_completion_at": "2026-10-15T12:00:00Z",
"upload_deadline": "2026-10-15T12:00:00Z",
"price": {
"quoted": {
"amount_minor": 250,
"currency": "USD"
},
"charged": {
"amount_minor": 250,
"currency": "USD"
},
"refunded": {
"amount_minor": 250,
"currency": "USD"
},
"storage": {
"amount_minor": 250,
"currency": "USD"
},
"download": {
"amount_minor": 250,
"currency": "USD"
}
},
"delete_rental_after": false,
"download_links": 0,
"error": "string",
"automatic": false,
"origin": "member"
},
"auto_backup": {
"retention_days": 7,
"last_skipped_at": "2026-10-15T12:00:00Z",
"last_skipped_reason": "no_credit"
},
"created_at": "2026-10-15T12:00:00Z",
"web_terminal": false,
"ssh_agent_forwarding": false,
"image_phase": "fetching",
"runtime": {
"version": "1.3.0",
"sshd_set": "string",
"sshd_version": "1.3.0",
"sshd_state": "current",
"swap_error": "verify_failed",
"restart_after": "2026-10-15T12:00:00Z"
},
"terminal": {
"available": false,
"reason": "platform_disabled"
},
"terminal_access": "organization",
"created_by": "0192f1a2-7c3d-7e4f-8a9b-0c1d2e3f4a5b",
"startup": {
"steps": [
{
"step": "finding_host",
"state": "done",
"started_at": "2026-10-15T12:00:00Z",
"ended_at": "2026-10-15T12:00:00Z",
"progress": {
"done_bytes": 0,
"total_bytes": 0,
"bytes_per_second": 0,
"eta_seconds": 0,
"fraction": 0,
"reported_at": "2026-10-15T12:00:00Z"
},
"reason": "string",
"detail": "string",
"facts": {
"gpu_model": "string",
"gpu_count": 1,
"price_per_gpu_hour": {
"amount_minor": 250
},
"country": "string",
"hosts_checked": 0,
"hosts_busy": 0,
"hosts_over_price": 0,
"cached": false,
"items_done": 0,
"items_total": 0,
"load_fraction": 0,
"gpu_memory_used_bytes": 0,
"gpu_memory_total_bytes": 0,
"kv_cache_bytes": 0,
"compile_fraction": 0,
"health_path": "string",
"attempts": 0,
"last_status_code": 0,
"latency_ms": 0
}
}
]
},
"serve": {
"kind": "openai",
"model": "string",
"catalog_id": "string",
"readiness": {
"phase": "pulling",
"progress": 0,
"since": "2026-10-15T12:00:00Z",
"reported_at": "2026-10-15T12:00:00Z"
},
"failure": {
"reason": "string",
"message": "string",
"reported_at": "2026-10-15T12:00:00Z"
}
},
"env": [
{
"name": "HF_TOKEN",
"secret": false,
"value": "string"
}
],
"model_settings": {},
"command": [
"string"
],
"args": [
"string"
]
}Example values.
Path parameters
rental_idstring (uuid)Required
Responses
200The rental.The rental.
maintenanceRentalMaintenance. The window of the rental's host, or the window that stopped the rental until it starts again: a
MaintenanceSummaryandresume. Absent for rentals under a preservation hold and for deleted and failed rentals.Child fields · 5
startstring (date-time)RequiredWhen the window starts: the rental stops then (after a 5-minute notice).
endstring (date-time)RequiredThe planned end. The provider may end the window earlier.
reasonMaintenanceReasonRequired. Why a provider takes a host down, shown to the renters of rentals on it. The list grows: accept a value you do not know.
one of: "hardware", "software", "network", "power", "facility", "other"
stateMaintenanceStateRequired.
scheduled(announced, renters told),closing(the last 5 minutes before the start: the penalty-free outcome is decided, nothing can start, rentals in their notice),active(the host is in maintenance, its rentals stopped),overrun(the planned end passed and the host has not synced back),completed,cancelled. The list grows: accept a value you do not know.one of: "scheduled", "closing", "active", "overrun", "completed", "cancelled"
resumebooleanRequiredWhether maintenance starts the rental again by itself when the window that stopped it, or the window shown, ends.
falseafterresume_false onafter_ maintenance updateRental, for a stopped rental no window stopped (maintenance starts only what it stopped), and for one the resume queue gave up on (its host is under review).
idstring (uuid)Requiredservice_idstring (uuid)The service that serves this rental: a rental created with
servegets a service with targetrental(its URLhttps:/, keys access), and a replica of an autoscaled service names that service. Absent otherwise; a rental's exposed ports are listed by/ <rental name>. ambi. run listServices.service_managedbooleanTrue for a replica of an autoscaled service: only the autoscaler changes it, and stop, start, delete, update, exposed ports, backups and exports answer 409
rental_. Itsmanaged_ by_ service web_andterminal terminal_are the service'saccess replica_: change them on the service.web_ terminal service_namestring. The name of the
service_service, so a replica can say whose setting it follows (for example "Web terminal: off, set by service chat"). Absent whenid service_is.id read-only
service_initial_keyServiceKeyCreatedOn
createRentalwithserveonly, the first key of the rental's service, its secret shown once (the answer carriesCache-Control: no-store). Never on a replay or a read.Child fields · 2
keyServiceKeyRequiredChild fields · 12
idstring (uuid)RequiredkindServiceKeyKindRequiredservice, anlek_key.legacy_, thedirect lsk_key of a public model rental from before services; revoking it switches the service's access to keys.one of: "service", "legacy_direct"
namestringRequiredprefixstringRequiredThe first 12 characters,
lek_and 8 more (lsk_for a legacy direct key). Display only.statusServiceKeyStatusRequiredone of: "active", "expired", "revoked"
created_atstring (date-time)Requiredcreated_bystring (uuid)Requiredmay be null
expires_atstring (date-time)Requiredmay be null
last_used_atstring (date-time)RequiredUpdated at most once a minute.
may be null
revoked_atstring (date-time)Requiredmay be null
rate_limit_per_minuteintegerRequiredmay be null
direct_urlstringRequiredThe direct address a legacy direct key opens.
may be null
secretstringRequiredThe whole key,
lek_and 43 URL-safe characters. Shown once.
nameFriendlyNameRequiredThe rental's friendly name, assigned at creation and never changed. It is the container's hostname (for a container created after it was assigned) and the SSH target: the gateway resolves
<name>and<name>.as it resolves the rental ID, so<zone> ssh -J <ssh.connects. Pin the rental's host key under the name (host>:<ssh. port> root@<name> HostKeyAlias <name>).host_idstring (uuid)Requiredhost_nameFriendlyName. The current friendly name of the host the rental runs on, as the marketplace shows it. Absent only for a host from before friendly names.
getRentalHosthas the rest.host_scoreinteger. The host's current Legion score (
LegionScore.); absent until Legion scored it.value 0–100
stateRentalStateRequiredstarting: GPUs allocated, waiting for the agent to start the container. Not billed. While the rental'simage_isphase fetchingthe agent does not know it yet.running: the container runs. Billed per second.exited: the host reports the container is not running, for example after a crash; the host is restarting it. GPUs stay reserved. Not billed; returns torunningwhen the host reports it running again.stopping: stop requested, waiting for the agent. Not billed. Becomesstoppedwithout the agent once the host has been offline for 90 seconds.stopped: GPUs released, workspace kept on the host. GPU time is not billed. Storage is billed per GiB while the organization has credit, except for aninterruption_rental, which never stops with data.behavior: delete host_: the host stopped syncing. Not billed; returns tooffline runningwhen the host syncs again, and becomesfailedonce the host has not synced forHOST_(24 hours;).STALE_ AFTER deleting: delete requested, waiting for the agent. Not billed. Becomesdeletedwithout the agent once the host has been offline for 90 seconds.deleted: container and workspace removed. Final.failed: the agent could not start or keep running the container. GPUs released. The rental can only be deleted.one of: "starting", "running", "exited", "stopping", "stopped", "host_offline", "deleting", "deleted", "failed"
ssh_key_fingerprintstring. The SHA256 fingerprint of the SSH public key that may connect to the rental, as
ssh-keygen -lprints it (SHA256:and the unpadded base64 digest): the key ofcreateRental, or the last oneupdateRentalset. Absent when the stored key does not parse. The key itself is never returned.tierRentalTierRequiredThe rental's tier, chosen at creation and never changed.
price_is that tier's price at creation, except for anper_ gpu_ hour interruptiblerental: its price follows the host's spot auction, andprice_is the price of the last clearing it won. Own use (per_ gpu_ hour own_) is alwaysuse on_, and itsdemand price_is Ambient's own-use platform fee.per_ gpu_ hour own_useboolean(CONTRACTS.md "Own use of one's own host"). The rental is the organization's use of a host it owns. It pays only Ambient's own-use platform fee,
price_:per_ gpu_ hour own_ofuse_ fee_ bps own_(the host's own listed price when the rental last started), charged from the organization's credit like any rental and never paid with promo credit. The organization earns nothing on it, its stopped workspace is not billed for storage, and any paid rental of the host (on demand, or a bid that wins the host's spot auction) takes its GPUs: it is then stopped withuse_ reference_ price stop_reason preemptedoroutbidand does not start again by itself. It never takes GPUs from anybody. Absent or false for every other rental.own_use_reference_priceMoneyOn own use: the price per GPU-hour the fee was taken from, snapshotted at the rental's last start; a later change of the host's listing does not change it until the rental starts again.
Child fields · 2
amount_minorinteger (int64)RequiredAmount in minor units (cents for USD).
at least 0
currencyMoneyCurrencyRequiredISO 4217 currency code. Only USD is supported.
one of: "USD"
own_use_reference_basisstringOn own use: which price
own_is.use_ reference_ price on_: the host's on-demand price (also its last one while it is not listed).demand interruptible: its interruptible floor, when the rental was asked for as interruptible.advisor: the price advisor's recommendation for a host that was never priced.one of: "on_demand", "interruptible", "advisor"
own_use_fee_bpsintegerOn own use, the platform fee's rate in basis points of
own_(500 is 5%).use_ reference_ price 0–10000
stop_reasonRentalStopReasonWhy Legion stopped this rental, while it is
stoppingorstoppedbecause of it. Absent when a member, Legion or a lack of credit stopped it, and once it is started again.start_stays on atimeout stoppedrental whose last start did not complete.interruption_behaviorInterruptionBehaviorWhat happens to the rental's data when it is preempted, chosen at creation and never changed.
keepfor every on-demand rental.auto_resumeboolean. Whether the rental starts again by itself after it was preempted, when GPUs on its host are free within 72 hours of the stop; after that its files are deleted: the rental is
stoppedwithstop_reason preempted(oroutbid: it then starts when it wins a clearing of the host's spot auction, in bid order rather than oldest first), and neither a preservation hold, a suspended or unfunded organization, a full host disk nor missing free GPUs stops it from starting; these leave it queued, oldest preemption first.truefor aninterruptiblerental that keeps its data unless it was set tofalsewithupdateRental. A member'sstopRentalof a rental that is alreadystoppedand preempted sets it tofalse; any other stop or start leaves it. A resume never preempts anything and keeps the rental's tier and price.preempt_atstring (date-time). While the rental is
stoppingorstoppedbecause it was preempted: when its container is stopped. For a host whose agent advertisedpreemption_it is 300 seconds (notice_ v1 PreemptionNoticeSeconds) after the preemption, and the container keeps running, and billing, until then; else it is the moment of the preemption; billing ends at the agent's stop report and never runs pastpreempt_plus 30 seconds. Absent otherwise, and once the rental is started again.at gpu_countintegerRequiredgpu_modelstringThe host's GPU model.
imagestringRequiredThe image reference as the renter wrote it. It is not what the host pulls: that is
registry.for an image of a mirrored registry, pinned tolegion. ambient. xyz/ <upstream>/ <path>@<digest> image_.digest image_digestImageDigestThe content digest of the image a rental is pinned to: of its manifest list for a multi-platform image, so the same digest runs on any platform the image offers. Absent on rentals created before images were pinned.
at most 135 characters · pattern ^(sha256:[a-f0-9]{64}|sha512:[a-f0-9]{128})$
private_imageboolean. True when the image is private: its registry did not serve it anonymously and it was read with the organization's registry sign-in. The host pulls it straight from that registry with a short-lived token made from the sign-in; it never goes through Legion's mirror. Absent means false.
registry_credential_idstring (uuid). The registry credential a private image was read with, and the only one its host gets pull tokens from. Absent for a public image.
price_per_gpu_hourMoneyRequiredChild fields · 2
amount_minorinteger (int64)RequiredAmount in minor units (cents for USD).
at least 0
currencyMoneyCurrencyRequiredISO 4217 currency code. Only USD is supported.
one of: "USD"
renter_fee_bpsinteger. The renter platform fee, in basis points, this rental pays on top of the provider's price, fixed when it was created (500 is 5%). 0 for rentals created before and for own use (which pays its own-use fee in
price_). Every price on the rental (per_ gpu_ hour price_,per_ gpu_ hour max_,price_ per_ gpu_ hour current_,price_ per_ gpu_ hour storage_) already includes it.price_ per_ gib_ month 0–10000
max_price_per_gpu_hourMoney. An
interruptiblerental's bid on its host's spot auction: the most it pays per GPU-hour, set at creation (the host's floor by default) and changed withupdateRental. Absent for an on-demand rental. All-in, at the rental'srenter_: the stored bid is the provider's price it allows, so this is the all-in price of that, at most the limit the renter asked for.fee_ bps Child fields · 2
amount_minorinteger (int64)RequiredAmount in minor units (cents for USD).
at least 0
currencyMoneyCurrencyRequiredISO 4217 currency code. Only USD is supported.
one of: "USD"
spot_price_to_win_per_gpu_hourMoney. On a rental waiting as a bid (
stopped,stop_reason outbidorpreempted,auto_), the lowest limit that wins its host's GPUs back now, all-in at the rental'sresume renter_: the same number as an offer'sfee_ bps spot_, with this rental's own bid left out. Raisingprice_ to_ win_ per_ gpu_ hour max_to it withprice_ per_ gpu_ hour updateRentalwins at the clearing that follows at once; a new limit under it is 409bid_with it. Absent on every other rental and when no bid can win now.too_ low Child fields · 2
amount_minorinteger (int64)RequiredAmount in minor units (cents for USD).
at least 0
currencyMoneyCurrencyRequiredISO 4217 currency code. Only USD is supported.
one of: "USD"
spot_win_statusSpotWinStatus. What a new interruptible bid on the host meets now.
free_: a bid at the spot price (gpus spot_) wins.price_ per_ gpu_ hour outbid: the GPUs are held by bids, or wanted by waiting ones, that a new bid must outbid, atspot_.price_ to_ win_ per_ gpu_ hour unavailable: no bid can win now, the GPUs being held by on-demand rentals or by interruptible rentals in their first 10 minutes. Absent wherespot_is not computed (not interruptible, own host).price_ to_ win_ per_ gpu_ hour one of: "free_gpus", "outbid", "unavailable"
current_price_per_gpu_hourMoney. What an
interruptiblerental that holds GPUs pays per GPU-hour now, all-in: the host's clearing price, never more thanmax_, never less than the floor unless the limit is (a limit set before the floor rose). Absent while it holds no GPUs (it is stopped or waiting to win), and for an on-demand rental.price_ per_ gpu_ hour Child fields · 2
amount_minorinteger (int64)RequiredAmount in minor units (cents for USD).
at least 0
currencyMoneyCurrencyRequiredISO 4217 currency code. Only USD is supported.
one of: "USD"
resourcesResourcesRequiredChild fields · 3
cpu_coresintegerRequiredat least 0
memory_mibinteger (int64)Requiredat least 0
disk_gibinteger (int64)Requiredat least 0
sshSSHEndpointOn a
Rental: the platform SSH gateway, a jump host, set by Legion from its own configuration and never from the host. Connect withssh -J <host>:<port> root@<rental id>: the user on the rental isroot. Absent until the host's agent reports the rental running and reachable through the gateway.In a
RentalReport: the agent's view of the endpoint. It is read only as "reachable through the gateway"; a host or port other than the gateway's is ignored and counted (controller_), and never shown.agent_ ssh_ endpoint_ mismatch_ total host_is ignored in a report.key_ fingerprint Child fields · 3
hoststringRequiredportintegerRequired1–65535
host_key_fingerprintstringThe SHA256 fingerprint of the gateway's SSH host key, as
ssh-keygen -lfprints it, for the renter to compare on first connection. Absent when Legion is not configured with it.pattern ^SHA256:[A-Za-z0-9+/]{43}$
failure_reasonstringWhy a
failedrental failed, in words for the renter: what its host's agent reported, or what Legion decided. Among the latter: a new on-demand rental that took GPUs from interruptible rentals fails with "The GPUs weren't released in time:... You weren't charged." when they did not stop within 7 minutes (rental.withfailed reasonpreemption_); it was never billed.timeout storage_price_per_gib_monthMoneyWhat a
stoppedrental is charged per GiB per 730-hour month while its organization has credit, on the disk it uses as its host's agent reports it, at mostresources., and ondisk_ gib resources.when the agent does not report it. The rate the rental's host charged when the rental was created, fixed for the rental likedisk_ gib price_; for a rental created before, the platform's current rate. All-in with the renter platform fee. Absent when storage is free.per_ gpu_ hour read-only
Child fields · 2
amount_minorinteger (int64)RequiredAmount in minor units (cents for USD).
at least 0
currencyMoneyCurrencyRequiredISO 4217 currency code. Only USD is supported.
one of: "USD"
delete_afterstring (date-time)Legion deletes this rental, with the data in its workspace, no earlier than this; deletion also waits for a warning email sent at least 24 hours earlier. 72 hours after the rental failed, or, for a
stoppedrental, 72 hours after its organization ran out of credit or its host was removed (a stopped rental of an organization with credit is billed for storage instead). Absent while the rental is in any other state, on hold, or its organization is suspended.: a
stoppedrental is deleted 72 hours after it stopped (the latest of its stop, the release of its last hold, and the Terms 1.2 effective date, 2026-10-23), whether or not its organization has credit, and while its organization is suspended; a warning email goes out 12 hours before (24 for a failed rental). While a backup or export of the rental is queued or uploading the deletion waits for it to end, with no extra time after a failed one.read-only
data_statusDataStatusWhere a rental's files are.
on_: on its host (running, or stopped and kept untilhost delete_).after deleting: their deletion was decided (data_) and the host's agent has not confirmed it yet.deleted_ reason deleted: gone (data_). The list may grow: treat an unknown value asdeleted_ at deleting.one of: "on_host", "deleting", "deleted"
data_protected_untilstring (date-time). For a
stoppedrental: until when its files are kept and never reclaimed for another renter, 24 hours after the stop completed. For a rental a maintenance window stopped, 24 hours after the window's end (absent while the window is open: never reclaimed then). Absent in any other state.read-only
data_reclaimableboolean. Whether the files of this
stoppedrental may be reclaimed right now for another renter's rental on the host: pastdata_, with no backup or export queued or uploading, not on hold, and the reclaim not switched off. False in any other state.protected_ until read-only
data_deleted_atstring (date-time). When the rental's files were deleted, as the host's agent confirmed (or the host left Legion).
read-only
data_deleted_reasonDataDeletedReason. Why the files were (
deleted) or are being (deleting) deleted. Kept for ever.read-only
delete_attemptsinteger. While the rental is
deleting: how many times its host's agent failed to delete it so far (agents withdelete_); the agent keeps retrying. 3 or more is a stuck delete. Absent otherwise.report_ v1 at least 1 · read-only
delete_errorstring. With
delete_: the agent's fixed sentence naming the step that failed (never the container engine's text), safe to show.attempts read-only
latest_backupBackup. The rental's newest backup, whatever its state, so a page can resume after a reload. Absent when it has none. Its other backups are on
listRentalBackups.read-only
Child fields · 25
idstring (uuid)Requiredrental_idstring (uuid)Requiredrental_nameFriendlyNameA host's or rental's friendly name: a lowercase DNS label that starts with a letter and does not end with a hyphen. Unique across all hosts and rentals and never reused. A host's is generated as adjective-noun (
amber-falcon) and can be changed by its owner; a rental's is generated as adjective-noun plus four base36 characters (quiet-river-7k2f) and never changes.2–63 characters · pattern ^[a-z][a-z0-9-]{0,61}[a-z0-9]$
stateBackupStateRequired.
queued: accepted, waiting for the rental to stop or for its host's agent to start uploading.uploading: the agent is uploading.ready: download it (createBackupDownloadLink) untilexpires_.at failed: seeerror; refunded in full.cancelled: cancelled before it was ready; refunded in full.expired: its retention ended.deleted: deleted early. An expired or deleted backup's file is purged 24 hours later.one of: "queued", "uploading", "ready", "failed", "cancelled", "expired", "deleted"
retention_daysBackupRetentionDaysRequiredHow many days a backup is kept once it is ready. 7 by default.
one of: 7, 30
requested_atstring (date-time)Requiredupload_started_atstring (date-time)When the agent started uploading.
ready_atstring (date-time)expires_atstring (date-time)With
readyand after, when it expires:ready_plusat retention_.days ended_atstring (date-time)When it failed, was cancelled, expired or was deleted.
purge_atstring (date-time)For an
expiredordeletedbackup, when its file is removed for good (24 hours on).size_bytesinteger (int64)The size of the tar file; with
ready.estimated_size_bytesinteger (int64)RequiredThe size the quote was computed on.
estimate_basisBackupEstimateBasis. What a backup's quote was computed on.
disk_: the size the rental's host last reported its workspace uses (used disk_).used_ gib disk_: the host does not report it (a host whose disk quota is not enforced, for example not on XFS), so the quote is the rental's whole disk share (share resources.): an upper bound, "up to" this price, trued down to the real size when the backup is ready. Either way the charge never exceeds the quote: a backup larger than its estimate (a staledisk_ gib disk_) is charged the quote, not more.used_ gib one of: "disk_used", "disk_share"
total_bytesinteger (int64)The size of
/the host's agent measured before uploading ('sworkspace total_, as on an export); absent until it says.bytes estimated_is against it, else against a measuredcompletion_ at estimated_.size_ bytes at least 0
uploaded_bytesinteger (int64)Progress, as an export's: the bytes of the parts the agent finished uploading so far (the one in flight is not counted). With
uploading; equal tosize_oncebytes ready.at least 0
upload_rate_bytes_per_secondinteger (int64)With
uploading, once at least one part finished, the average upload speed so far.at least 0
estimated_completion_atstring (date-time)With
uploading, once at least one part finished: when the upload should finish at the speed it has had so far, againstestimated_(an upper bound withsize_ bytes disk_). An estimate, not a promise.share upload_deadlinestring (date-time)With
uploading: when the backup fails if it has not finished, 12 hours after the upload started (the agent cuts the upload at the same time).priceBackupPriceRequiredA backup's price, all of it Ambient's.
quotedis what was charged when it was requested;chargedis what it costs now, net of refunds: the quote until it is ready, then the price of its real size (never more than the quote), zero once it failed or was cancelled.refundedis what was given back.storageanddownloadsplit the current price. Further download links are charged apart, on each link. All zero when backup charges are switched off.Child fields · 5
quotedMoneyRequiredChild fields · 2
amount_minorinteger (int64)RequiredAmount in minor units (cents for USD).
at least 0
currencyMoneyCurrencyRequiredISO 4217 currency code. Only USD is supported.
one of: "USD"
chargedMoneyRequiredChild fields · 2
amount_minorinteger (int64)RequiredAmount in minor units (cents for USD).
at least 0
currencyMoneyCurrencyRequiredISO 4217 currency code. Only USD is supported.
one of: "USD"
refundedMoneyRequiredChild fields · 2
amount_minorinteger (int64)RequiredAmount in minor units (cents for USD).
at least 0
currencyMoneyCurrencyRequiredISO 4217 currency code. Only USD is supported.
one of: "USD"
storageMoneyRequiredChild fields · 2
amount_minorinteger (int64)RequiredAmount in minor units (cents for USD).
at least 0
currencyMoneyCurrencyRequiredISO 4217 currency code. Only USD is supported.
one of: "USD"
downloadMoneyRequiredChild fields · 2
amount_minorinteger (int64)RequiredAmount in minor units (cents for USD).
at least 0
currencyMoneyCurrencyRequiredISO 4217 currency code. Only USD is supported.
one of: "USD"
delete_rental_afterbooleanRequiredWhether the rental is deleted once this backup is ready ("back up, then delete").
download_linksintegerRequiredHow many download links were minted. The first is included in the price.
at least 0
errorstringWhy a
failedbackup failed, in words for the renter.automaticboolean. True for a backup Legion started by itself because the rental's
auto_was on when Legion stopped it; absent for one a member asked for.backup originstring. Who asked for it:
member(the renter),automatic(the rental'sauto_) orbackup admin(a Legion Legion's "back up and stop" or "back up, then delete"). Every backup is the renter's, at its price.one of: "member", "automatic", "admin"
auto_backupRentalAutoBackup. The rental's automatic backup on interruption; absent when it is off. See
createRental.read-only
Child fields · 3
retention_daysBackupRetentionDaysRequiredHow many days a backup is kept once it is ready. 7 by default.
one of: 7, 30
last_skipped_atstring (date-time)When the last automatic backup was skipped; absent when none was. Cleared when the next one starts.
last_skipped_reasonAutoBackupSkipReason. Why an automatic backup was not made when Legion stopped the rental.
no_: the organization had no credit or its balance did not cover the quote.credit backup_: at the host's measured upload speed it would not finish in 12 hours.too_ slow backup_: a backup or a workspace download of the rental was already running.in_ progress host_: the host stayed offline for 30 minutes after the stop.offline host_: the host's agent cannot back up.unsupported rental_: the rental is on hold.held unavailable: backup storage or billing could not be reached for 30 minutes.recent_: an automatic backup of the rental was started less than 6 hours before, so a rental Legion stops again and again is not charged a backup each time. The list may grow: treat an unknown value as "not backed up".backup one of: "no_credit", "backup_too_slow", "backup_in_progress", "host_offline", "host_unsupported", "rental_held", "unavailable", "recent_backup"
created_atstring (date-time)Requiredweb_terminalbooleanRequiredWhether the Legion web terminal was allowed at creation. Immutable.
ssh_agent_forwardingbooleanRequiredWhether
ssh -Aagent forwarding was allowed at creation. Immutable. Applies to rentals withruntime; a rental without it uses its image's own sshd configuration.image_phaseImagePhaseRequiredWhether the rental's image is in Legion's registry.
fetching: the mirror is still copying it in, which can take many minutes the first time, and the host's agent is not told about the rental yet; the rental isstartingmeanwhile.ready: the agent has been told to run it. A rental whose image has not arrived two hours after it was created fails.one of: "fetching", "ready"
runtimeRentalRuntimeWhat the host's agent last reported for a rental created with the Legion runtime: the base bundle its container mounted and the sshd set that serves it. Absent for a rental created without the runtime. It is the provider's report, not proof.
Child fields · 6
versionRuntimeVersionRequiredA release of the Legion runtime bundle:
x., no prefix, no suffix, no leading zeros, at most four digits a part. Compare numerically:y. z 1.is above10. 0 1..9. 0 at most 16 characters · pattern ^(0|[1-9][0-9]{0,3})\.(0|[1-9][0-9]{0,3})\.(0|[1-9][0-9]{0,3})$
sshd_setstringRequiredpattern ^[0-9a-f]{12}$
sshd_versionRuntimeVersionRequiredA release of the Legion runtime bundle:
x., no prefix, no suffix, no leading zeros, at most four digits a part. Compare numerically:y. z 1.is above10. 0 1..9. 0 at most 16 characters · pattern ^(0|[1-9][0-9]{0,3})\.(0|[1-9][0-9]{0,3})\.(0|[1-9][0-9]{0,3})$
sshd_stateRuntimeSshdStateRequiredcurrent: the sshd set the agent last proved by banner is the newest one it could apply.swapping: a hot-swap to a newer set is in progress.swap_: it failed and the container serves its previous set (seefailed swap_).error one of: "current", "swapping", "swap_failed"
swap_errorRuntimeSwapErrorone of: "verify_failed", "listener_failed", "banner_timeout", "rolled_back"
restart_afterstring (date-time)Present only while the rental's base
versionis below the forced-restart floor: after this time the host's agent restarts the rental (same container, workspace kept) onto a newer base. The renter's banner reads it.
terminalTerminalAvailabilityRequiredWhether the caller can open the web terminal on the rental now, and if not, the first reason that applies (CONTRACTS.md "Web terminal", Availability). Since it is the caller's own answer: with the rental's
terminal_access creator_, a person who may not open it readsand_ owners not_.allowed Child fields · 2
availablebooleanRequiredreasonTerminalUnavailableReasonplatform_: the kill switch is off.disabled not_: the rental is not running.running disabled: the rental was created withweb_.terminal: false agent_: the host's agent does not report terminal data.outdated restart_: the container started before the Legion CA lines were written; restart the rental.required host_: the agent has not yet reported a host-key scan for the current container.keys_ unknown image_: the sshd answering for the rental does not meet the web-terminal requirements. Read it with the rental'sunsupported runtime. Withoutruntimethe rental was created before Legion's built-in SSH server and runs its image's own sshd, which is too old or has no usable host key. WithruntimeLegion's SSH server is the one that should answer, so this means something else answers on the rental's SSH port (it may have been replaced from inside the container): restart the rental, or connect with SSH.not_: the rental'sallowed terminal_isaccess creator_and the caller is neither the person who created it nor an owner of the organization. It is the caller's own answer: another person reading the same rental may see it available. The list grows: treat a value you do not know as unavailable.and_ owners one of: "platform_disabled", "not_running", "disabled", "agent_outdated", "restart_required", "host_keys_unknown", "image_unsupported", "not_allowed"
terminal_accessTerminalAccessRequired. Who may open the web terminal on the rental.
organizationfor every rental created before it.created_bystring (uuid). The person who created the rental: the signed-in person, or the person an API key or a connected app's token belongs to. Absent for a rental created before; it is never guessed after the fact.
read-only
startupStartup. How far the rental's start has come, step by step, from when it was created or last started:
preparing_(only when Legion's mirror had to copy the image in),image pulling_,image starting_, and for a rental withcontainer servedownloading_,weights loading_,model health_, thencheck ready. Each step isdone,current,nextorfailed, with when it started and ended; a step a start did not need (an image already on the host, weights already downloaded) is left out once a later step began. The current step of a pull or a download carries itsprogress. Afailedstep is where the start stopped: the reason isfailure_on the rental, orreason serve.for the model service. Absent for a rental with no recorded steps (one created before and not started since).failure Child fields · 1
stepsarray of StartupStepRequiredat most 12 items
Child fields · 8
stepStartupStepNameRequired. A step of a start, in order.
finding_: an autoscaled service looks for a host with free GPUs (services only).host reserving_: Legion reserves the GPUs on the chosen host (done when the rental is created or started; itsgpu factssay which GPUs, where and at what price).preparing_: Legion's mirror copies the image in (image image_phase fetching).pulling_: the host pulls the image.image starting_: the container is created and started.container downloading_: the model service downloads the model's weights (a Legion model image, the first time).weights loading_: it loads the model onto the GPUs.model warming_: the model is in GPU memory and the server prepares it for this GPU (compiling, capturing CUDA graphs).up health_: the model is loaded and the service is asked the way a client would (OpenAIcheck GET /listing the model, ComfyUIv1/ models GET /, or the service's health path) until it answers.system_ stats ready: the rental runs, and a model service answered its health check.receiving_: the service's router sends the replica requests (services only). The list may grow: show a name you do not know as it is.traffic one of: "finding_host", "reserving_gpu", "preparing_image", "pulling_image", "starting_container", "downloading_weights", "loading_model", "warming_up", "health_check", "ready", "receiving_traffic"
stateStartupStepStateRequiredone of: "done", "current", "next", "failed"
started_atstring (date-time)When the step began; absent for a step that is
next, and for afinding_whose start Legion did not record.host ended_atstring (date-time)When the step ended (
doneorfailed).progressStartupProgress. How far a pull or a download is, as the host's agent last reported it (
startup_). Every figure is absent when it is not known;progress_ v1 eta_is the bytes left over the current rate.seconds Child fields · 6
done_bytesinteger (int64)at least 0
total_bytesinteger (int64)at least 0
bytes_per_secondinteger (int64)at least 0
eta_secondsinteger (int64)at least 0
fractionnumber (double)The share done, from the bytes or from the agent's own share.
0–1
reported_atstring (date-time)When the agent last reported these figures.
reasonstringOn a
currentfinding_: why no host was found yet,host waiting_(no offer has the free GPUs the service needs) or another code. Showfor_ gpus detailfor a code you do not know.detailstringWith
reason: the same in plain words, for example how many offers did not fit and why.factsStartupFacts. What is known about a step beyond its time and progress. Every field is optional and only on the steps it belongs to; an older agent reports fewer of them.
Child fields · 20
gpu_modelstringfinding_(done),host reserving_: the GPU model chosen.gpu gpu_countintegerat least 1
price_per_gpu_hourMoneyChild fields · 2
amount_minorinteger (int64)RequiredAmount in minor units (cents for USD).
at least 0
currencyMoneyCurrencyRequiredISO 4217 currency code. Only USD is supported.
one of: "USD"
max_price_per_gpu_hourMoneyfinding_(current): the most the service pays per GPU-hour, when it has a limit.host Child fields · 2
amount_minorinteger (int64)RequiredAmount in minor units (cents for USD).
at least 0
currencyMoneyCurrencyRequiredISO 4217 currency code. Only USD is supported.
one of: "USD"
countrystringThe host's country (ISO 3166-1 alpha-2), as offers show it.
hosts_checkedintegerfinding_(current): offers of the service's GPU class looked at by the last placement.host at least 0
hosts_busyintegerOf those, how many had too few free GPUs.
at least 0
hosts_over_priceintegerOf those, how many cost more than the service's limit.
at least 0
cachedbooleanpulling_: the image was already on the host;image downloading_: the weights were already on its disk.weights items_doneintegerpulling_: layers done;image downloading_: files done.weights at least 0
items_totalintegerat least 0
load_fractionnumber (double)loading_: the share of the weights in GPU memory.model 0–1
gpu_memory_used_bytesinteger (int64)loading_: GPU memory the model holds.model at least 0
gpu_memory_total_bytesinteger (int64)The memory of the rental's GPUs.
at least 0
kv_cache_bytesinteger (int64)loading_: the KV cache the server allocated.model at least 0
compile_fractionnumber (double)warming_: how far compiling or graph capture is, when the server says.up 0–1
health_pathstringhealth_: the path asked, for examplecheck /.v1/ models attemptsintegerhealth_: checks made so far.check at least 0
last_status_codeintegerhealth_: the last answer's HTTP status; 0 when it did not answer.check 0–599
latency_msintegerhealth_: how long the last answer took.check at least 0
serveRentalServeSummaryWhat the rental serves; absent for a rental created without
serve. The key and the address are ongetRentalServe.may be null
Child fields · 5
kindRentalServeKindRequiredWhat the service speaks.
openai, an OpenAI-compatible API;comfyui, ComfyUI;http, any other HTTP service.one of: "openai", "comfyui", "http"
modelstringRequiredcatalog_idstringreadinessRentalServeReadinessHow far the rental's model service has come, as the host's agent last reported it. Absent until an agent that reports it (
serve_) has, and while the rental is notstatus_ v1 startingorrunning. A report older than 120 seconds is not shown.Child fields · 4
phaseServePhaseRequiredHow far the model service of a rental created with
servehas come.pulling: the host is pulling the rental's image.starting: the container is being created or started, or runs and the service has said nothing yet.downloading: the service is downloading the model's weights (a Legion model image on its first start).loading: it is loading the model, or its port does not accept connections yet.ready: the service says it is ready and its port accepts connections.error: the service says it failed, or the container failed.one of: "pulling", "starting", "downloading", "loading", "ready", "error"
progressnumber (double)With
pulling, the share of the image the host has; withdownloading, the share of the weights. Absent when not known.0–1
sincestring (date-time)RequiredWhen Legion first saw this phase.
reported_atstring (date-time)RequiredWhen the agent last reported it.
failureServeFailure. Why the rental's model service last failed, as the host's agent reported it (
serve_). Kept after the rental stops or is deleted, and cleared once the service is ready again. Absent when no failure was reported (an older agent sends none).failure_ v1 Child fields · 3
reasonstringRequiredA short code:
gpu_(the GPU did not have the memory the model needs, for example because something outside Legion uses it),memory_ insufficient disk_,full download_,failed invalid_,setting server_,exited container_, or another code a newer agent sends. Showfailed messagefor a code you do not know.messagestringRequiredOne sentence in plain words, for example
The model needs 21.; may be empty.6 GiB of GPU memory; 5. 2 GiB is free. reported_atstring (date-time)RequiredWhen the agent first reported this failure.
envarray of EnvVar. The container's environment variables, secrets without their values. Absent when there are none.
Child fields · 3
namestringRequiredsecretbooleanRequiredvaluestringThe value; absent when
secretis true.
model_settingsModelSettings. The model settings set on a catalog model rental; absent when none are.
commandCommandOverride. The entrypoint override; absent when the image's is used.
argsCommandOverride. The CMD override; absent when the image's is used.
400The request is malformed or fails validation. An image reference that is not a container image reference answers `invalid_image_reference`.The request is malformed or fails validation. An image reference that is not a container image reference answers
invalid_.image_ reference typestringRequiredURI reference identifying the problem type: the code's entry in the public error reference,
https:/. Branch on/ legion. ambient. xyz/ docs/ errors#<code> code, never ontype.titlestringRequiredstatusintegerRequiredcodestringRequiredStable machine-readable error code.
detailstringinstancestringThe request path that produced the problem.
resource_idstring (uuid)The resource a conflict refers to, when there is one (
egress_: the request already waiting;request_ exists export_: the pending workspace export).in_ progress accessMeAccessWhether a signed-in person may use Legion during the closed beta, decided on their verified email (case-insensitive):
approved(a member of an organization, holding a pending invitation, or Legion),waitlisted(on the waitlist, not approved yet) ornot_(not on the waitlist). Carried byrequested Me(alwaysapprovedfor a member) and by the problem of a 403access_, and ofnot_ approved getMe's 403no_.organization Child fields · 2
statestringRequiredone of: "approved", "waitlisted", "not_requested"
emailstring (email)RequiredThe verified email the state was decided on.
legalMeLegalThe caller's consent to Legion's legal documents.
requiredlists every document the consent step shows andacceptLegalDocumentstakes, at its current version.acceptedis true when the caller accepted the current version of everyagreedocument; while it is false, every operation exceptgetMe,acceptLegalDocuments,joinMyWaitlistand the wind-down operations (listing, stopping and deleting rentals; listing hosts, stopping new rentals on them and removing them) answers 403terms_.not_ accepted Child fields · 2
requiredarray of LegalDocumentRequiredChild fields · 6
keyLegalDocumentKeyRequiredA legal document:
terms(Terms of Use),acceptable_(Acceptable Use Policy),use privacy(Privacy Policy),data_(Data Handling).handling one of: "terms", "acceptable_use", "privacy", "data_handling"
versionstringRequiredThe current version. A new version of an
agreedocument must be accepted again.effectivestring (date)RequiredThe date the current version took effect.
titlestringRequiredurlstring (uri)RequiredThe document's public page.
acceptancestringRequiredagree: the person agrees to it, and the API is refused until the current version is accepted.acknowledge: the person confirms having read it, in the same step.one of: "agree", "acknowledge"
acceptedbooleanRequired
blocking_rentalsarray of HostRemovalBlockingRentalSorted by ID.
at most 1000 items
Child fields · 6
idstring (uuid)RequirednameFriendlyNameA host's or rental's friendly name: a lowercase DNS label that starts with a letter and does not end with a hyphen. Unique across all hosts and rentals and never reused. A host's is generated as adjective-noun (
amber-falcon) and can be changed by its owner; a rental's is generated as adjective-noun plus four base36 characters (quiet-river-7k2f) and never changes.2–63 characters · pattern ^[a-z][a-z0-9-]{0,61}[a-z0-9]$
stateRentalStateRequiredstarting: GPUs allocated, waiting for the agent to start the container. Not billed. While the rental'simage_isphase fetchingthe agent does not know it yet.running: the container runs. Billed per second.exited: the host reports the container is not running, for example after a crash; the host is restarting it. GPUs stay reserved. Not billed; returns torunningwhen the host reports it running again.stopping: stop requested, waiting for the agent. Not billed. Becomesstoppedwithout the agent once the host has been offline for 90 seconds.stopped: GPUs released, workspace kept on the host. GPU time is not billed. Storage is billed per GiB while the organization has credit, except for aninterruption_rental, which never stops with data.behavior: delete host_: the host stopped syncing. Not billed; returns tooffline runningwhen the host syncs again, and becomesfailedonce the host has not synced forHOST_(24 hours;).STALE_ AFTER deleting: delete requested, waiting for the agent. Not billed. Becomesdeletedwithout the agent once the host has been offline for 90 seconds.deleted: container and workspace removed. Final.failed: the agent could not start or keep running the container. GPUs released. The rental can only be deleted.one of: "starting", "running", "exited", "stopping", "stopped", "host_offline", "deleting", "deleted", "failed"
endablebooleanRequiredRemoving the host anyway (
removeHostwithforcetrue) would end it: it ishost_on a host that is offline, and not on a preservation hold. A rental that runs, or that the host still has to act on, is never endable.offline heldbooleanOn a preservation hold.
rented_by_youbooleanThe caller's own organization rented it, so the caller can open it (
getRental). Only fromremoveHost; absent means false.
stored_data_rentalsarray of HostStoredDataRental. Sorted by ID.
at most 1000 items
Child fields · 8
idstring (uuid)RequirednameFriendlyNameA host's or rental's friendly name: a lowercase DNS label that starts with a letter and does not end with a hyphen. Unique across all hosts and rentals and never reused. A host's is generated as adjective-noun (
amber-falcon) and can be changed by its owner; a rental's is generated as adjective-noun plus four base36 characters (quiet-river-7k2f) and never changes.2–63 characters · pattern ^[a-z][a-z0-9-]{0,61}[a-z0-9]$
stateRentalStateRequiredstarting: GPUs allocated, waiting for the agent to start the container. Not billed. While the rental'simage_isphase fetchingthe agent does not know it yet.running: the container runs. Billed per second.exited: the host reports the container is not running, for example after a crash; the host is restarting it. GPUs stay reserved. Not billed; returns torunningwhen the host reports it running again.stopping: stop requested, waiting for the agent. Not billed. Becomesstoppedwithout the agent once the host has been offline for 90 seconds.stopped: GPUs released, workspace kept on the host. GPU time is not billed. Storage is billed per GiB while the organization has credit, except for aninterruption_rental, which never stops with data.behavior: delete host_: the host stopped syncing. Not billed; returns tooffline runningwhen the host syncs again, and becomesfailedonce the host has not synced forHOST_(24 hours;).STALE_ AFTER deleting: delete requested, waiting for the agent. Not billed. Becomesdeletedwithout the agent once the host has been offline for 90 seconds.deleted: container and workspace removed. Final.failed: the agent could not start or keep running the container. GPUs released. The rental can only be deleted.one of: "starting", "running", "exited", "stopping", "stopped", "host_offline", "deleting", "deleted", "failed"
estimated_size_bytesinteger (int64)RequiredThe size of its files on the host; with
estimate_basis disk_an upper bound.share estimate_basisBackupEstimateBasisRequired. What a backup's quote was computed on.
disk_: the size the rental's host last reported its workspace uses (used disk_).used_ gib disk_: the host does not report it (a host whose disk quota is not enforced, for example not on XFS), so the quote is the rental's whole disk share (share resources.): an upper bound, "up to" this price, trued down to the real size when the backup is ready. Either way the charge never exceeds the quote: a backup larger than its estimate (a staledisk_ gib disk_) is charged the quote, not more.used_ gib one of: "disk_used", "disk_share"
delete_afterstring (date-time)When its files are deleted (its
delete_); absent while held.after backup_stateBackupStateIts renter's newest backup, when it has one.
rented_by_youbooleanThe caller's own organization rented it. Only on the public listener; absent means false.
available_untilstring (date-time). On 409
host_frommaintenance createRental(whatever the window's state), when the host's window starts. Nothing more about the window: its end and reason are only for the renters of rentals on the host.maintenanceMaintenanceSummary. On 409
host_frommaintenance startRentalof the renter's own rental, the window that keeps it stopped.Child fields · 4
startstring (date-time)RequiredWhen the window starts: the host's rentals stop then (after a 5-minute notice).
endstring (date-time)RequiredThe planned end. The provider may end the window earlier.
reasonMaintenanceReasonRequired. Why a provider takes a host down, shown to the renters of rentals on it. The list grows: accept a value you do not know.
one of: "hardware", "software", "network", "power", "facility", "other"
stateMaintenanceStateRequired.
scheduled(announced, renters told),closing(the last 5 minutes before the start: the penalty-free outcome is decided, nothing can start, rentals in their notice),active(the host is in maintenance, its rentals stopped),overrun(the planned end passed and the host has not synced back),completed,cancelled. The list grows: accept a value you do not know.one of: "scheduled", "closing", "active", "overrun", "completed", "cancelled"
test_switchAdminOrgTestSwitchChild fields · 5
test_orgbooleanRequiredallowedbooleanRequiredblocking_rentalsarray of AdminOrgTestBlockingRentalRequiredat most 100 items
Child fields · 7
idstring (uuid)RequirednameFriendlyNameA host's or rental's friendly name: a lowercase DNS label that starts with a letter and does not end with a hyphen. Unique across all hosts and rentals and never reused. A host's is generated as adjective-noun (
amber-falcon) and can be changed by its owner; a rental's is generated as adjective-noun plus four base36 characters (quiet-river-7k2f) and never changes.2–63 characters · pattern ^[a-z][a-z0-9-]{0,61}[a-z0-9]$
stateRentalStateRequiredstarting: GPUs allocated, waiting for the agent to start the container. Not billed. While the rental'simage_isphase fetchingthe agent does not know it yet.running: the container runs. Billed per second.exited: the host reports the container is not running, for example after a crash; the host is restarting it. GPUs stay reserved. Not billed; returns torunningwhen the host reports it running again.stopping: stop requested, waiting for the agent. Not billed. Becomesstoppedwithout the agent once the host has been offline for 90 seconds.stopped: GPUs released, workspace kept on the host. GPU time is not billed. Storage is billed per GiB while the organization has credit, except for aninterruption_rental, which never stops with data.behavior: delete host_: the host stopped syncing. Not billed; returns tooffline runningwhen the host syncs again, and becomesfailedonce the host has not synced forHOST_(24 hours;).STALE_ AFTER deleting: delete requested, waiting for the agent. Not billed. Becomesdeletedwithout the agent once the host has been offline for 90 seconds.deleted: container and workspace removed. Final.failed: the agent could not start or keep running the container. GPUs released. The rental can only be deleted.one of: "starting", "running", "exited", "stopping", "stopped", "host_offline", "deleting", "deleted", "failed"
renter_orgOrgRequiredChild fields · 2
idstring (uuid)RequirednamestringRequired
provider_orgOrgRequiredChild fields · 2
idstring (uuid)RequirednamestringRequired
host_idstring (uuid)Requiredhost_nameFriendlyNameA host's or rental's friendly name: a lowercase DNS label that starts with a letter and does not end with a hyphen. Unique across all hosts and rentals and never reused. A host's is generated as adjective-noun (
amber-falcon) and can be changed by its owner; a rental's is generated as adjective-noun plus four base36 characters (quiet-river-7k2f) and never changes.2–63 characters · pattern ^[a-z][a-z0-9-]{0,61}[a-z0-9]$
blocking_rental_countintegerRequiredat least 0
unpaid_earningsMoneyRequiredChild fields · 2
amount_minorinteger (int64)RequiredAmount in minor units (cents for USD).
at least 0
currencyMoneyCurrencyRequiredISO 4217 currency code. Only USD is supported.
one of: "USD"
current_price_per_gpu_hourMoneyThe host's price per GPU-hour now, on 409
price_fromchanged createRental, the price a bid would win now on 409bid_, or the floor on 409too_ low bid_; all-in, as the renter sees prices.below_ floor Child fields · 2
amount_minorinteger (int64)RequiredAmount in minor units (cents for USD).
at least 0
currencyMoneyCurrencyRequiredISO 4217 currency code. Only USD is supported.
one of: "USD"
next_available_atstring (date-time)When the action is allowed again, on 429
benchmark_fromrequest_ limited requestHostBenchmark.reasonPromoIneligibleReasonWhy the organization may not redeem the promo code, on 403
promo_.code_ not_ eligible registryRegistrySignInRegistry. The registry a sign-in would be for, on 422
image_of an image on a registry Legion takes sign-ins for (offer to add one withprivate putRegistrySignIn), and on 422registry_(the sign-in the registry refused). Only ever one of these four;sign_ in_ rejected registry_names any host.host registry_hoststring. The registry host a credential is or would be for: on 422
image_(offer to add one withprivate createRegistryCredential),registry_,sign_ in_ rejected registry_, and the refusals of a registry (credential_ rejected registry_,ecr_ unsupported registry_,auth_ unsupported registry_,host_ not_ allowed registry_).realm_ not_ allowed at most 253 characters
registry_credential_idstring (uuid). The credential the registry refused, on 422
registry_.sign_ in_ rejected registry_credential_rentalsarray of RegistryCredentialRental. The rentals that still use a registry credential, on 409
registry_fromcredential_ in_ use deleteRegistryCredentialanddeleteRegistrySignIn. Oldest first.at most 100 items
Child fields · 3
idstring (uuid)RequirednamestringRequiredstateRentalStateRequiredstarting: GPUs allocated, waiting for the agent to start the container. Not billed. While the rental'simage_isphase fetchingthe agent does not know it yet.running: the container runs. Billed per second.exited: the host reports the container is not running, for example after a crash; the host is restarting it. GPUs stay reserved. Not billed; returns torunningwhen the host reports it running again.stopping: stop requested, waiting for the agent. Not billed. Becomesstoppedwithout the agent once the host has been offline for 90 seconds.stopped: GPUs released, workspace kept on the host. GPU time is not billed. Storage is billed per GiB while the organization has credit, except for aninterruption_rental, which never stops with data.behavior: delete host_: the host stopped syncing. Not billed; returns tooffline runningwhen the host syncs again, and becomesfailedonce the host has not synced forHOST_(24 hours;).STALE_ AFTER deleting: delete requested, waiting for the agent. Not billed. Becomesdeletedwithout the agent once the host has been offline for 90 seconds.deleted: container and workspace removed. Final.failed: the agent could not start or keep running the container. GPUs released. The rental can only be deleted.one of: "starting", "running", "exited", "stopping", "stopped", "host_offline", "deleting", "deleted", "failed"
invited_emailstring. The address an invitation is for, masked (
g•••y@example.), on 403com invitation_fromfor_ another_ account getMyInvitation.at most 320 characters
401Missing, unknown, expired or revoked credentials.Missing, unknown, expired or revoked credentials.
typestringRequiredURI reference identifying the problem type: the code's entry in the public error reference,
https:/. Branch on/ legion. ambient. xyz/ docs/ errors#<code> code, never ontype.titlestringRequiredstatusintegerRequiredcodestringRequiredStable machine-readable error code.
detailstringinstancestringThe request path that produced the problem.
resource_idstring (uuid)The resource a conflict refers to, when there is one (
egress_: the request already waiting;request_ exists export_: the pending workspace export).in_ progress accessMeAccessWhether a signed-in person may use Legion during the closed beta, decided on their verified email (case-insensitive):
approved(a member of an organization, holding a pending invitation, or Legion),waitlisted(on the waitlist, not approved yet) ornot_(not on the waitlist). Carried byrequested Me(alwaysapprovedfor a member) and by the problem of a 403access_, and ofnot_ approved getMe's 403no_.organization Child fields · 2
statestringRequiredone of: "approved", "waitlisted", "not_requested"
emailstring (email)RequiredThe verified email the state was decided on.
legalMeLegalThe caller's consent to Legion's legal documents.
requiredlists every document the consent step shows andacceptLegalDocumentstakes, at its current version.acceptedis true when the caller accepted the current version of everyagreedocument; while it is false, every operation exceptgetMe,acceptLegalDocuments,joinMyWaitlistand the wind-down operations (listing, stopping and deleting rentals; listing hosts, stopping new rentals on them and removing them) answers 403terms_.not_ accepted Child fields · 2
requiredarray of LegalDocumentRequiredChild fields · 6
keyLegalDocumentKeyRequiredA legal document:
terms(Terms of Use),acceptable_(Acceptable Use Policy),use privacy(Privacy Policy),data_(Data Handling).handling one of: "terms", "acceptable_use", "privacy", "data_handling"
versionstringRequiredThe current version. A new version of an
agreedocument must be accepted again.effectivestring (date)RequiredThe date the current version took effect.
titlestringRequiredurlstring (uri)RequiredThe document's public page.
acceptancestringRequiredagree: the person agrees to it, and the API is refused until the current version is accepted.acknowledge: the person confirms having read it, in the same step.one of: "agree", "acknowledge"
acceptedbooleanRequired
blocking_rentalsarray of HostRemovalBlockingRentalSorted by ID.
at most 1000 items
Child fields · 6
idstring (uuid)RequirednameFriendlyNameA host's or rental's friendly name: a lowercase DNS label that starts with a letter and does not end with a hyphen. Unique across all hosts and rentals and never reused. A host's is generated as adjective-noun (
amber-falcon) and can be changed by its owner; a rental's is generated as adjective-noun plus four base36 characters (quiet-river-7k2f) and never changes.2–63 characters · pattern ^[a-z][a-z0-9-]{0,61}[a-z0-9]$
stateRentalStateRequiredstarting: GPUs allocated, waiting for the agent to start the container. Not billed. While the rental'simage_isphase fetchingthe agent does not know it yet.running: the container runs. Billed per second.exited: the host reports the container is not running, for example after a crash; the host is restarting it. GPUs stay reserved. Not billed; returns torunningwhen the host reports it running again.stopping: stop requested, waiting for the agent. Not billed. Becomesstoppedwithout the agent once the host has been offline for 90 seconds.stopped: GPUs released, workspace kept on the host. GPU time is not billed. Storage is billed per GiB while the organization has credit, except for aninterruption_rental, which never stops with data.behavior: delete host_: the host stopped syncing. Not billed; returns tooffline runningwhen the host syncs again, and becomesfailedonce the host has not synced forHOST_(24 hours;).STALE_ AFTER deleting: delete requested, waiting for the agent. Not billed. Becomesdeletedwithout the agent once the host has been offline for 90 seconds.deleted: container and workspace removed. Final.failed: the agent could not start or keep running the container. GPUs released. The rental can only be deleted.one of: "starting", "running", "exited", "stopping", "stopped", "host_offline", "deleting", "deleted", "failed"
endablebooleanRequiredRemoving the host anyway (
removeHostwithforcetrue) would end it: it ishost_on a host that is offline, and not on a preservation hold. A rental that runs, or that the host still has to act on, is never endable.offline heldbooleanOn a preservation hold.
rented_by_youbooleanThe caller's own organization rented it, so the caller can open it (
getRental). Only fromremoveHost; absent means false.
stored_data_rentalsarray of HostStoredDataRental. Sorted by ID.
at most 1000 items
Child fields · 8
idstring (uuid)RequirednameFriendlyNameA host's or rental's friendly name: a lowercase DNS label that starts with a letter and does not end with a hyphen. Unique across all hosts and rentals and never reused. A host's is generated as adjective-noun (
amber-falcon) and can be changed by its owner; a rental's is generated as adjective-noun plus four base36 characters (quiet-river-7k2f) and never changes.2–63 characters · pattern ^[a-z][a-z0-9-]{0,61}[a-z0-9]$
stateRentalStateRequiredstarting: GPUs allocated, waiting for the agent to start the container. Not billed. While the rental'simage_isphase fetchingthe agent does not know it yet.running: the container runs. Billed per second.exited: the host reports the container is not running, for example after a crash; the host is restarting it. GPUs stay reserved. Not billed; returns torunningwhen the host reports it running again.stopping: stop requested, waiting for the agent. Not billed. Becomesstoppedwithout the agent once the host has been offline for 90 seconds.stopped: GPUs released, workspace kept on the host. GPU time is not billed. Storage is billed per GiB while the organization has credit, except for aninterruption_rental, which never stops with data.behavior: delete host_: the host stopped syncing. Not billed; returns tooffline runningwhen the host syncs again, and becomesfailedonce the host has not synced forHOST_(24 hours;).STALE_ AFTER deleting: delete requested, waiting for the agent. Not billed. Becomesdeletedwithout the agent once the host has been offline for 90 seconds.deleted: container and workspace removed. Final.failed: the agent could not start or keep running the container. GPUs released. The rental can only be deleted.one of: "starting", "running", "exited", "stopping", "stopped", "host_offline", "deleting", "deleted", "failed"
estimated_size_bytesinteger (int64)RequiredThe size of its files on the host; with
estimate_basis disk_an upper bound.share estimate_basisBackupEstimateBasisRequired. What a backup's quote was computed on.
disk_: the size the rental's host last reported its workspace uses (used disk_).used_ gib disk_: the host does not report it (a host whose disk quota is not enforced, for example not on XFS), so the quote is the rental's whole disk share (share resources.): an upper bound, "up to" this price, trued down to the real size when the backup is ready. Either way the charge never exceeds the quote: a backup larger than its estimate (a staledisk_ gib disk_) is charged the quote, not more.used_ gib one of: "disk_used", "disk_share"
delete_afterstring (date-time)When its files are deleted (its
delete_); absent while held.after backup_stateBackupStateIts renter's newest backup, when it has one.
rented_by_youbooleanThe caller's own organization rented it. Only on the public listener; absent means false.
available_untilstring (date-time). On 409
host_frommaintenance createRental(whatever the window's state), when the host's window starts. Nothing more about the window: its end and reason are only for the renters of rentals on the host.maintenanceMaintenanceSummary. On 409
host_frommaintenance startRentalof the renter's own rental, the window that keeps it stopped.Child fields · 4
startstring (date-time)RequiredWhen the window starts: the host's rentals stop then (after a 5-minute notice).
endstring (date-time)RequiredThe planned end. The provider may end the window earlier.
reasonMaintenanceReasonRequired. Why a provider takes a host down, shown to the renters of rentals on it. The list grows: accept a value you do not know.
one of: "hardware", "software", "network", "power", "facility", "other"
stateMaintenanceStateRequired.
scheduled(announced, renters told),closing(the last 5 minutes before the start: the penalty-free outcome is decided, nothing can start, rentals in their notice),active(the host is in maintenance, its rentals stopped),overrun(the planned end passed and the host has not synced back),completed,cancelled. The list grows: accept a value you do not know.one of: "scheduled", "closing", "active", "overrun", "completed", "cancelled"
test_switchAdminOrgTestSwitchChild fields · 5
test_orgbooleanRequiredallowedbooleanRequiredblocking_rentalsarray of AdminOrgTestBlockingRentalRequiredat most 100 items
Child fields · 7
idstring (uuid)RequirednameFriendlyNameA host's or rental's friendly name: a lowercase DNS label that starts with a letter and does not end with a hyphen. Unique across all hosts and rentals and never reused. A host's is generated as adjective-noun (
amber-falcon) and can be changed by its owner; a rental's is generated as adjective-noun plus four base36 characters (quiet-river-7k2f) and never changes.2–63 characters · pattern ^[a-z][a-z0-9-]{0,61}[a-z0-9]$
stateRentalStateRequiredstarting: GPUs allocated, waiting for the agent to start the container. Not billed. While the rental'simage_isphase fetchingthe agent does not know it yet.running: the container runs. Billed per second.exited: the host reports the container is not running, for example after a crash; the host is restarting it. GPUs stay reserved. Not billed; returns torunningwhen the host reports it running again.stopping: stop requested, waiting for the agent. Not billed. Becomesstoppedwithout the agent once the host has been offline for 90 seconds.stopped: GPUs released, workspace kept on the host. GPU time is not billed. Storage is billed per GiB while the organization has credit, except for aninterruption_rental, which never stops with data.behavior: delete host_: the host stopped syncing. Not billed; returns tooffline runningwhen the host syncs again, and becomesfailedonce the host has not synced forHOST_(24 hours;).STALE_ AFTER deleting: delete requested, waiting for the agent. Not billed. Becomesdeletedwithout the agent once the host has been offline for 90 seconds.deleted: container and workspace removed. Final.failed: the agent could not start or keep running the container. GPUs released. The rental can only be deleted.one of: "starting", "running", "exited", "stopping", "stopped", "host_offline", "deleting", "deleted", "failed"
renter_orgOrgRequiredChild fields · 2
idstring (uuid)RequirednamestringRequired
provider_orgOrgRequiredChild fields · 2
idstring (uuid)RequirednamestringRequired
host_idstring (uuid)Requiredhost_nameFriendlyNameA host's or rental's friendly name: a lowercase DNS label that starts with a letter and does not end with a hyphen. Unique across all hosts and rentals and never reused. A host's is generated as adjective-noun (
amber-falcon) and can be changed by its owner; a rental's is generated as adjective-noun plus four base36 characters (quiet-river-7k2f) and never changes.2–63 characters · pattern ^[a-z][a-z0-9-]{0,61}[a-z0-9]$
blocking_rental_countintegerRequiredat least 0
unpaid_earningsMoneyRequiredChild fields · 2
amount_minorinteger (int64)RequiredAmount in minor units (cents for USD).
at least 0
currencyMoneyCurrencyRequiredISO 4217 currency code. Only USD is supported.
one of: "USD"
current_price_per_gpu_hourMoneyThe host's price per GPU-hour now, on 409
price_fromchanged createRental, the price a bid would win now on 409bid_, or the floor on 409too_ low bid_; all-in, as the renter sees prices.below_ floor Child fields · 2
amount_minorinteger (int64)RequiredAmount in minor units (cents for USD).
at least 0
currencyMoneyCurrencyRequiredISO 4217 currency code. Only USD is supported.
one of: "USD"
next_available_atstring (date-time)When the action is allowed again, on 429
benchmark_fromrequest_ limited requestHostBenchmark.reasonPromoIneligibleReasonWhy the organization may not redeem the promo code, on 403
promo_.code_ not_ eligible registryRegistrySignInRegistry. The registry a sign-in would be for, on 422
image_of an image on a registry Legion takes sign-ins for (offer to add one withprivate putRegistrySignIn), and on 422registry_(the sign-in the registry refused). Only ever one of these four;sign_ in_ rejected registry_names any host.host registry_hoststring. The registry host a credential is or would be for: on 422
image_(offer to add one withprivate createRegistryCredential),registry_,sign_ in_ rejected registry_, and the refusals of a registry (credential_ rejected registry_,ecr_ unsupported registry_,auth_ unsupported registry_,host_ not_ allowed registry_).realm_ not_ allowed at most 253 characters
registry_credential_idstring (uuid). The credential the registry refused, on 422
registry_.sign_ in_ rejected registry_credential_rentalsarray of RegistryCredentialRental. The rentals that still use a registry credential, on 409
registry_fromcredential_ in_ use deleteRegistryCredentialanddeleteRegistrySignIn. Oldest first.at most 100 items
Child fields · 3
idstring (uuid)RequirednamestringRequiredstateRentalStateRequiredstarting: GPUs allocated, waiting for the agent to start the container. Not billed. While the rental'simage_isphase fetchingthe agent does not know it yet.running: the container runs. Billed per second.exited: the host reports the container is not running, for example after a crash; the host is restarting it. GPUs stay reserved. Not billed; returns torunningwhen the host reports it running again.stopping: stop requested, waiting for the agent. Not billed. Becomesstoppedwithout the agent once the host has been offline for 90 seconds.stopped: GPUs released, workspace kept on the host. GPU time is not billed. Storage is billed per GiB while the organization has credit, except for aninterruption_rental, which never stops with data.behavior: delete host_: the host stopped syncing. Not billed; returns tooffline runningwhen the host syncs again, and becomesfailedonce the host has not synced forHOST_(24 hours;).STALE_ AFTER deleting: delete requested, waiting for the agent. Not billed. Becomesdeletedwithout the agent once the host has been offline for 90 seconds.deleted: container and workspace removed. Final.failed: the agent could not start or keep running the container. GPUs released. The rental can only be deleted.one of: "starting", "running", "exited", "stopping", "stopped", "host_offline", "deleting", "deleted", "failed"
invited_emailstring. The address an invitation is for, masked (
g•••y@example.), on 403com invitation_fromfor_ another_ account getMyInvitation.at most 320 characters
402The organization has no credit (`code` is `insufficient_credit`).The organization has no credit (
codeisinsufficient_).credit typestringRequiredURI reference identifying the problem type: the code's entry in the public error reference,
https:/. Branch on/ legion. ambient. xyz/ docs/ errors#<code> code, never ontype.titlestringRequiredstatusintegerRequiredcodestringRequiredStable machine-readable error code.
detailstringinstancestringThe request path that produced the problem.
resource_idstring (uuid)The resource a conflict refers to, when there is one (
egress_: the request already waiting;request_ exists export_: the pending workspace export).in_ progress accessMeAccessWhether a signed-in person may use Legion during the closed beta, decided on their verified email (case-insensitive):
approved(a member of an organization, holding a pending invitation, or Legion),waitlisted(on the waitlist, not approved yet) ornot_(not on the waitlist). Carried byrequested Me(alwaysapprovedfor a member) and by the problem of a 403access_, and ofnot_ approved getMe's 403no_.organization Child fields · 2
statestringRequiredone of: "approved", "waitlisted", "not_requested"
emailstring (email)RequiredThe verified email the state was decided on.
legalMeLegalThe caller's consent to Legion's legal documents.
requiredlists every document the consent step shows andacceptLegalDocumentstakes, at its current version.acceptedis true when the caller accepted the current version of everyagreedocument; while it is false, every operation exceptgetMe,acceptLegalDocuments,joinMyWaitlistand the wind-down operations (listing, stopping and deleting rentals; listing hosts, stopping new rentals on them and removing them) answers 403terms_.not_ accepted Child fields · 2
requiredarray of LegalDocumentRequiredChild fields · 6
keyLegalDocumentKeyRequiredA legal document:
terms(Terms of Use),acceptable_(Acceptable Use Policy),use privacy(Privacy Policy),data_(Data Handling).handling one of: "terms", "acceptable_use", "privacy", "data_handling"
versionstringRequiredThe current version. A new version of an
agreedocument must be accepted again.effectivestring (date)RequiredThe date the current version took effect.
titlestringRequiredurlstring (uri)RequiredThe document's public page.
acceptancestringRequiredagree: the person agrees to it, and the API is refused until the current version is accepted.acknowledge: the person confirms having read it, in the same step.one of: "agree", "acknowledge"
acceptedbooleanRequired
blocking_rentalsarray of HostRemovalBlockingRentalSorted by ID.
at most 1000 items
Child fields · 6
idstring (uuid)RequirednameFriendlyNameA host's or rental's friendly name: a lowercase DNS label that starts with a letter and does not end with a hyphen. Unique across all hosts and rentals and never reused. A host's is generated as adjective-noun (
amber-falcon) and can be changed by its owner; a rental's is generated as adjective-noun plus four base36 characters (quiet-river-7k2f) and never changes.2–63 characters · pattern ^[a-z][a-z0-9-]{0,61}[a-z0-9]$
stateRentalStateRequiredstarting: GPUs allocated, waiting for the agent to start the container. Not billed. While the rental'simage_isphase fetchingthe agent does not know it yet.running: the container runs. Billed per second.exited: the host reports the container is not running, for example after a crash; the host is restarting it. GPUs stay reserved. Not billed; returns torunningwhen the host reports it running again.stopping: stop requested, waiting for the agent. Not billed. Becomesstoppedwithout the agent once the host has been offline for 90 seconds.stopped: GPUs released, workspace kept on the host. GPU time is not billed. Storage is billed per GiB while the organization has credit, except for aninterruption_rental, which never stops with data.behavior: delete host_: the host stopped syncing. Not billed; returns tooffline runningwhen the host syncs again, and becomesfailedonce the host has not synced forHOST_(24 hours;).STALE_ AFTER deleting: delete requested, waiting for the agent. Not billed. Becomesdeletedwithout the agent once the host has been offline for 90 seconds.deleted: container and workspace removed. Final.failed: the agent could not start or keep running the container. GPUs released. The rental can only be deleted.one of: "starting", "running", "exited", "stopping", "stopped", "host_offline", "deleting", "deleted", "failed"
endablebooleanRequiredRemoving the host anyway (
removeHostwithforcetrue) would end it: it ishost_on a host that is offline, and not on a preservation hold. A rental that runs, or that the host still has to act on, is never endable.offline heldbooleanOn a preservation hold.
rented_by_youbooleanThe caller's own organization rented it, so the caller can open it (
getRental). Only fromremoveHost; absent means false.
stored_data_rentalsarray of HostStoredDataRental. Sorted by ID.
at most 1000 items
Child fields · 8
idstring (uuid)RequirednameFriendlyNameA host's or rental's friendly name: a lowercase DNS label that starts with a letter and does not end with a hyphen. Unique across all hosts and rentals and never reused. A host's is generated as adjective-noun (
amber-falcon) and can be changed by its owner; a rental's is generated as adjective-noun plus four base36 characters (quiet-river-7k2f) and never changes.2–63 characters · pattern ^[a-z][a-z0-9-]{0,61}[a-z0-9]$
stateRentalStateRequiredstarting: GPUs allocated, waiting for the agent to start the container. Not billed. While the rental'simage_isphase fetchingthe agent does not know it yet.running: the container runs. Billed per second.exited: the host reports the container is not running, for example after a crash; the host is restarting it. GPUs stay reserved. Not billed; returns torunningwhen the host reports it running again.stopping: stop requested, waiting for the agent. Not billed. Becomesstoppedwithout the agent once the host has been offline for 90 seconds.stopped: GPUs released, workspace kept on the host. GPU time is not billed. Storage is billed per GiB while the organization has credit, except for aninterruption_rental, which never stops with data.behavior: delete host_: the host stopped syncing. Not billed; returns tooffline runningwhen the host syncs again, and becomesfailedonce the host has not synced forHOST_(24 hours;).STALE_ AFTER deleting: delete requested, waiting for the agent. Not billed. Becomesdeletedwithout the agent once the host has been offline for 90 seconds.deleted: container and workspace removed. Final.failed: the agent could not start or keep running the container. GPUs released. The rental can only be deleted.one of: "starting", "running", "exited", "stopping", "stopped", "host_offline", "deleting", "deleted", "failed"
estimated_size_bytesinteger (int64)RequiredThe size of its files on the host; with
estimate_basis disk_an upper bound.share estimate_basisBackupEstimateBasisRequired. What a backup's quote was computed on.
disk_: the size the rental's host last reported its workspace uses (used disk_).used_ gib disk_: the host does not report it (a host whose disk quota is not enforced, for example not on XFS), so the quote is the rental's whole disk share (share resources.): an upper bound, "up to" this price, trued down to the real size when the backup is ready. Either way the charge never exceeds the quote: a backup larger than its estimate (a staledisk_ gib disk_) is charged the quote, not more.used_ gib one of: "disk_used", "disk_share"
delete_afterstring (date-time)When its files are deleted (its
delete_); absent while held.after backup_stateBackupStateIts renter's newest backup, when it has one.
rented_by_youbooleanThe caller's own organization rented it. Only on the public listener; absent means false.
available_untilstring (date-time). On 409
host_frommaintenance createRental(whatever the window's state), when the host's window starts. Nothing more about the window: its end and reason are only for the renters of rentals on the host.maintenanceMaintenanceSummary. On 409
host_frommaintenance startRentalof the renter's own rental, the window that keeps it stopped.Child fields · 4
startstring (date-time)RequiredWhen the window starts: the host's rentals stop then (after a 5-minute notice).
endstring (date-time)RequiredThe planned end. The provider may end the window earlier.
reasonMaintenanceReasonRequired. Why a provider takes a host down, shown to the renters of rentals on it. The list grows: accept a value you do not know.
one of: "hardware", "software", "network", "power", "facility", "other"
stateMaintenanceStateRequired.
scheduled(announced, renters told),closing(the last 5 minutes before the start: the penalty-free outcome is decided, nothing can start, rentals in their notice),active(the host is in maintenance, its rentals stopped),overrun(the planned end passed and the host has not synced back),completed,cancelled. The list grows: accept a value you do not know.one of: "scheduled", "closing", "active", "overrun", "completed", "cancelled"
test_switchAdminOrgTestSwitchChild fields · 5
test_orgbooleanRequiredallowedbooleanRequiredblocking_rentalsarray of AdminOrgTestBlockingRentalRequiredat most 100 items
Child fields · 7
idstring (uuid)RequirednameFriendlyNameA host's or rental's friendly name: a lowercase DNS label that starts with a letter and does not end with a hyphen. Unique across all hosts and rentals and never reused. A host's is generated as adjective-noun (
amber-falcon) and can be changed by its owner; a rental's is generated as adjective-noun plus four base36 characters (quiet-river-7k2f) and never changes.2–63 characters · pattern ^[a-z][a-z0-9-]{0,61}[a-z0-9]$
stateRentalStateRequiredstarting: GPUs allocated, waiting for the agent to start the container. Not billed. While the rental'simage_isphase fetchingthe agent does not know it yet.running: the container runs. Billed per second.exited: the host reports the container is not running, for example after a crash; the host is restarting it. GPUs stay reserved. Not billed; returns torunningwhen the host reports it running again.stopping: stop requested, waiting for the agent. Not billed. Becomesstoppedwithout the agent once the host has been offline for 90 seconds.stopped: GPUs released, workspace kept on the host. GPU time is not billed. Storage is billed per GiB while the organization has credit, except for aninterruption_rental, which never stops with data.behavior: delete host_: the host stopped syncing. Not billed; returns tooffline runningwhen the host syncs again, and becomesfailedonce the host has not synced forHOST_(24 hours;).STALE_ AFTER deleting: delete requested, waiting for the agent. Not billed. Becomesdeletedwithout the agent once the host has been offline for 90 seconds.deleted: container and workspace removed. Final.failed: the agent could not start or keep running the container. GPUs released. The rental can only be deleted.one of: "starting", "running", "exited", "stopping", "stopped", "host_offline", "deleting", "deleted", "failed"
renter_orgOrgRequiredChild fields · 2
idstring (uuid)RequirednamestringRequired
provider_orgOrgRequiredChild fields · 2
idstring (uuid)RequirednamestringRequired
host_idstring (uuid)Requiredhost_nameFriendlyNameA host's or rental's friendly name: a lowercase DNS label that starts with a letter and does not end with a hyphen. Unique across all hosts and rentals and never reused. A host's is generated as adjective-noun (
amber-falcon) and can be changed by its owner; a rental's is generated as adjective-noun plus four base36 characters (quiet-river-7k2f) and never changes.2–63 characters · pattern ^[a-z][a-z0-9-]{0,61}[a-z0-9]$
blocking_rental_countintegerRequiredat least 0
unpaid_earningsMoneyRequiredChild fields · 2
amount_minorinteger (int64)RequiredAmount in minor units (cents for USD).
at least 0
currencyMoneyCurrencyRequiredISO 4217 currency code. Only USD is supported.
one of: "USD"
current_price_per_gpu_hourMoneyThe host's price per GPU-hour now, on 409
price_fromchanged createRental, the price a bid would win now on 409bid_, or the floor on 409too_ low bid_; all-in, as the renter sees prices.below_ floor Child fields · 2
amount_minorinteger (int64)RequiredAmount in minor units (cents for USD).
at least 0
currencyMoneyCurrencyRequiredISO 4217 currency code. Only USD is supported.
one of: "USD"
next_available_atstring (date-time)When the action is allowed again, on 429
benchmark_fromrequest_ limited requestHostBenchmark.reasonPromoIneligibleReasonWhy the organization may not redeem the promo code, on 403
promo_.code_ not_ eligible registryRegistrySignInRegistry. The registry a sign-in would be for, on 422
image_of an image on a registry Legion takes sign-ins for (offer to add one withprivate putRegistrySignIn), and on 422registry_(the sign-in the registry refused). Only ever one of these four;sign_ in_ rejected registry_names any host.host registry_hoststring. The registry host a credential is or would be for: on 422
image_(offer to add one withprivate createRegistryCredential),registry_,sign_ in_ rejected registry_, and the refusals of a registry (credential_ rejected registry_,ecr_ unsupported registry_,auth_ unsupported registry_,host_ not_ allowed registry_).realm_ not_ allowed at most 253 characters
registry_credential_idstring (uuid). The credential the registry refused, on 422
registry_.sign_ in_ rejected registry_credential_rentalsarray of RegistryCredentialRental. The rentals that still use a registry credential, on 409
registry_fromcredential_ in_ use deleteRegistryCredentialanddeleteRegistrySignIn. Oldest first.at most 100 items
Child fields · 3
idstring (uuid)RequirednamestringRequiredstateRentalStateRequiredstarting: GPUs allocated, waiting for the agent to start the container. Not billed. While the rental'simage_isphase fetchingthe agent does not know it yet.running: the container runs. Billed per second.exited: the host reports the container is not running, for example after a crash; the host is restarting it. GPUs stay reserved. Not billed; returns torunningwhen the host reports it running again.stopping: stop requested, waiting for the agent. Not billed. Becomesstoppedwithout the agent once the host has been offline for 90 seconds.stopped: GPUs released, workspace kept on the host. GPU time is not billed. Storage is billed per GiB while the organization has credit, except for aninterruption_rental, which never stops with data.behavior: delete host_: the host stopped syncing. Not billed; returns tooffline runningwhen the host syncs again, and becomesfailedonce the host has not synced forHOST_(24 hours;).STALE_ AFTER deleting: delete requested, waiting for the agent. Not billed. Becomesdeletedwithout the agent once the host has been offline for 90 seconds.deleted: container and workspace removed. Final.failed: the agent could not start or keep running the container. GPUs released. The rental can only be deleted.one of: "starting", "running", "exited", "stopping", "stopped", "host_offline", "deleting", "deleted", "failed"
invited_emailstring. The address an invitation is for, masked (
g•••y@example.), on 403com invitation_fromfor_ another_ account getMyInvitation.at most 320 characters
403The caller lacks the permission this operation requires (`forbidden`), or signed in without having joined an organization yet (`no_organization`; `getOnboarding` and the invitation and organization operations under it work), or could not sign in (`email_unverified`, `account_conflict`, and `domain_not_allowed`). `not_invited` is no longer returned to session tokens.The caller lacks the permission this operation requires (
forbidden), or signed in without having joined an organization yet (no_;organization getOnboardingand the invitation and organization operations under it work), or could not sign in (email_,unverified account_, andconflict domain_).not_ allowed not_is no longer returned to session tokens.invited access_: a signed-in person who is not approved for the beta yet. Every operation that takes a credential answers it to them, exceptnot_ approved getMeandjoinMyWaitlist; the problem carriesaccess(waitlistedornot_, and the email). Approved means a member of an organization, holding a pending invitation, or Legion; an API key always belongs to a member.requested oauth_: the caller sent an OAuth access token (token_ mcp_ only lgo_), which is accepted only bymcpMessageand the tool calls it dispatches. Every other operation answers it, whatever the token's scope. Use an API key or the Legion web app.org_: the caller's organization is suspended. Every operation that takes a credential answers it, by session or API key, exceptsuspended getMe(which showsorg.andsuspended_ at org.) and the support operations undersuspension_ reason /.v1/ support/ terms_: an approved caller who has not accepted the current version of the Terms of Use and the Acceptable Use Policy. Every operation that takes a credential answers it, exceptnot_ accepted getMe,acceptLegalDocuments,joinMyWaitlistand the wind-down operations (listRentals,stopRental,deleteRental,listHosts,updateListingwithlistedfalse,removeHost); the problem carrieslegal. An API key acts for the person who created it, so it is refused until that person accepts. Terminal operations also returnsession_(called with an API key) andrequired step_(neither a sign-in nor a step-up challenge within the step-up window).up_ required typestringRequiredURI reference identifying the problem type: the code's entry in the public error reference,
https:/. Branch on/ legion. ambient. xyz/ docs/ errors#<code> code, never ontype.titlestringRequiredstatusintegerRequiredcodestringRequiredStable machine-readable error code.
detailstringinstancestringThe request path that produced the problem.
resource_idstring (uuid)The resource a conflict refers to, when there is one (
egress_: the request already waiting;request_ exists export_: the pending workspace export).in_ progress accessMeAccessWhether a signed-in person may use Legion during the closed beta, decided on their verified email (case-insensitive):
approved(a member of an organization, holding a pending invitation, or Legion),waitlisted(on the waitlist, not approved yet) ornot_(not on the waitlist). Carried byrequested Me(alwaysapprovedfor a member) and by the problem of a 403access_, and ofnot_ approved getMe's 403no_.organization Child fields · 2
statestringRequiredone of: "approved", "waitlisted", "not_requested"
emailstring (email)RequiredThe verified email the state was decided on.
legalMeLegalThe caller's consent to Legion's legal documents.
requiredlists every document the consent step shows andacceptLegalDocumentstakes, at its current version.acceptedis true when the caller accepted the current version of everyagreedocument; while it is false, every operation exceptgetMe,acceptLegalDocuments,joinMyWaitlistand the wind-down operations (listing, stopping and deleting rentals; listing hosts, stopping new rentals on them and removing them) answers 403terms_.not_ accepted Child fields · 2
requiredarray of LegalDocumentRequiredChild fields · 6
keyLegalDocumentKeyRequiredA legal document:
terms(Terms of Use),acceptable_(Acceptable Use Policy),use privacy(Privacy Policy),data_(Data Handling).handling one of: "terms", "acceptable_use", "privacy", "data_handling"
versionstringRequiredThe current version. A new version of an
agreedocument must be accepted again.effectivestring (date)RequiredThe date the current version took effect.
titlestringRequiredurlstring (uri)RequiredThe document's public page.
acceptancestringRequiredagree: the person agrees to it, and the API is refused until the current version is accepted.acknowledge: the person confirms having read it, in the same step.one of: "agree", "acknowledge"
acceptedbooleanRequired
blocking_rentalsarray of HostRemovalBlockingRentalSorted by ID.
at most 1000 items
Child fields · 6
idstring (uuid)RequirednameFriendlyNameA host's or rental's friendly name: a lowercase DNS label that starts with a letter and does not end with a hyphen. Unique across all hosts and rentals and never reused. A host's is generated as adjective-noun (
amber-falcon) and can be changed by its owner; a rental's is generated as adjective-noun plus four base36 characters (quiet-river-7k2f) and never changes.2–63 characters · pattern ^[a-z][a-z0-9-]{0,61}[a-z0-9]$
stateRentalStateRequiredstarting: GPUs allocated, waiting for the agent to start the container. Not billed. While the rental'simage_isphase fetchingthe agent does not know it yet.running: the container runs. Billed per second.exited: the host reports the container is not running, for example after a crash; the host is restarting it. GPUs stay reserved. Not billed; returns torunningwhen the host reports it running again.stopping: stop requested, waiting for the agent. Not billed. Becomesstoppedwithout the agent once the host has been offline for 90 seconds.stopped: GPUs released, workspace kept on the host. GPU time is not billed. Storage is billed per GiB while the organization has credit, except for aninterruption_rental, which never stops with data.behavior: delete host_: the host stopped syncing. Not billed; returns tooffline runningwhen the host syncs again, and becomesfailedonce the host has not synced forHOST_(24 hours;).STALE_ AFTER deleting: delete requested, waiting for the agent. Not billed. Becomesdeletedwithout the agent once the host has been offline for 90 seconds.deleted: container and workspace removed. Final.failed: the agent could not start or keep running the container. GPUs released. The rental can only be deleted.one of: "starting", "running", "exited", "stopping", "stopped", "host_offline", "deleting", "deleted", "failed"
endablebooleanRequiredRemoving the host anyway (
removeHostwithforcetrue) would end it: it ishost_on a host that is offline, and not on a preservation hold. A rental that runs, or that the host still has to act on, is never endable.offline heldbooleanOn a preservation hold.
rented_by_youbooleanThe caller's own organization rented it, so the caller can open it (
getRental). Only fromremoveHost; absent means false.
stored_data_rentalsarray of HostStoredDataRental. Sorted by ID.
at most 1000 items
Child fields · 8
idstring (uuid)RequirednameFriendlyNameA host's or rental's friendly name: a lowercase DNS label that starts with a letter and does not end with a hyphen. Unique across all hosts and rentals and never reused. A host's is generated as adjective-noun (
amber-falcon) and can be changed by its owner; a rental's is generated as adjective-noun plus four base36 characters (quiet-river-7k2f) and never changes.2–63 characters · pattern ^[a-z][a-z0-9-]{0,61}[a-z0-9]$
stateRentalStateRequiredstarting: GPUs allocated, waiting for the agent to start the container. Not billed. While the rental'simage_isphase fetchingthe agent does not know it yet.running: the container runs. Billed per second.exited: the host reports the container is not running, for example after a crash; the host is restarting it. GPUs stay reserved. Not billed; returns torunningwhen the host reports it running again.stopping: stop requested, waiting for the agent. Not billed. Becomesstoppedwithout the agent once the host has been offline for 90 seconds.stopped: GPUs released, workspace kept on the host. GPU time is not billed. Storage is billed per GiB while the organization has credit, except for aninterruption_rental, which never stops with data.behavior: delete host_: the host stopped syncing. Not billed; returns tooffline runningwhen the host syncs again, and becomesfailedonce the host has not synced forHOST_(24 hours;).STALE_ AFTER deleting: delete requested, waiting for the agent. Not billed. Becomesdeletedwithout the agent once the host has been offline for 90 seconds.deleted: container and workspace removed. Final.failed: the agent could not start or keep running the container. GPUs released. The rental can only be deleted.one of: "starting", "running", "exited", "stopping", "stopped", "host_offline", "deleting", "deleted", "failed"
estimated_size_bytesinteger (int64)RequiredThe size of its files on the host; with
estimate_basis disk_an upper bound.share estimate_basisBackupEstimateBasisRequired. What a backup's quote was computed on.
disk_: the size the rental's host last reported its workspace uses (used disk_).used_ gib disk_: the host does not report it (a host whose disk quota is not enforced, for example not on XFS), so the quote is the rental's whole disk share (share resources.): an upper bound, "up to" this price, trued down to the real size when the backup is ready. Either way the charge never exceeds the quote: a backup larger than its estimate (a staledisk_ gib disk_) is charged the quote, not more.used_ gib one of: "disk_used", "disk_share"
delete_afterstring (date-time)When its files are deleted (its
delete_); absent while held.after backup_stateBackupStateIts renter's newest backup, when it has one.
rented_by_youbooleanThe caller's own organization rented it. Only on the public listener; absent means false.
available_untilstring (date-time). On 409
host_frommaintenance createRental(whatever the window's state), when the host's window starts. Nothing more about the window: its end and reason are only for the renters of rentals on the host.maintenanceMaintenanceSummary. On 409
host_frommaintenance startRentalof the renter's own rental, the window that keeps it stopped.Child fields · 4
startstring (date-time)RequiredWhen the window starts: the host's rentals stop then (after a 5-minute notice).
endstring (date-time)RequiredThe planned end. The provider may end the window earlier.
reasonMaintenanceReasonRequired. Why a provider takes a host down, shown to the renters of rentals on it. The list grows: accept a value you do not know.
one of: "hardware", "software", "network", "power", "facility", "other"
stateMaintenanceStateRequired.
scheduled(announced, renters told),closing(the last 5 minutes before the start: the penalty-free outcome is decided, nothing can start, rentals in their notice),active(the host is in maintenance, its rentals stopped),overrun(the planned end passed and the host has not synced back),completed,cancelled. The list grows: accept a value you do not know.one of: "scheduled", "closing", "active", "overrun", "completed", "cancelled"
test_switchAdminOrgTestSwitchChild fields · 5
test_orgbooleanRequiredallowedbooleanRequiredblocking_rentalsarray of AdminOrgTestBlockingRentalRequiredat most 100 items
Child fields · 7
idstring (uuid)RequirednameFriendlyNameA host's or rental's friendly name: a lowercase DNS label that starts with a letter and does not end with a hyphen. Unique across all hosts and rentals and never reused. A host's is generated as adjective-noun (
amber-falcon) and can be changed by its owner; a rental's is generated as adjective-noun plus four base36 characters (quiet-river-7k2f) and never changes.2–63 characters · pattern ^[a-z][a-z0-9-]{0,61}[a-z0-9]$
stateRentalStateRequiredstarting: GPUs allocated, waiting for the agent to start the container. Not billed. While the rental'simage_isphase fetchingthe agent does not know it yet.running: the container runs. Billed per second.exited: the host reports the container is not running, for example after a crash; the host is restarting it. GPUs stay reserved. Not billed; returns torunningwhen the host reports it running again.stopping: stop requested, waiting for the agent. Not billed. Becomesstoppedwithout the agent once the host has been offline for 90 seconds.stopped: GPUs released, workspace kept on the host. GPU time is not billed. Storage is billed per GiB while the organization has credit, except for aninterruption_rental, which never stops with data.behavior: delete host_: the host stopped syncing. Not billed; returns tooffline runningwhen the host syncs again, and becomesfailedonce the host has not synced forHOST_(24 hours;).STALE_ AFTER deleting: delete requested, waiting for the agent. Not billed. Becomesdeletedwithout the agent once the host has been offline for 90 seconds.deleted: container and workspace removed. Final.failed: the agent could not start or keep running the container. GPUs released. The rental can only be deleted.one of: "starting", "running", "exited", "stopping", "stopped", "host_offline", "deleting", "deleted", "failed"
renter_orgOrgRequiredChild fields · 2
idstring (uuid)RequirednamestringRequired
provider_orgOrgRequiredChild fields · 2
idstring (uuid)RequirednamestringRequired
host_idstring (uuid)Requiredhost_nameFriendlyNameA host's or rental's friendly name: a lowercase DNS label that starts with a letter and does not end with a hyphen. Unique across all hosts and rentals and never reused. A host's is generated as adjective-noun (
amber-falcon) and can be changed by its owner; a rental's is generated as adjective-noun plus four base36 characters (quiet-river-7k2f) and never changes.2–63 characters · pattern ^[a-z][a-z0-9-]{0,61}[a-z0-9]$
blocking_rental_countintegerRequiredat least 0
unpaid_earningsMoneyRequiredChild fields · 2
amount_minorinteger (int64)RequiredAmount in minor units (cents for USD).
at least 0
currencyMoneyCurrencyRequiredISO 4217 currency code. Only USD is supported.
one of: "USD"
current_price_per_gpu_hourMoneyThe host's price per GPU-hour now, on 409
price_fromchanged createRental, the price a bid would win now on 409bid_, or the floor on 409too_ low bid_; all-in, as the renter sees prices.below_ floor Child fields · 2
amount_minorinteger (int64)RequiredAmount in minor units (cents for USD).
at least 0
currencyMoneyCurrencyRequiredISO 4217 currency code. Only USD is supported.
one of: "USD"
next_available_atstring (date-time)When the action is allowed again, on 429
benchmark_fromrequest_ limited requestHostBenchmark.reasonPromoIneligibleReasonWhy the organization may not redeem the promo code, on 403
promo_.code_ not_ eligible registryRegistrySignInRegistry. The registry a sign-in would be for, on 422
image_of an image on a registry Legion takes sign-ins for (offer to add one withprivate putRegistrySignIn), and on 422registry_(the sign-in the registry refused). Only ever one of these four;sign_ in_ rejected registry_names any host.host registry_hoststring. The registry host a credential is or would be for: on 422
image_(offer to add one withprivate createRegistryCredential),registry_,sign_ in_ rejected registry_, and the refusals of a registry (credential_ rejected registry_,ecr_ unsupported registry_,auth_ unsupported registry_,host_ not_ allowed registry_).realm_ not_ allowed at most 253 characters
registry_credential_idstring (uuid). The credential the registry refused, on 422
registry_.sign_ in_ rejected registry_credential_rentalsarray of RegistryCredentialRental. The rentals that still use a registry credential, on 409
registry_fromcredential_ in_ use deleteRegistryCredentialanddeleteRegistrySignIn. Oldest first.at most 100 items
Child fields · 3
idstring (uuid)RequirednamestringRequiredstateRentalStateRequiredstarting: GPUs allocated, waiting for the agent to start the container. Not billed. While the rental'simage_isphase fetchingthe agent does not know it yet.running: the container runs. Billed per second.exited: the host reports the container is not running, for example after a crash; the host is restarting it. GPUs stay reserved. Not billed; returns torunningwhen the host reports it running again.stopping: stop requested, waiting for the agent. Not billed. Becomesstoppedwithout the agent once the host has been offline for 90 seconds.stopped: GPUs released, workspace kept on the host. GPU time is not billed. Storage is billed per GiB while the organization has credit, except for aninterruption_rental, which never stops with data.behavior: delete host_: the host stopped syncing. Not billed; returns tooffline runningwhen the host syncs again, and becomesfailedonce the host has not synced forHOST_(24 hours;).STALE_ AFTER deleting: delete requested, waiting for the agent. Not billed. Becomesdeletedwithout the agent once the host has been offline for 90 seconds.deleted: container and workspace removed. Final.failed: the agent could not start or keep running the container. GPUs released. The rental can only be deleted.one of: "starting", "running", "exited", "stopping", "stopped", "host_offline", "deleting", "deleted", "failed"
invited_emailstring. The address an invitation is for, masked (
g•••y@example.), on 403com invitation_fromfor_ another_ account getMyInvitation.at most 320 characters
404The resource does not exist or belongs to another organization.The resource does not exist or belongs to another organization.
typestringRequiredURI reference identifying the problem type: the code's entry in the public error reference,
https:/. Branch on/ legion. ambient. xyz/ docs/ errors#<code> code, never ontype.titlestringRequiredstatusintegerRequiredcodestringRequiredStable machine-readable error code.
detailstringinstancestringThe request path that produced the problem.
resource_idstring (uuid)The resource a conflict refers to, when there is one (
egress_: the request already waiting;request_ exists export_: the pending workspace export).in_ progress accessMeAccessWhether a signed-in person may use Legion during the closed beta, decided on their verified email (case-insensitive):
approved(a member of an organization, holding a pending invitation, or Legion),waitlisted(on the waitlist, not approved yet) ornot_(not on the waitlist). Carried byrequested Me(alwaysapprovedfor a member) and by the problem of a 403access_, and ofnot_ approved getMe's 403no_.organization Child fields · 2
statestringRequiredone of: "approved", "waitlisted", "not_requested"
emailstring (email)RequiredThe verified email the state was decided on.
legalMeLegalThe caller's consent to Legion's legal documents.
requiredlists every document the consent step shows andacceptLegalDocumentstakes, at its current version.acceptedis true when the caller accepted the current version of everyagreedocument; while it is false, every operation exceptgetMe,acceptLegalDocuments,joinMyWaitlistand the wind-down operations (listing, stopping and deleting rentals; listing hosts, stopping new rentals on them and removing them) answers 403terms_.not_ accepted Child fields · 2
requiredarray of LegalDocumentRequiredChild fields · 6
keyLegalDocumentKeyRequiredA legal document:
terms(Terms of Use),acceptable_(Acceptable Use Policy),use privacy(Privacy Policy),data_(Data Handling).handling one of: "terms", "acceptable_use", "privacy", "data_handling"
versionstringRequiredThe current version. A new version of an
agreedocument must be accepted again.effectivestring (date)RequiredThe date the current version took effect.
titlestringRequiredurlstring (uri)RequiredThe document's public page.
acceptancestringRequiredagree: the person agrees to it, and the API is refused until the current version is accepted.acknowledge: the person confirms having read it, in the same step.one of: "agree", "acknowledge"
acceptedbooleanRequired
blocking_rentalsarray of HostRemovalBlockingRentalSorted by ID.
at most 1000 items
Child fields · 6
idstring (uuid)RequirednameFriendlyNameA host's or rental's friendly name: a lowercase DNS label that starts with a letter and does not end with a hyphen. Unique across all hosts and rentals and never reused. A host's is generated as adjective-noun (
amber-falcon) and can be changed by its owner; a rental's is generated as adjective-noun plus four base36 characters (quiet-river-7k2f) and never changes.2–63 characters · pattern ^[a-z][a-z0-9-]{0,61}[a-z0-9]$
stateRentalStateRequiredstarting: GPUs allocated, waiting for the agent to start the container. Not billed. While the rental'simage_isphase fetchingthe agent does not know it yet.running: the container runs. Billed per second.exited: the host reports the container is not running, for example after a crash; the host is restarting it. GPUs stay reserved. Not billed; returns torunningwhen the host reports it running again.stopping: stop requested, waiting for the agent. Not billed. Becomesstoppedwithout the agent once the host has been offline for 90 seconds.stopped: GPUs released, workspace kept on the host. GPU time is not billed. Storage is billed per GiB while the organization has credit, except for aninterruption_rental, which never stops with data.behavior: delete host_: the host stopped syncing. Not billed; returns tooffline runningwhen the host syncs again, and becomesfailedonce the host has not synced forHOST_(24 hours;).STALE_ AFTER deleting: delete requested, waiting for the agent. Not billed. Becomesdeletedwithout the agent once the host has been offline for 90 seconds.deleted: container and workspace removed. Final.failed: the agent could not start or keep running the container. GPUs released. The rental can only be deleted.one of: "starting", "running", "exited", "stopping", "stopped", "host_offline", "deleting", "deleted", "failed"
endablebooleanRequiredRemoving the host anyway (
removeHostwithforcetrue) would end it: it ishost_on a host that is offline, and not on a preservation hold. A rental that runs, or that the host still has to act on, is never endable.offline heldbooleanOn a preservation hold.
rented_by_youbooleanThe caller's own organization rented it, so the caller can open it (
getRental). Only fromremoveHost; absent means false.
stored_data_rentalsarray of HostStoredDataRental. Sorted by ID.
at most 1000 items
Child fields · 8
idstring (uuid)RequirednameFriendlyNameA host's or rental's friendly name: a lowercase DNS label that starts with a letter and does not end with a hyphen. Unique across all hosts and rentals and never reused. A host's is generated as adjective-noun (
amber-falcon) and can be changed by its owner; a rental's is generated as adjective-noun plus four base36 characters (quiet-river-7k2f) and never changes.2–63 characters · pattern ^[a-z][a-z0-9-]{0,61}[a-z0-9]$
stateRentalStateRequiredstarting: GPUs allocated, waiting for the agent to start the container. Not billed. While the rental'simage_isphase fetchingthe agent does not know it yet.running: the container runs. Billed per second.exited: the host reports the container is not running, for example after a crash; the host is restarting it. GPUs stay reserved. Not billed; returns torunningwhen the host reports it running again.stopping: stop requested, waiting for the agent. Not billed. Becomesstoppedwithout the agent once the host has been offline for 90 seconds.stopped: GPUs released, workspace kept on the host. GPU time is not billed. Storage is billed per GiB while the organization has credit, except for aninterruption_rental, which never stops with data.behavior: delete host_: the host stopped syncing. Not billed; returns tooffline runningwhen the host syncs again, and becomesfailedonce the host has not synced forHOST_(24 hours;).STALE_ AFTER deleting: delete requested, waiting for the agent. Not billed. Becomesdeletedwithout the agent once the host has been offline for 90 seconds.deleted: container and workspace removed. Final.failed: the agent could not start or keep running the container. GPUs released. The rental can only be deleted.one of: "starting", "running", "exited", "stopping", "stopped", "host_offline", "deleting", "deleted", "failed"
estimated_size_bytesinteger (int64)RequiredThe size of its files on the host; with
estimate_basis disk_an upper bound.share estimate_basisBackupEstimateBasisRequired. What a backup's quote was computed on.
disk_: the size the rental's host last reported its workspace uses (used disk_).used_ gib disk_: the host does not report it (a host whose disk quota is not enforced, for example not on XFS), so the quote is the rental's whole disk share (share resources.): an upper bound, "up to" this price, trued down to the real size when the backup is ready. Either way the charge never exceeds the quote: a backup larger than its estimate (a staledisk_ gib disk_) is charged the quote, not more.used_ gib one of: "disk_used", "disk_share"
delete_afterstring (date-time)When its files are deleted (its
delete_); absent while held.after backup_stateBackupStateIts renter's newest backup, when it has one.
rented_by_youbooleanThe caller's own organization rented it. Only on the public listener; absent means false.
available_untilstring (date-time). On 409
host_frommaintenance createRental(whatever the window's state), when the host's window starts. Nothing more about the window: its end and reason are only for the renters of rentals on the host.maintenanceMaintenanceSummary. On 409
host_frommaintenance startRentalof the renter's own rental, the window that keeps it stopped.Child fields · 4
startstring (date-time)RequiredWhen the window starts: the host's rentals stop then (after a 5-minute notice).
endstring (date-time)RequiredThe planned end. The provider may end the window earlier.
reasonMaintenanceReasonRequired. Why a provider takes a host down, shown to the renters of rentals on it. The list grows: accept a value you do not know.
one of: "hardware", "software", "network", "power", "facility", "other"
stateMaintenanceStateRequired.
scheduled(announced, renters told),closing(the last 5 minutes before the start: the penalty-free outcome is decided, nothing can start, rentals in their notice),active(the host is in maintenance, its rentals stopped),overrun(the planned end passed and the host has not synced back),completed,cancelled. The list grows: accept a value you do not know.one of: "scheduled", "closing", "active", "overrun", "completed", "cancelled"
test_switchAdminOrgTestSwitchChild fields · 5
test_orgbooleanRequiredallowedbooleanRequiredblocking_rentalsarray of AdminOrgTestBlockingRentalRequiredat most 100 items
Child fields · 7
idstring (uuid)RequirednameFriendlyNameA host's or rental's friendly name: a lowercase DNS label that starts with a letter and does not end with a hyphen. Unique across all hosts and rentals and never reused. A host's is generated as adjective-noun (
amber-falcon) and can be changed by its owner; a rental's is generated as adjective-noun plus four base36 characters (quiet-river-7k2f) and never changes.2–63 characters · pattern ^[a-z][a-z0-9-]{0,61}[a-z0-9]$
stateRentalStateRequiredstarting: GPUs allocated, waiting for the agent to start the container. Not billed. While the rental'simage_isphase fetchingthe agent does not know it yet.running: the container runs. Billed per second.exited: the host reports the container is not running, for example after a crash; the host is restarting it. GPUs stay reserved. Not billed; returns torunningwhen the host reports it running again.stopping: stop requested, waiting for the agent. Not billed. Becomesstoppedwithout the agent once the host has been offline for 90 seconds.stopped: GPUs released, workspace kept on the host. GPU time is not billed. Storage is billed per GiB while the organization has credit, except for aninterruption_rental, which never stops with data.behavior: delete host_: the host stopped syncing. Not billed; returns tooffline runningwhen the host syncs again, and becomesfailedonce the host has not synced forHOST_(24 hours;).STALE_ AFTER deleting: delete requested, waiting for the agent. Not billed. Becomesdeletedwithout the agent once the host has been offline for 90 seconds.deleted: container and workspace removed. Final.failed: the agent could not start or keep running the container. GPUs released. The rental can only be deleted.one of: "starting", "running", "exited", "stopping", "stopped", "host_offline", "deleting", "deleted", "failed"
renter_orgOrgRequiredChild fields · 2
idstring (uuid)RequirednamestringRequired
provider_orgOrgRequiredChild fields · 2
idstring (uuid)RequirednamestringRequired
host_idstring (uuid)Requiredhost_nameFriendlyNameA host's or rental's friendly name: a lowercase DNS label that starts with a letter and does not end with a hyphen. Unique across all hosts and rentals and never reused. A host's is generated as adjective-noun (
amber-falcon) and can be changed by its owner; a rental's is generated as adjective-noun plus four base36 characters (quiet-river-7k2f) and never changes.2–63 characters · pattern ^[a-z][a-z0-9-]{0,61}[a-z0-9]$
blocking_rental_countintegerRequiredat least 0
unpaid_earningsMoneyRequiredChild fields · 2
amount_minorinteger (int64)RequiredAmount in minor units (cents for USD).
at least 0
currencyMoneyCurrencyRequiredISO 4217 currency code. Only USD is supported.
one of: "USD"
current_price_per_gpu_hourMoneyThe host's price per GPU-hour now, on 409
price_fromchanged createRental, the price a bid would win now on 409bid_, or the floor on 409too_ low bid_; all-in, as the renter sees prices.below_ floor Child fields · 2
amount_minorinteger (int64)RequiredAmount in minor units (cents for USD).
at least 0
currencyMoneyCurrencyRequiredISO 4217 currency code. Only USD is supported.
one of: "USD"
next_available_atstring (date-time)When the action is allowed again, on 429
benchmark_fromrequest_ limited requestHostBenchmark.reasonPromoIneligibleReasonWhy the organization may not redeem the promo code, on 403
promo_.code_ not_ eligible registryRegistrySignInRegistry. The registry a sign-in would be for, on 422
image_of an image on a registry Legion takes sign-ins for (offer to add one withprivate putRegistrySignIn), and on 422registry_(the sign-in the registry refused). Only ever one of these four;sign_ in_ rejected registry_names any host.host registry_hoststring. The registry host a credential is or would be for: on 422
image_(offer to add one withprivate createRegistryCredential),registry_,sign_ in_ rejected registry_, and the refusals of a registry (credential_ rejected registry_,ecr_ unsupported registry_,auth_ unsupported registry_,host_ not_ allowed registry_).realm_ not_ allowed at most 253 characters
registry_credential_idstring (uuid). The credential the registry refused, on 422
registry_.sign_ in_ rejected registry_credential_rentalsarray of RegistryCredentialRental. The rentals that still use a registry credential, on 409
registry_fromcredential_ in_ use deleteRegistryCredentialanddeleteRegistrySignIn. Oldest first.at most 100 items
Child fields · 3
idstring (uuid)RequirednamestringRequiredstateRentalStateRequiredstarting: GPUs allocated, waiting for the agent to start the container. Not billed. While the rental'simage_isphase fetchingthe agent does not know it yet.running: the container runs. Billed per second.exited: the host reports the container is not running, for example after a crash; the host is restarting it. GPUs stay reserved. Not billed; returns torunningwhen the host reports it running again.stopping: stop requested, waiting for the agent. Not billed. Becomesstoppedwithout the agent once the host has been offline for 90 seconds.stopped: GPUs released, workspace kept on the host. GPU time is not billed. Storage is billed per GiB while the organization has credit, except for aninterruption_rental, which never stops with data.behavior: delete host_: the host stopped syncing. Not billed; returns tooffline runningwhen the host syncs again, and becomesfailedonce the host has not synced forHOST_(24 hours;).STALE_ AFTER deleting: delete requested, waiting for the agent. Not billed. Becomesdeletedwithout the agent once the host has been offline for 90 seconds.deleted: container and workspace removed. Final.failed: the agent could not start or keep running the container. GPUs released. The rental can only be deleted.one of: "starting", "running", "exited", "stopping", "stopped", "host_offline", "deleting", "deleted", "failed"
invited_emailstring. The address an invitation is for, masked (
g•••y@example.), on 403com invitation_fromfor_ another_ account getMyInvitation.at most 320 characters
409The resource's current state does not allow the operation. `legal_versions_stale`: a legal document version sent is not the current one; the problem's `legal` holds the current documents.The resource's current state does not allow the operation.
legal_: a legal document version sent is not the current one; the problem'sversions_ stale legalholds the current documents.typestringRequiredURI reference identifying the problem type: the code's entry in the public error reference,
https:/. Branch on/ legion. ambient. xyz/ docs/ errors#<code> code, never ontype.titlestringRequiredstatusintegerRequiredcodestringRequiredStable machine-readable error code.
detailstringinstancestringThe request path that produced the problem.
resource_idstring (uuid)The resource a conflict refers to, when there is one (
egress_: the request already waiting;request_ exists export_: the pending workspace export).in_ progress accessMeAccessWhether a signed-in person may use Legion during the closed beta, decided on their verified email (case-insensitive):
approved(a member of an organization, holding a pending invitation, or Legion),waitlisted(on the waitlist, not approved yet) ornot_(not on the waitlist). Carried byrequested Me(alwaysapprovedfor a member) and by the problem of a 403access_, and ofnot_ approved getMe's 403no_.organization Child fields · 2
statestringRequiredone of: "approved", "waitlisted", "not_requested"
emailstring (email)RequiredThe verified email the state was decided on.
legalMeLegalThe caller's consent to Legion's legal documents.
requiredlists every document the consent step shows andacceptLegalDocumentstakes, at its current version.acceptedis true when the caller accepted the current version of everyagreedocument; while it is false, every operation exceptgetMe,acceptLegalDocuments,joinMyWaitlistand the wind-down operations (listing, stopping and deleting rentals; listing hosts, stopping new rentals on them and removing them) answers 403terms_.not_ accepted Child fields · 2
requiredarray of LegalDocumentRequiredChild fields · 6
keyLegalDocumentKeyRequiredA legal document:
terms(Terms of Use),acceptable_(Acceptable Use Policy),use privacy(Privacy Policy),data_(Data Handling).handling one of: "terms", "acceptable_use", "privacy", "data_handling"
versionstringRequiredThe current version. A new version of an
agreedocument must be accepted again.effectivestring (date)RequiredThe date the current version took effect.
titlestringRequiredurlstring (uri)RequiredThe document's public page.
acceptancestringRequiredagree: the person agrees to it, and the API is refused until the current version is accepted.acknowledge: the person confirms having read it, in the same step.one of: "agree", "acknowledge"
acceptedbooleanRequired
blocking_rentalsarray of HostRemovalBlockingRentalSorted by ID.
at most 1000 items
Child fields · 6
idstring (uuid)RequirednameFriendlyNameA host's or rental's friendly name: a lowercase DNS label that starts with a letter and does not end with a hyphen. Unique across all hosts and rentals and never reused. A host's is generated as adjective-noun (
amber-falcon) and can be changed by its owner; a rental's is generated as adjective-noun plus four base36 characters (quiet-river-7k2f) and never changes.2–63 characters · pattern ^[a-z][a-z0-9-]{0,61}[a-z0-9]$
stateRentalStateRequiredstarting: GPUs allocated, waiting for the agent to start the container. Not billed. While the rental'simage_isphase fetchingthe agent does not know it yet.running: the container runs. Billed per second.exited: the host reports the container is not running, for example after a crash; the host is restarting it. GPUs stay reserved. Not billed; returns torunningwhen the host reports it running again.stopping: stop requested, waiting for the agent. Not billed. Becomesstoppedwithout the agent once the host has been offline for 90 seconds.stopped: GPUs released, workspace kept on the host. GPU time is not billed. Storage is billed per GiB while the organization has credit, except for aninterruption_rental, which never stops with data.behavior: delete host_: the host stopped syncing. Not billed; returns tooffline runningwhen the host syncs again, and becomesfailedonce the host has not synced forHOST_(24 hours;).STALE_ AFTER deleting: delete requested, waiting for the agent. Not billed. Becomesdeletedwithout the agent once the host has been offline for 90 seconds.deleted: container and workspace removed. Final.failed: the agent could not start or keep running the container. GPUs released. The rental can only be deleted.one of: "starting", "running", "exited", "stopping", "stopped", "host_offline", "deleting", "deleted", "failed"
endablebooleanRequiredRemoving the host anyway (
removeHostwithforcetrue) would end it: it ishost_on a host that is offline, and not on a preservation hold. A rental that runs, or that the host still has to act on, is never endable.offline heldbooleanOn a preservation hold.
rented_by_youbooleanThe caller's own organization rented it, so the caller can open it (
getRental). Only fromremoveHost; absent means false.
stored_data_rentalsarray of HostStoredDataRental. Sorted by ID.
at most 1000 items
Child fields · 8
idstring (uuid)RequirednameFriendlyNameA host's or rental's friendly name: a lowercase DNS label that starts with a letter and does not end with a hyphen. Unique across all hosts and rentals and never reused. A host's is generated as adjective-noun (
amber-falcon) and can be changed by its owner; a rental's is generated as adjective-noun plus four base36 characters (quiet-river-7k2f) and never changes.2–63 characters · pattern ^[a-z][a-z0-9-]{0,61}[a-z0-9]$
stateRentalStateRequiredstarting: GPUs allocated, waiting for the agent to start the container. Not billed. While the rental'simage_isphase fetchingthe agent does not know it yet.running: the container runs. Billed per second.exited: the host reports the container is not running, for example after a crash; the host is restarting it. GPUs stay reserved. Not billed; returns torunningwhen the host reports it running again.stopping: stop requested, waiting for the agent. Not billed. Becomesstoppedwithout the agent once the host has been offline for 90 seconds.stopped: GPUs released, workspace kept on the host. GPU time is not billed. Storage is billed per GiB while the organization has credit, except for aninterruption_rental, which never stops with data.behavior: delete host_: the host stopped syncing. Not billed; returns tooffline runningwhen the host syncs again, and becomesfailedonce the host has not synced forHOST_(24 hours;).STALE_ AFTER deleting: delete requested, waiting for the agent. Not billed. Becomesdeletedwithout the agent once the host has been offline for 90 seconds.deleted: container and workspace removed. Final.failed: the agent could not start or keep running the container. GPUs released. The rental can only be deleted.one of: "starting", "running", "exited", "stopping", "stopped", "host_offline", "deleting", "deleted", "failed"
estimated_size_bytesinteger (int64)RequiredThe size of its files on the host; with
estimate_basis disk_an upper bound.share estimate_basisBackupEstimateBasisRequired. What a backup's quote was computed on.
disk_: the size the rental's host last reported its workspace uses (used disk_).used_ gib disk_: the host does not report it (a host whose disk quota is not enforced, for example not on XFS), so the quote is the rental's whole disk share (share resources.): an upper bound, "up to" this price, trued down to the real size when the backup is ready. Either way the charge never exceeds the quote: a backup larger than its estimate (a staledisk_ gib disk_) is charged the quote, not more.used_ gib one of: "disk_used", "disk_share"
delete_afterstring (date-time)When its files are deleted (its
delete_); absent while held.after backup_stateBackupStateIts renter's newest backup, when it has one.
rented_by_youbooleanThe caller's own organization rented it. Only on the public listener; absent means false.
available_untilstring (date-time). On 409
host_frommaintenance createRental(whatever the window's state), when the host's window starts. Nothing more about the window: its end and reason are only for the renters of rentals on the host.maintenanceMaintenanceSummary. On 409
host_frommaintenance startRentalof the renter's own rental, the window that keeps it stopped.Child fields · 4
startstring (date-time)RequiredWhen the window starts: the host's rentals stop then (after a 5-minute notice).
endstring (date-time)RequiredThe planned end. The provider may end the window earlier.
reasonMaintenanceReasonRequired. Why a provider takes a host down, shown to the renters of rentals on it. The list grows: accept a value you do not know.
one of: "hardware", "software", "network", "power", "facility", "other"
stateMaintenanceStateRequired.
scheduled(announced, renters told),closing(the last 5 minutes before the start: the penalty-free outcome is decided, nothing can start, rentals in their notice),active(the host is in maintenance, its rentals stopped),overrun(the planned end passed and the host has not synced back),completed,cancelled. The list grows: accept a value you do not know.one of: "scheduled", "closing", "active", "overrun", "completed", "cancelled"
test_switchAdminOrgTestSwitchChild fields · 5
test_orgbooleanRequiredallowedbooleanRequiredblocking_rentalsarray of AdminOrgTestBlockingRentalRequiredat most 100 items
Child fields · 7
idstring (uuid)RequirednameFriendlyNameA host's or rental's friendly name: a lowercase DNS label that starts with a letter and does not end with a hyphen. Unique across all hosts and rentals and never reused. A host's is generated as adjective-noun (
amber-falcon) and can be changed by its owner; a rental's is generated as adjective-noun plus four base36 characters (quiet-river-7k2f) and never changes.2–63 characters · pattern ^[a-z][a-z0-9-]{0,61}[a-z0-9]$
stateRentalStateRequiredstarting: GPUs allocated, waiting for the agent to start the container. Not billed. While the rental'simage_isphase fetchingthe agent does not know it yet.running: the container runs. Billed per second.exited: the host reports the container is not running, for example after a crash; the host is restarting it. GPUs stay reserved. Not billed; returns torunningwhen the host reports it running again.stopping: stop requested, waiting for the agent. Not billed. Becomesstoppedwithout the agent once the host has been offline for 90 seconds.stopped: GPUs released, workspace kept on the host. GPU time is not billed. Storage is billed per GiB while the organization has credit, except for aninterruption_rental, which never stops with data.behavior: delete host_: the host stopped syncing. Not billed; returns tooffline runningwhen the host syncs again, and becomesfailedonce the host has not synced forHOST_(24 hours;).STALE_ AFTER deleting: delete requested, waiting for the agent. Not billed. Becomesdeletedwithout the agent once the host has been offline for 90 seconds.deleted: container and workspace removed. Final.failed: the agent could not start or keep running the container. GPUs released. The rental can only be deleted.one of: "starting", "running", "exited", "stopping", "stopped", "host_offline", "deleting", "deleted", "failed"
renter_orgOrgRequiredChild fields · 2
idstring (uuid)RequirednamestringRequired
provider_orgOrgRequiredChild fields · 2
idstring (uuid)RequirednamestringRequired
host_idstring (uuid)Requiredhost_nameFriendlyNameA host's or rental's friendly name: a lowercase DNS label that starts with a letter and does not end with a hyphen. Unique across all hosts and rentals and never reused. A host's is generated as adjective-noun (
amber-falcon) and can be changed by its owner; a rental's is generated as adjective-noun plus four base36 characters (quiet-river-7k2f) and never changes.2–63 characters · pattern ^[a-z][a-z0-9-]{0,61}[a-z0-9]$
blocking_rental_countintegerRequiredat least 0
unpaid_earningsMoneyRequiredChild fields · 2
amount_minorinteger (int64)RequiredAmount in minor units (cents for USD).
at least 0
currencyMoneyCurrencyRequiredISO 4217 currency code. Only USD is supported.
one of: "USD"
current_price_per_gpu_hourMoneyThe host's price per GPU-hour now, on 409
price_fromchanged createRental, the price a bid would win now on 409bid_, or the floor on 409too_ low bid_; all-in, as the renter sees prices.below_ floor Child fields · 2
amount_minorinteger (int64)RequiredAmount in minor units (cents for USD).
at least 0
currencyMoneyCurrencyRequiredISO 4217 currency code. Only USD is supported.
one of: "USD"
next_available_atstring (date-time)When the action is allowed again, on 429
benchmark_fromrequest_ limited requestHostBenchmark.reasonPromoIneligibleReasonWhy the organization may not redeem the promo code, on 403
promo_.code_ not_ eligible registryRegistrySignInRegistry. The registry a sign-in would be for, on 422
image_of an image on a registry Legion takes sign-ins for (offer to add one withprivate putRegistrySignIn), and on 422registry_(the sign-in the registry refused). Only ever one of these four;sign_ in_ rejected registry_names any host.host registry_hoststring. The registry host a credential is or would be for: on 422
image_(offer to add one withprivate createRegistryCredential),registry_,sign_ in_ rejected registry_, and the refusals of a registry (credential_ rejected registry_,ecr_ unsupported registry_,auth_ unsupported registry_,host_ not_ allowed registry_).realm_ not_ allowed at most 253 characters
registry_credential_idstring (uuid). The credential the registry refused, on 422
registry_.sign_ in_ rejected registry_credential_rentalsarray of RegistryCredentialRental. The rentals that still use a registry credential, on 409
registry_fromcredential_ in_ use deleteRegistryCredentialanddeleteRegistrySignIn. Oldest first.at most 100 items
Child fields · 3
idstring (uuid)RequirednamestringRequiredstateRentalStateRequiredstarting: GPUs allocated, waiting for the agent to start the container. Not billed. While the rental'simage_isphase fetchingthe agent does not know it yet.running: the container runs. Billed per second.exited: the host reports the container is not running, for example after a crash; the host is restarting it. GPUs stay reserved. Not billed; returns torunningwhen the host reports it running again.stopping: stop requested, waiting for the agent. Not billed. Becomesstoppedwithout the agent once the host has been offline for 90 seconds.stopped: GPUs released, workspace kept on the host. GPU time is not billed. Storage is billed per GiB while the organization has credit, except for aninterruption_rental, which never stops with data.behavior: delete host_: the host stopped syncing. Not billed; returns tooffline runningwhen the host syncs again, and becomesfailedonce the host has not synced forHOST_(24 hours;).STALE_ AFTER deleting: delete requested, waiting for the agent. Not billed. Becomesdeletedwithout the agent once the host has been offline for 90 seconds.deleted: container and workspace removed. Final.failed: the agent could not start or keep running the container. GPUs released. The rental can only be deleted.one of: "starting", "running", "exited", "stopping", "stopped", "host_offline", "deleting", "deleted", "failed"
invited_emailstring. The address an invitation is for, masked (
g•••y@example.), on 403com invitation_fromfor_ another_ account getMyInvitation.at most 320 characters
500An unexpected server error. Safe to retry.An unexpected server error. Safe to retry.
typestringRequiredURI reference identifying the problem type.
titlestringRequiredstatusintegerRequiredcodestringRequiredStable machine-readable error code.
detailstringinstancestringThe request path that produced the problem.
Errors
| Status | Code |
|---|---|
| 403 | no_organization |
| 409 | backup_in_progress |
| 409 | export_in_progress |
| 409 | gpus_unavailable |
| 409 | host_disk_full |
| 409 | host_maintenance |
| 409 | host_unavailable |
| 409 | linked_host |
| 409 | own_host |
| 409 | rental_held |
| 409 | rental_managed_by_service |
Every operation can also answer the general codes on the errors page.