Set a host's price and availability
API keySets the on-demand price per GPU-hour, the optional interruptible price and whether the host appears in offers. A price change applies to rentals created afterwards; running rentals keep the price they were created with. listed false is "stop new rentals": the host leaves offers and its running rentals continue. A removed host cannot be changed: 409 host_.
**Let Legion decide.** pricing_ auto hands both prices to Legion. Its objective is the provider's revenue at a healthy utilization (about 70% of the class's GPUs rented), not the number of bookings: a busy class prices up, an idle one down. In auto mode a body whose price_ or interruptible_ differs from the stored one is 400 auto_ (switch to manual in the same body to set a price yourself); the stored prices sent back count as "keep", so a client that always sends the price it shows can still unlist an auto host.
- Switching to
autoprices the host at once from the current recommendation (getHostPriceRecommendation): the on-demand price is the recommended one, at leastmin_; withprice_ per_ gpu_ hour offer_the interruptible price is the recommended one, at most the on-demand price and at least 1 cent; without it the host stops being offered as interruptible. With no recommendation for the host's class it is 409interruptible no_and the host stays manual.recommendation - Turning
offer_on while in auto mode sets the interruptible price the same way (409interruptible no_without one); turning it off stops offering the tier. Raising the floor above the current price raises the price to the floor at once.recommendation - Afterwards Legion reprices the host about every hour (at most once in 55 minutes, whatever the number of controller replicas): towards the recommendation, never below the floor, by at most 10% per step, skipping changes under 2%, and holding the price when the recommendation is missing or its inputs are stale. Running rentals keep their price.
- While the platform's auto-pricing kill switch is off, a write that would price the host from the recommendation (switching to auto, turning
offer_on) is 409interruptible auto_: nothing changes and the host stays as it was. Every other write, switching back topricing_ disabled manualincluded, works as usual. - Switching back to
manualkeeps the last prices. In manual mode a body withoutprice_keeps the current price.per_ gpu_ hour
Every change is in listHostListingHistory, with who made it (legion for the repricer) and the recommendation it followed.
interruptible_ must be at least 1 cent and at most price_ (400 invalid_). Leaving it out keeps the current interruptible price, which must then still be at most the new price_ (400 invalid_: lower it or clear it). It is the floor of the host's spot auction, not a fixed price: interruptible renters bid up to their own maximum and pay one clearing price, which is never below the floor, and you earn that price. An explicit null stops offering the interruptible tier: interruptible rentals already running keep their price and continue. Interruptible rentals use GPUs no on-demand rental needs. An on-demand rental on the host takes their GPUs when it needs them, and a higher bid can stop a rental too (stop_ outbid, only after its first 10 minutes); either way there is a 5-minute notice where the host supports it, and workspaces are kept and billed as storage, or deleted for interruption_ delete.
**Raising the floor while the host has bids.** The interruptible price is the floor of the host's spot auction. While the host has interruptible rentals holding GPUs or waiting bids, a raise adds at most 25% and comes at most once every 6 hours: otherwise 409 floor_ and nothing changes (a cut is always allowed). A raise reaches the rentals already holding GPUs an hour later; waiting bids keep the floor they were displaced at. While the host has such rentals the interruptible price cannot be cleared (null, or offer_ false in the body, in manual mode too): 409 interruptible_. Every listing change emits host..
Send an API key as Authorization: Bearer lgn_…. Authentication
https://api.legion.ambient.xyz/v1/hosts/{host_id}/listingcurl -s -X PUT "https://api.legion.ambient.xyz/v1/hosts/$HOST_ID/listing" \
-H "Authorization: Bearer $LEGION_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"listed": false,
"price_per_gpu_hour": {
"amount_minor": 250,
"currency": "USD"
},
"interruptible_price_per_gpu_hour": {
"amount_minor": 250,
"currency": "USD"
},
"country": "DE",
"pricing_mode": "manual",
"min_price_per_gpu_hour": {
"amount_minor": 250,
"currency": "USD"
},
"offer_interruptible": false
}'This operation changes your account, so run it with the curl sample.
{
"maintenance": {
"id": "0192f1a2-7c3d-7e4f-8a9b-0c1d2e3f4a5b",
"host_id": "0192f1a2-7c3d-7e4f-8a9b-0c1d2e3f4a5b",
"host_name": "string",
"batch_id": "0192f1a2-7c3d-7e4f-8a9b-0c1d2e3f4a5b",
"state": "scheduled",
"reason": "hardware",
"note": "string",
"start": "2026-10-15T12:00:00Z",
"planned_end": "2026-10-15T12:00:00Z",
"ended_at": "2026-10-15T12:00:00Z",
"end_requested_at": "2026-10-15T12:00:00Z",
"scheduled_at": "2026-10-15T12:00:00Z",
"scheduled_by": "0192f1a2-7c3d-7e4f-8a9b-0c1d2e3f4a5b",
"notice_from": "2026-10-15T12:00:00Z",
"reschedules_left": 0,
"penalty_free": false,
"penalty_free_final": false,
"required_notice_seconds": 0,
"notice_seconds": 0,
"earliest_penalty_free_start": "2026-10-15T12:00:00Z",
"rentals": {
"on_demand": 0,
"interruptible": 0
},
"may_restart": 0,
"renters_notified": 0,
"started_at": "2026-10-15T12:00:00Z",
"cancelled_at": "2026-10-15T12:00:00Z",
"cancel_cause": "provider",
"end_cause": "on_time",
"overrun_seconds": 0,
"excused_seconds": 0
},
"id": "0192f1a2-7c3d-7e4f-8a9b-0c1d2e3f4a5b",
"org_id": "0192f1a2-7c3d-7e4f-8a9b-0c1d2e3f4a5b",
"own_use_price_per_gpu_hour": {
"amount_minor": 250,
"currency": "USD"
},
"own_use_fee_bps": 0,
"own_use_fee_floor_per_gpu_hour": {
"amount_minor": 250,
"currency": "USD"
},
"renter_fee_bps": 0,
"renter_price_per_gpu_hour": {
"amount_minor": 250,
"currency": "USD"
},
"renter_interruptible_price_per_gpu_hour": {
"amount_minor": 250,
"currency": "USD"
},
"name": "quiet-river-7k2f",
"hostname": "string",
"state": "pending",
"quarantine_reason": "string",
"credentials_revoked_at": "2026-10-15T12:00:00Z",
"online": false,
"last_seen_at": "2026-10-15T12:00:00Z",
"stale": false,
"removed_at": "2026-10-15T12:00:00Z",
"removed_reason": "provider",
"removal": {
"requested_at": "2026-10-15T12:00:00Z",
"stored_data": "when_empty",
"reason": "provider",
"waiting": false,
"deadline": "2026-10-15T12:00:00Z",
"stored_data_rentals": [
{
"id": "0192f1a2-7c3d-7e4f-8a9b-0c1d2e3f4a5b",
"name": "quiet-river-7k2f",
"state": "starting",
"estimated_size_bytes": 0,
"estimate_basis": "disk_used",
"delete_after": "2026-10-15T12:00:00Z",
"backup_state": "queued",
"rented_by_you": false
}
]
},
"observed_country": "DE",
"country_verification": "verified",
"gpu_model": "NVIDIA H100 80GB HBM3",
"gpu_class": "h100-sxm",
"gpu_memory_mib": 0,
"gpu_count": 0,
"gpus_free": 0,
"total": {
"cpu_cores": 0,
"memory_mib": 0,
"disk_gib": 0
},
"driver_version": "string",
"platform": "linux/amd64",
"compute_capability": "9.0",
"agent_version": "string",
"listing": {
"listed": false,
"price_per_gpu_hour": {
"amount_minor": 250,
"currency": "USD"
},
"interruptible_price_per_gpu_hour": {
"amount_minor": 250,
"currency": "USD"
},
"country": "DE",
"pricing_mode": "manual",
"min_price_per_gpu_hour": {
"amount_minor": 250,
"currency": "USD"
},
"offer_interruptible": false,
"auto_priced_at": "2026-10-15T12:00:00Z",
"visibility": "not_listed",
"first_benchmark_at": "2026-10-15T12:00:00Z"
},
"storage_price_per_gib_month": {
"amount_minor": 250,
"currency": "USD"
},
"provider_share_bps": 9000,
"runtime": false,
"offer_hold": {
"reason": "agent_runtime_abi_below_minimum",
"min_abi": 1,
"agent_abi": 0
},
"disk_hold": {
"reason": "string"
},
"clock": {
"offset_ms": 0,
"ntp_synchronized": false,
"reported_at": "2026-10-15T12:00:00Z"
},
"isolation": {
"verified": false,
"required_from": "2026-10-15T12:00:00Z",
"blocked": false,
"fix_command": "sudo legion-agent enable-userns",
"state": "on",
"failure": "docker_not_remapped",
"retry_at": "2026-10-15T12:00:00Z"
},
"start_hold": {
"since": "2026-10-15T12:00:00Z",
"until": "2026-10-15T12:00:00Z",
"failures": 0,
"last_reason": "string",
"message": "string"
},
"gpu_memory_outside_legion": [
{
"index": 0,
"memory_mib": 0,
"foreign_memory_mib": 0,
"offered": false
}
],
"blocked_cidrs": [
"string"
],
"require_allowlist": false,
"created_at": "2026-10-15T12:00:00Z",
"max_cuda_version": "12.8",
"score": {
"value": 0,
"version": "v1",
"provisional": false,
"computed_at": "2026-10-15T12:00:00Z",
"components": [
{
"key": "string",
"weight": 0,
"measured": false,
"value": 0,
"factors": [
{
"key": "string",
"weight": 0,
"measured": false,
"score": 0,
"verified": false,
"observed": "string"
}
]
}
]
},
"reliability": {
"uptime_30d": 0,
"tracked_since": "2026-10-15T12:00:00Z",
"rentals_90d": 0,
"failed_90d": 0,
"interrupted_90d": 0
},
"benchmark": {
"run_id": "0192f1a2-7c3d-7e4f-8a9b-0c1d2e3f4a5b",
"measured_at": "2026-10-15T12:00:00Z",
"network_measured_at": "2026-10-15T12:00:00Z",
"network_skipped_reason": "string",
"download_mbps": {
"value": 0,
"verified": false
},
"upload_mbps": {
"value": 0,
"verified": false
},
"control_plane_rtt_ms": {
"value": 0,
"verified": false
},
"edge_download_mbps": {
"value": 0,
"verified": false
},
"edge_upload_mbps": {
"value": 0,
"verified": false
},
"edge_location": {
"colo": "string",
"city": "string",
"country": "string"
},
"disk_read_mbps": {
"value": 0,
"verified": false
},
"disk_write_mbps": {
"value": 0,
"verified": false
},
"disk_read_range": {
"min": 0,
"max": 0,
"runs": 1
},
"disk_write_range": {
"min": 0,
"max": 0,
"runs": 1
},
"disk_cache_suspected": false,
"disk_randread_iops": {
"value": 0,
"verified": false
},
"disk_randwrite_iops": {
"value": 0,
"verified": false
},
"latency": [
{
"region": "us-west-2",
"rtt_ms": 0
}
],
"flags": [
"string"
],
"claim_mismatches": [
{
"metric": "download",
"claimed_mbps": 0,
"measured_mbps": 0,
"flag": "string"
}
]
},
"hardware": {
"cpu_model": "string",
"disk_type": "nvme",
"disk_free_gib": 0,
"pcie_gen_max": 1,
"pcie_width_max": 1,
"nvlink_links": 0,
"physical_cores": 1,
"threads_per_core": 1,
"smt_active": false
},
"benchmark_request": {
"state": "scheduled",
"requested_at": "2026-10-15T12:00:00Z",
"completed_at": "2026-10-15T12:00:00Z",
"host_busy": false,
"remaining_requests": 0,
"requests_per_day": 1,
"next_available_at": "2026-10-15T12:00:00Z",
"message": "string"
},
"benchmark_requested_at": "2026-10-15T12:00:00Z",
"gpu_benchmark": {
"run_id": "0192f1a2-7c3d-7e4f-8a9b-0c1d2e3f4a5b",
"measured_at": "2026-10-15T12:00:00Z",
"tool_version": "string",
"driver_version": "string",
"cuda_version": "string",
"tflops": 0,
"mem_bw_gbps": 0,
"spec_tflops": 0,
"gpus": [
{
"index": 0,
"name": "string",
"fp16_tflops": 0,
"bf16_tflops": 0,
"tf32_tflops": 0,
"fp32_tflops": 0,
"mem_bw_gbps": 0,
"h2d_gbps": 0,
"d2h_gbps": 0
}
],
"p2p": [
{
"src": 0,
"dst": 0,
"link": "nvlink",
"access": false,
"gbps": 0
}
],
"flags": [
"string"
]
},
"score_tips": [
{
"factor": "string",
"gain": 1,
"message": "string"
}
]
}Example values.
Path parameters
host_idstring (uuid)Required
Request body
application/json · ListingUpdate · required
listedbooleanRequiredWhether the host appears in offers.
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"
interruptible_price_per_gpu_hourMoneyThe price per GPU-hour of an interruptible rental on this host, between 1 cent and
price_. Absent keeps the current price andper_ gpu_ hour nullstops offering the tier. Manual mode only.may be null
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"
countryCountryCodeAn ISO 3166-1 alpha-2 country code, two capital letters. A declared listing country (
Listing.in a write) must be one of the 249 officially assigned codes:country UKis not one, the United Kingdom isGB, andEU,UNand the other reserved or exceptional codes are refused with 400invalid_. Filters and reads keep the two-letter shape only.country pattern ^[A-Z]{2}$
pricing_modePricingModemanual: the provider sets the prices.auto("Let Legion decide"): Legion sets them from the price recommendation and reprices hourly within the provider's floor.one of: "manual", "auto"
min_price_per_gpu_hourMoneyThe auto-pricing floor, at least 1 cent (400
invalid_).min_ price nullremoves it; absent keeps it.may be null
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"
offer_interruptiblebooleanIn auto mode, whether Legion also offers the host as interruptible.
{
"listed": false,
"price_per_gpu_hour": {
"amount_minor": 250,
"currency": "USD"
},
"interruptible_price_per_gpu_hour": {
"amount_minor": 250,
"currency": "USD"
},
"country": "DE",
"pricing_mode": "manual",
"min_price_per_gpu_hour": {
"amount_minor": 250,
"currency": "USD"
},
"offer_interruptible": false
}Responses
200The updated host.The updated host.
maintenanceMaintenanceWindow. The host's open maintenance window (
scheduled,closing,activeoroverrun), for its provider. Absent when there is none.Child fields · 29
idstring (uuid)RequiredThe window.
host_idstring (uuid)RequiredThe host it takes down.
host_namestringRequiredThe host's name (or hostname), as the provider sees it.
batch_idstring (uuid)RequiredThe
scheduleMaintenancerequest that created it, shared by the windows of one bulk schedule.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"
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"
notestringThe provider's own note, cleaned (no control characters, 280 characters). Only the provider sees it; it is in no email and no renter's view.
at most 280 characters
startstring (date-time)RequiredThe planned start (what renters were told). The actual start is
started_.at planned_endstring (date-time)RequiredThe planned end. Never edited by an early end or an overrun; the actual end is
ended_.at ended_atstring (date-time)When the window actually ended: "done with maintenance" with the host online, the planned end with the host online, or the host's return (after an overrun, or after "done with maintenance" while the host was still away). Absent while it is open. The plan is
startandplanned_; what happened isend started_andat ended_.at end_requested_atstring (date-time)When "done with maintenance" (
endMaintenance, or Legion's end) was asked for. The uptime excuse stops here. While the host is still away the window stays open (overrun) until it is back, andended_is that return.at scheduled_atstring (date-time)RequiredWhen it was scheduled (it counts toward the host's 4 windows per 30 days from then).
scheduled_bystring (uuid)The person who scheduled it; absent when an API key did.
notice_fromstring (date-time)RequiredWhere the notice counts from: when it was scheduled, or when a reschedule moved it earlier or made it longer.
reschedules_leftintegerRequiredHow many more times its start or end may be changed (a reason or note change does not count).
0–3
penalty_freebooleanRequiredWhile
scheduled, a forecast from the rentals now on the host; fromclosing, the decided outcome (penalty_true).free_ final penalty_free_finalbooleanRequiredWhether
penalty_is decided (fromfree closingon) rather than a forecast. A window cancelled before closing is never decided:false.required_notice_secondsintegerRequired72 hours if any rental the window stops is on-demand, 1 hour if all are interruptible, 0 for none (and for a window cancelled before it was decided).
at least 0
notice_secondsintegerRequiredWhat the renters have, the start minus
notice_.from at least 0
earliest_penalty_free_startstring (date-time)While
scheduled, the earliest start that would be penalty-free for the rentals now on the host.rentalsMaintenanceTierCountsRequiredThe rentals the window stops (decided at
closing, a forecast before), by tier. Counts only: never a renter.Child fields · 2
on_demandintegerRequiredRentals of the on-demand tier (72 hours of notice owed).
at least 0
interruptibleintegerRequiredRentals of the interruptible tier (1 hour of notice owed).
at least 0
may_restartintegerRequiredStopped rentals with files that their renters could still start before the window closes. A forecast, not in
rentals: if one is started, it counts at closing, and a window that is penalty-free now may not be then (an on-demand rental needs 72 hours). 0 for a completed or cancelled window.at least 0
renters_notifiedintegerRequiredThe renter organizations with a rental on the host now: told of the window, and told again if it is changed or cancelled. Counts only, never a renter; 0 for a completed or cancelled window.
at least 0
started_atstring (date-time)When it actually became
active(the sweep, at or just afterstart). Absent before.cancelled_atstring (date-time)When it was cancelled. Absent unless
cancelled.cancel_causeMaintenanceCancelCauseWho cancelled it: the provider, Legion, or the host's removal.
end_causeMaintenanceEndCauseHow it ended: at its planned end, ended early by the provider, by the host's return after an overrun, by the host's removal, or by Legion.
overrun_secondsintegerHow long after the planned end the host stayed away.
at least 0
excused_secondsintegerRequiredThe host's uptime-score minutes this window excused so far, in seconds.
at least 0
idstring (uuid)Requiredorg_idstring (uuid)Requiredown_use_price_per_gpu_hourMoney. What the organization's own use of this host (
Rental.) would pay per GPU-hour on demand if started now: Ambient's platform fee, the greater ofown_ use own_of the host's own listed price (its last price while unlisted) anduse_ fee_ bps own_. The organization earns nothing on own use, and any paying renter takes the GPUs from it. Since a host with no price pays the floor; absent only when the quote is 0.use_ fee_ floor_ 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"
own_use_fee_bpsinteger. The own-use platform fee's rate in basis points of the host's listed price (500 is 5%).
0–10000
own_use_fee_floor_per_gpu_hourMoney. The least own use pays per GPU-hour: the own-use fee is the greater of
own_of the listed price and this floor, so a host that was never priced pays the floor.use_ 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"
renter_fee_bpsinteger. The renter platform fee, in basis points, renters pay on top of this host's prices on a rental created now (500 is 5%). All of it is Ambient's; it never changes the provider's earnings.
0–10000
renter_price_per_gpu_hourMoney. What renters see and pay per GPU-hour on demand for this host: the listing's
price_plus the renter platform fee. Absent while the host has no 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"
renter_interruptible_price_per_gpu_hourMoney. The interruptible floor as renters see it, with the renter platform fee. Absent when the host is not offered as interruptible.
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"
nameFriendlyNameRequiredThe host's friendly name, its display name and its mesh peer name, so its internal DNS name on the overlay is
<name>.. Assigned at enrollment;<mesh domain> renameHostchanges it.hostnamestringRequiredThe machine's own hostname, as its agent reported it at enrollment.
stateHostStateRequiredpending: registered, awaiting operator review.approved: may be listed and rented.quarantined: removed from offers by an operator; no new rentals.removed: removed by its provider, Legion or the timeout; a soft delete. The host is out of offers and the default lists, its agent credentials are revoked and the machine comes back only by enrolling again as a new host. Never left again.one of: "pending", "approved", "quarantined", "removed"
quarantine_reasonstringcredentials_revoked_atstring (date-time)When the host's agent credentials were revoked (quarantine or
revokeHostCredentials). Absent while they are valid. The agent is refused on every request (agent_) and is issued no certificate again; the machine comes back only by enrolling again with a new enrollment token, as a new host.credentials_ revoked onlinebooleanRequiredWhether the agent synced within the last 90 seconds.
last_seen_atstring (date-time)When the agent last synced. Absent until it has.
stalebooleanTrue while the agent has not synced for
HOST_(24 hours by default). A stale host is not offered and is removed afterSTALE_ AFTER HOST_(7 days by default) if it has no rental to act on. A sync clears it. Absent means false.AUTO_ REMOVE_ AFTER removed_atstring (date-time)When the host was removed. Present exactly when
stateisremoved.removed_reasonHostRemovedReasonWhy a host was removed.
provider: its organization removed it.admin: Legion removed it.admin_: Legion removed it and ended its rentals.force timed_: Legion removed it after its agent had not synced forout HOST_(7 days by default) and it had no rental to act on.AUTO_ REMOVE_ AFTER one of: "provider", "admin", "timed_out"
removalHostRemoval. A removal waiting for the renters' files on the host to go (
stored_data when_): whileempty waitingthe host is out of offers and its rentals cannot start; it is removed by itself once no rental on it has files left, at the latest atdeadline. Kept on the host after it is removed.Child fields · 6
requested_atstring (date-time)RequiredWhen the wait began: the request, or the decision to delete the files.
stored_dataHostStoredDataChoiceRequiredWhat it waits for:
when_, the renters' files to go;empty delete_, the host's agent to confirm it deleted them (\"Removing: deleting renters' files\").now reasonHostRemovedReasonRequiredThe
removed_the host is removed with.reason waitingbooleanRequiredTrue until the host is removed: "removing when empty".
deadlinestring (date-time)RequiredWhen the host is removed at the latest: 72 hours after
requested_forat when_(files left then are deleted, except that a renter's backup or export still running is waited for), 1 hour forempty delete_.now stored_data_rentalsarray of HostStoredDataRentalRequiredThe rentals whose files are still on the host; empty once it is removed.
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.
observed_countryCountryCodeThe country of the address the host's agent connects from, looked up in DB-IP's IP to Country Lite database (IP geolocation by DB-IP, https://db-ip.com, CC BY 4.0). Absent until an agent's address has resolved to a country.
country_verificationCountryVerificationHow the provider's declared country (
Listing.) compares with the country of the address the host's agent connects from (looked up in DB-IP's IP to Country Lite database: IP geolocation by DB-IP, https://db-ip.com, CC BY 4.0).country verified: they are the same.mismatch: both are known and differ (a VPN, a cloud egress or a wrong declaration).unverified: either is unknown.one of: "verified", "mismatch", "unverified"
gpu_modelstringRequiredat most 128 characters
gpu_classGpuClassRequiredLegion's canonical class of a GPU model: one of
b300,b200,gh200,h200,h100-sxm,h100-pcie,h100-nvl,a100-80gb,a100-40gb,l40s,l40,l4,a10,a40,a6000,rtx-6000-ada,rtx-pro-6000,rtx-5090,rtx-4090,rtx-3090,v100,mi300x, orother-<slug of the model>for a model that matches none of them. Derived from the model name and the GPU memory, so hosts of one class are comparable for pricing.at most 160 characters · pattern ^[a-z0-9][a-z0-9-]*$
gpu_memory_mibinteger (int64)Requiredgpu_countintegerRequiredgpus_freeintegerRequiredtotalResourcesRequiredChild fields · 3
cpu_coresintegerRequiredat least 0
memory_mibinteger (int64)Requiredat least 0
disk_gibinteger (int64)Requiredat least 0
driver_versionstringat most 128 characters
platformPlatformThe OCI platform of the machine a host's containers run on:
os/orarchitecture os/, for examplearchitecture/ variant linux/,amd64 linux/orarm64 linux/. It is what an image'sarm/ v7 platformslist is matched against. Reported by the agent; absent for hosts whose agent predates it or cannot tell.at most 32 characters · pattern ^[a-z0-9_]+/[a-z0-9_]+(/[a-z0-9_]+)?$
compute_capabilityComputeCapabilityCUDA compute capability as
major., asminor nvidia-smi --query-gpu=compute_reports it (cap 8.A100,0 8.L40S and RTX 4090,9 9.H100 and H200,0 10.B200). Compare numerically by major, then minor, never as a string or a float:0 10.is above0 9.. Reported by the agent; absent when the agent predates it or the driver is too old to answer. On a host or an offer it is the lowest across the host's GPUs.0 at most 5 characters · pattern ^[0-9]{1,2}\.[0-9]{1,2}$
agent_versionstringlistingListingRequiredcountryis where the host is, as its provider declares it: absent in a request leaves it as it is. Legion checks it against the host's latencies (location_) and against the country of the agent's address (mismatch country_onverification HostandOffer).price_is the **on-demand** price.per_ gpu_ hour interruptible_is the floor (reserve price) of the host's spot auction for interruptible rentals: at least 1 cent and at mostprice_ per_ gpu_ hour price_, else 400per_ gpu_ hour invalid_. In a response, absent means the host is not offered as interruptible. In a listing write, absent keeps the current interruptible price (it must still be at most the newinterruptible_ price price_), and an explicitper_ gpu_ hour nullstops offering the tier (running interruptible rentals keep their price and continue). While it stands, interruptible rentals on the host pay its spot auction's clearing price: never under this floor (unless their own limit, set when the floor was lower, is), never over their own limit.Child fields · 10
listedbooleanRequiredWhether the host appears in offers.
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"
interruptible_price_per_gpu_hourMoneyThe floor of this host's spot auction for interruptible rentals: the lowest price per GPU-hour an interruptible rental pays. An interruptible rental runs on GPUs no on-demand rental needs and pays the auction's clearing price (never under the floor, never over its own maximum). An on-demand rental on the same host that needs its GPUs stops it (
stop_reason preempted), and so can a bid that beats its maximum (outbid). Between 1 cent andprice_. In a response, absent: the host is not offered as interruptible. In a listing write, absent keeps the current price andper_ gpu_ hour nullstops offering the tier.may be null
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"
countryCountryCodeAn ISO 3166-1 alpha-2 country code, two capital letters. A declared listing country (
Listing.in a write) must be one of the 249 officially assigned codes:country UKis not one, the United Kingdom isGB, andEU,UNand the other reserved or exceptional codes are refused with 400invalid_. Filters and reads keep the two-letter shape only.country pattern ^[A-Z]{2}$
pricing_modePricingModemanual(the default) orauto, "Let Legion decide": Legion sets both prices from its price recommendation and reprices hourly, aiming at the provider's revenue at a healthy utilization rather than at bookings. SeeupdateListing.min_price_per_gpu_hourMoneyThe floor of auto pricing: Legion never sets the on-demand price below it. Absent: no floor. Kept, and unused, in manual mode.
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"
offer_interruptiblebooleanIn auto mode, whether Legion also offers the host as interruptible, at its recommended interruptible price (at most the on-demand price). Kept, and unused, in manual mode.
auto_priced_atstring (date-time)When Legion last set the host's prices (switching to auto, or a repricing). Absent until it has.
read-only
visibilityListingVisibilityWhether renters can find the host, as far as the benchmark gate and
listeddecide; the host'sstate,onlineand its other holds are their own fields. A host that never completed a benchmark is left out oflistOffersandgetOfferhowever it is listed: the provider can set prices and list at once, and the listing shows by itself when the host's first benchmark run completes (the agent runs it on its own once the host is idle,requestHostBenchmarkasks for one). After that the normal review outcome applies, unchanged. A run that measured no figure at all is kept and does not count.not_:listed listedis false.awaiting_: listed, and no benchmark run has completed yet. Show "Waiting for first benchmark".first_ benchmark first_: asbenchmark_ failed awaiting_, and a run was kept that measured nothing. The provider can ask for another run (first_ benchmark requestHostBenchmark).visible: the benchmark gate is passed (first_is set).benchmark_ at
read-only
first_benchmark_atstring (date-time)When Legion first kept a completed benchmark run of the host. Absent until then; never changes afterwards.
read-only
storage_price_per_gib_monthMoneyWhat a stopped rental on this host is charged per GiB per 730-hour month while its organization has credit: the host's own rate, or the platform's when it has none. A rental keeps the rate of its host at creation. Absent when storage is free. The provider earns the same share of storage charges as of GPU time (
provider_).share_ bps 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"
provider_share_bpsintegerRequiredThe share of the host's own price (the listing's, before the renter platform fee), in basis points (hundredths of a percent), that a rental created now on this host earns the provider: 10000 minus the platform commission. At 9000 a rental charged $1.00 at the provider's price earns the provider $0.90 (the commission is rounded to the cent from the amount charged). Renters pay the renter platform fee (
renter_) on top of the provider's price; none of it comes out of the provider's earnings. The platform sets it and it is the same for every host. A rental keeps the share it was created with, so a change applies to new rentals only.fee_ bps 0–10000
runtimeRuntimeAvailableRequiredWhether a rental on this host is created with the Legion runtime: the host's agent supports it and Legion offers it to that host. When false the rental runs its image's own sshd on port 22, as before. Rentals that already exist never change.
offer_holdOfferHoldPresent while the host is not offered for rent, and no rental can be created on it, because its agent is too old: Legion enforces a minimum runtime ABI (
RUNTIME_) and the agent advertised a lower one, or none. Upgrading the agent clears it on the next sync. Absent when the host meets the minimum or none is configured. Rentals that already exist on the host are not affected. It says nothing about the other reasons a host may not be offered (not approved, not listed, offline).MIN_ ABI Child fields · 3
reasonstringRequiredone of: "agent_runtime_abi_below_minimum"
min_abiintegerRequiredThe configured minimum runtime ABI.
at least 1
agent_abiintegerRequiredThe highest runtime ABI the agent advertised on its last sync; 0 when it advertised none (an agent from before the runtime).
at least 0
disk_holdDiskHoldPresent while an approved host's disk is not ready for per-rental disk limits: its agent does not send the disk status (
disk_), the agent reports that it cannot enforce the limits, or the usable disk is below 128 GiB per GPU. Advisory: the host is still offered for rent and rentals can still be created on it. The next sync that fixes the cause clears it. Absent on hosts that are not approved.quota_ v1 Child fields · 1
reasonstringRequiredagent_(the agent does not advertisetoo_ old disk_),quota_ v1 disk_(usable disk divided by the GPU count is below 128 GiB),below_ minimum unknown(the agent reports the disk not enforced without a reason), or thereasonof the agent'sAgentDiskStatusas it sent it. New values can appear without notice: show one you do not know as "other".pattern ^[a-z_]{1,40}$
clockHostClockThe host's clock as its agent last measured it on a sync. Absent until an agent that measures it has synced. A rental container checks web-terminal certificates with this clock, so a host far off cannot open the web terminal; the agent turns on time sync where none is running.
Child fields · 3
offset_msinteger (int64)RequiredThe host's clock minus Legion's, in milliseconds. Negative is slow.
ntp_synchronizedbooleanWhether the host's kernel clock is synchronized by NTP. Absent when the agent could not tell.
reported_atstring (date-time)RequiredWhen Legion stored this measurement. It is rewritten at least every 5 minutes while the agent syncs.
isolationHostIsolationRequired. User-namespace isolation (Docker
userns-remap): root in a rental container is an unprivileged ID on the host, not root.verifiedis true while the host's agent reports it on its syncs (capabilityuserns_, sent only when Docker runs with the remap and a probe container under it opened the GPUs). Fromremap_ v1 required_a host that is not verified is not offered for rent: no new rental or service replica is created on it. Rentals already on it continue, and a renter can still start a stopped rental of its own that is on it. From the agent turns it on by itself when the host is idle (no rentals, no other containers), andfrom statesays where it stands;fix_, run on the host while it has no rentals, is the manual way. The host is offered again at the agent's next sync after the probe passes.command Child fields · 7
verifiedbooleanRequiredWhether the agent reported verified user-namespace isolation on its last sync.
required_fromstring (date-time)RequiredWhen isolation becomes a condition of being offered. The same fixed time for every host.
blockedbooleanRequiredTrue from
required_whilefrom verifiedis false. The host is not offered and nothing new is placed on it.fix_commandstringThe command to run on the host, as root, while it has no rentals. Absent while
verifiedis true.stateHostIsolationState. Where the host's agent stands on turning isolation on by itself, as it last reported. Absent while the agent never reported one (agents before).
on: on and the GPU check passed.waiting_: off; the agent turns it on by itself when the host has no rentals.for_ idle switching: off; the agent is turning it on now (Docker restarts once), and no new rental or service replica is placed on the host until it is done.other_: off; the host runs other containers, so the provider runscontainers fix_once they are stopped.command failed: off; the agent's last attempt failed (failure), Docker was put back as it was, and it tries again atretry_.at probe_: Docker runs with user namespaces but the GPU check under them fails.failed unsupported: the agent cannot turn it on by itself (failure).unknown: a value Legion does not know.one of: "on", "waiting_for_idle", "switching", "other_containers", "failed", "probe_failed", "unsupported", "unknown"
failureHostIsolationFailure. Why isolation is not on, with
statefailed,unsupportedorprobe_.failed docker_: dockerd flags override daemon.json.not_ remapped gpu_: the GPU check under user namespaces failed.probe_ failed docker_: Docker did not restart.restart_ failed daemon_: daemon.json cannot be read or is invalid.json rootless: rootless Docker is not supported.remap_: daemon.json names another remap user.user other: anything else, including a value Legion does not know.one of: "docker_not_remapped", "gpu_probe_failed", "docker_restart_failed", "daemon_json", "rootless", "remap_user", "other"
retry_atstring (date-time). With
statefailed, when the agent tries again by itself. Absent otherwise.
start_holdHostStartHold. New rentals are paused on the host because models keep failing to start on it: 2 or more serve rentals or service replicas, of any organization, failed to start within an hour (their service reported an error before it was ever ready, or a replica did not start in time). While it lasts the host gets no new rental or replica and is not offered; running rentals are not touched. It ends by itself at
until, when a model starts on the host, or when the provider ends it (releaseHostStartHold). Each hold that starts within 24 hours of the last one's end lasts longer: 30 minutes, 2 hours, 8 hours, then 24 hours. Absent while the host is not paused.Child fields · 5
sincestring (date-time)Requireduntilstring (date-time)RequiredWhen the pause ends by itself.
failuresintegerRequiredHow many models failed to start in the hour that started the pause.
last_reasonstringRequiredThe code of the last failure: a
ServeFailure.(for examplereason gpu_),memory_ insufficient service_when the agent gave none,error start_ortimeout rental_.failed messagestringRequiredThe pause in plain words, for example
New rentals paused on rustic-walnut: 3 models failed to start in 20 minutes, last reason: not enough GPU memory.
gpu_memory_outside_legionarray of HostGPUForeignMemory. The GPUs whose memory is partly held by something outside Legion (another workload or a desktop session on the machine), as the agent last reported it (
gpu_), by GPU index. Absent or empty when none is. A GPU with more than a fifth of its memory in use outside Legion is not offered (foreign_ memory_ v1 offeredfalse) until that use ends; a model rented on the others needs its memory from what is left.Child fields · 4
indexintegerRequiredat least 0
memory_mibinteger (int64)RequiredThe GPU's memory.
foreign_memory_mibinteger (int64)RequiredMemory in use outside Legion's containers.
offeredbooleanRequiredWhether renters can rent the GPU while this use lasts (at most a fifth of its memory).
blocked_cidrsarray of stringRequiredIPv4 ranges no rental on this host can reach (
updateHostNetwork). Sorted.at most 32 items
require_allowlistbooleanRequired. Rentals created on this host start in
enforceand can reach only the allow-list (updateHostNetwork). Rentals already running keep their mode.created_atstring (date-time)Requiredmax_cuda_versionCudaVersionA CUDA version,
major.. On a host or an offer it is the newest CUDA its NVIDIA driver runs, derived by Legion fromminor driver_and NVIDIA's published driver table. Absent when the driver is unknown or older than CUDA 11.8.version at most 5 characters · pattern ^[0-9]{1,2}\.[0-9]{1,2}$
scoreLegionScoreThe host's Legion score (0-100) and its breakdown. See
getScoreFormulafor the weights and thresholds ofversion.Child fields · 5
valueintegerRequired0–100
versionstringRequiredpattern ^v[0-9]{1,3}$
provisionalbooleanRequiredTrue while Legion has less than the formula's
provisional_of the host's history.days computed_atstring (date-time)Requiredcomponentsarray of ScoreComponentRequiredat most 16 items
Child fields · 5
keystringRequiredstability,freshness,performanceorlatency.pattern ^[a-z0-9_]{1,32}$
weightintegerRequiredWeight out of 100 across components.
0–100
measuredbooleanRequiredWhether any of its factors has data. A component without data is left out of the score.
valuenumber (double)The component's score. Absent when not measured.
0–1
factorsarray of ScoreFactorRequiredat most 16 items
Child fields · 6
keystringRequiredpattern ^[a-z0-9_]{1,32}$
weightnumber (double)RequiredWeight inside the component.
0–1
measuredbooleanRequiredscorenumber (double)Absent when not measured.
0–1
verifiedbooleanRequiredTrue when Legion computed or observed the value itself; false when the host reported it.
observedstringThe value the factor was scored on, in words. Absent when not measured.
at most 200 characters
reliabilityHostReliabilityWhat Legion computed about the host's dependability from its own records: never reported by the host. Updated every few minutes.
Child fields · 5
uptime_30dnumber (double)Share of the minutes the host was online over the last 30 days since tracking began, out of the minutes it was at risk, meaning listed on the market or with an active rental. Minutes offline while unlisted with no active rental are left out. Absent until Legion has seen it sync.
0–1
tracked_sincestring (date-time)When Legion started tracking the host's uptime.
rentals_90dintegerRequiredRentals created on the host in the last 90 days.
at least 0
failed_90dintegerRequiredOf those, how many failed for a reason on the host's side.
at least 0
interrupted_90dintegerRequiredOf those, how many lost the host while running.
at least 0
benchmarkHostBenchmarkOne benchmark run of a host as Legion kept it. The agent runs it only while the host has no rental. Bandwidth is in Mbps; disk is sequential, in MB/s. A number with a flag against it is still shown here, for the provider and the admins, but scores 0 and is left out of search.
Bandwidth comes in two figures.
edge_anddownload_ mbps edge_are the host's line speed, measured against the nearest Cloudflare location (upload_ mbps edge_) and verified with the Worker's signed receipt;location download_andmbps upload_are to the Legion control plane in us-west-2, withmbps control_, the round trip the agent saw to it. The score and search use the edge figure when the run has one, the control-plane figure otherwise. A run from an agent without the edge test has only the control-plane figures.plane_ rtt_ ms disk_andread_ mbps disk_are the median of the runs inwrite_ mbps disk_andread_ range disk_when those are present.write_ range On a host (
Host.,benchmark Offer.) every figure is the newest run that measured it, not the newest run as a whole: a run that skipped the network test does not blank the network figures an earlier run verified, as long as that run is no more than 72 hours old (the newest run's own figures are always shown).benchmark run_andid measured_are the newest run's;at network_says when the network figures were measured. A flag belongs to the run its figure came from, so a newer flagged measurement still replaces an older clean one. In the list of runs (measured_ at listHostBenchmarks) every item is one run as it was, with only what it measured.Child fields · 20
run_idstring (uuid)Requiredmeasured_atstring (date-time)Requirednetwork_measured_atstring (date-time)When the bandwidth figures (
download_,mbps upload_,mbps edge_,download_ mbps edge_) were measured: the newest run that measured any of them. Absent when none is shown, and in the list of runs (listHostBenchmarks), where each item is one run.upload_ mbps network_skipped_reasonstringWhy this run (
run_) has no bandwidth figures, or no control-plane or no edge figures; absent when it measured both.id run_: the host already ran a benchmark in the last 6 hours and no new request was made since, so the control plane and the edge refused the transfers.interval daily_: the host used its control-plane transfer budget for the day.bytes edge_: it used its 4 edge runs for the day.daily_ runs edge_: the run was more than 15 minutes old when it asked for an edge token.run_ over edge_: the edge test is not configured.unavailable agent_: nothing was refused and nothing reached Legion, so the agent did not try. New values may be added.skipped pattern ^[a-z_]{1,32}$
download_mbpsBenchmarkValueChild fields · 2
valuenumber (double)Requiredat least 0
verifiedbooleanRequiredTrue when Legion measured it itself (network bandwidth through its own listener, or through its edge Worker with a signed receipt); false when the host reported it.
upload_mbpsBenchmarkValueChild fields · 2
valuenumber (double)Requiredat least 0
verifiedbooleanRequiredTrue when Legion measured it itself (network bandwidth through its own listener, or through its edge Worker with a signed receipt); false when the host reported it.
control_plane_rtt_msBenchmarkValueChild fields · 2
valuenumber (double)Requiredat least 0
verifiedbooleanRequiredTrue when Legion measured it itself (network bandwidth through its own listener, or through its edge Worker with a signed receipt); false when the host reported it.
edge_download_mbpsBenchmarkValueChild fields · 2
valuenumber (double)Requiredat least 0
verifiedbooleanRequiredTrue when Legion measured it itself (network bandwidth through its own listener, or through its edge Worker with a signed receipt); false when the host reported it.
edge_upload_mbpsBenchmarkValueChild fields · 2
valuenumber (double)Requiredat least 0
verifiedbooleanRequiredTrue when Legion measured it itself (network bandwidth through its own listener, or through its edge Worker with a signed receipt); false when the host reported it.
edge_locationBenchEdgeLocationWhere the edge bandwidth test was served, as Cloudflare places the request.
Child fields · 3
colostringRequiredCloudflare's location code, an IATA airport code such as LHR.
pattern ^[A-Z0-9]{3,4}$
citystringat most 128 characters
countrystringISO 3166-1 alpha-2, as Cloudflare reports it.
pattern ^[A-Z0-9]{2}$
disk_read_mbpsBenchmarkValueChild fields · 2
valuenumber (double)Requiredat least 0
verifiedbooleanRequiredTrue when Legion measured it itself (network bandwidth through its own listener, or through its edge Worker with a signed receipt); false when the host reported it.
disk_write_mbpsBenchmarkValueChild fields · 2
valuenumber (double)Requiredat least 0
verifiedbooleanRequiredTrue when Legion measured it itself (network bandwidth through its own listener, or through its edge Worker with a signed receipt); false when the host reported it.
disk_read_rangeBenchmarkRangeThe slowest and fastest of a disk figure's runs; its median is the figure itself.
Child fields · 3
minnumber (double)Requiredat least 0
maxnumber (double)Requiredat least 0
runsintegerHow many runs; absent when the agent did not say.
1–20
disk_write_rangeBenchmarkRangeThe slowest and fastest of a disk figure's runs; its median is the figure itself.
Child fields · 3
minnumber (double)Requiredat least 0
maxnumber (double)Requiredat least 0
runsintegerHow many runs; absent when the agent did not say.
1–20
disk_cache_suspectedbooleanRequiredThe disk reads may include the hypervisor's cache: the agent said so, or the disk is
virtualand reads more than 3 times faster than it writes. Informational: the figures stand and nothing is flagged. Setting the virtual disk's cache mode to none gives true figures.disk_randread_iopsBenchmarkValueChild fields · 2
valuenumber (double)Requiredat least 0
verifiedbooleanRequiredTrue when Legion measured it itself (network bandwidth through its own listener, or through its edge Worker with a signed receipt); false when the host reported it.
disk_randwrite_iopsBenchmarkValueChild fields · 2
valuenumber (double)Requiredat least 0
verifiedbooleanRequiredTrue when Legion measured it itself (network bandwidth through its own listener, or through its edge Worker with a signed receipt); false when the host reported it.
latencyarray of RegionLatencyRequiredat most 8 items
Child fields · 2
regionLatencyRegionRequiredThe reference regions agents measure round trips to: TCP connects to each region's public EC2 API endpoint, the median of 5.
one of: "us-west-2", "us-east-1", "eu-central-1", "ap-northeast-1", "ap-southeast-1"
rtt_msnumber (double)Requiredat least 0
flagsarray of stringRequiredWhat looked wrong:
net_(the agent claimed a download more than 20% above what Legion measured; an upload claim never flags),claim_ mismatch disk_(faster sequential throughput than the disk type can have),implausible disk_(more random I/O operations per second than the disk type can do),iops_ implausible latency_(round trips that break the triangle inequality between regions),impossible location_(the declared country is on another continent than the region the host is near),mismatch hw_(a compute capability the GPU model does not have),inconsistent edge_(the agent claimed more than 20% above the edge bandwidth on the Worker's receipt),claim_ mismatch edge_(an edge receipt that is not the Worker's, or not for this host and run). A bandwidth flag voids only the direction that mismatched (receipt_ invalid claim_); the edge upload never flags. A run kept before has nomismatches claim_, and its bandwidth flag voids both directions of its group.mismatches at most 8 items
claim_mismatchesarray of BenchmarkClaimMismatchThe bandwidth figures the agent claimed more than 20% above what Legion measured, so the provider sees both numbers.
flagis the flag it raised; absent foredge_, which is only noted: the edge Worker reads an upload as Cloudflare hands it the body, so its figure can fall well short of the line, and the line upload is then the higher of the edge and control-plane figures.upload at most 4 items
Child fields · 4
metricstringRequireddownloadanduploadare to the control plane,edge_anddownload edge_toupload edge_.location one of: "download", "upload", "edge_download", "edge_upload"
claimed_mbpsnumber (double)RequiredWhat the host's agent measured.
at least 0
measured_mbpsnumber (double)RequiredWhat Legion's server or edge Worker measured for the same run.
at least 0
flagstringpattern ^[a-z_]{1,32}$
hardwareHostHardwareWhat the agent reports about the host beyond its GPUs. Every field is absent until reported.
Child fields · 9
cpu_modelstringat most 128 characters
disk_typeDiskTypeThe kind of the workspace disk as the host's agent reports it.
virtualis a block device a hypervisor presents (virtio, QEMU, VMware, Hyper-V, Xen or a cloud volume): the media behind it is unknown and often NVMe, so its speed is judged against the widest ceiling, not the HDD or SATA SSD one. An agent that predatesvirtualreportshddorssdfor such a disk.one of: "nvme", "ssd", "hdd", "virtual"
disk_free_gibinteger (int64)Free space on the filesystem that holds rental workspaces.
at least 0
pcie_gen_maxintegerThe lowest, across the host's GPUs, of the PCIe generation its link can run.
1–9
pcie_width_maxintegerThe lowest PCIe link width across the GPUs.
1–32
nvlink_linksintegerActive NVLink links per GPU, the lowest across the GPUs; 0 is no NVLink.
0–64
physical_coresintegerPhysical CPU cores on the host. Absent until an agent that reports it syncs.
1–4096
threads_per_coreintegerHardware threads per physical core. 1 means every vCPU is a dedicated core.
1–16
smt_activebooleanWhether simultaneous multithreading is on, from the kernel.
benchmark_requestHostBenchmarkRequestThe state of a host's request for a new benchmark run, on the host reads.
state:scheduled(asked, waiting for the host to be idle: no rental, two idle syncs in a row; a run never starts during a rental, and a rental that arrives cancels a run in progress, which is asked for again),running(the agent reported a run in progress in the last 2 minutes),done(the last request of the provider was fulfilled atcompleted_); absent when nothing was requested. The request survives agent restarts, rentals and controller deploys: it stays until the runs it asked for arrive. A provider may makeat requests_requests in any rolling 24 hours;per_ day remaining_are left, and when none is,requests next_is when the oldest of the requests in the window leaves it.available_ at Child fields · 8
statestringone of: "scheduled", "running", "done"
requested_atstring (date-time)completed_atstring (date-time)host_busybooleanRequiredThe host serves a rental now, so a scheduled run waits for it.
remaining_requestsintegerRequired0–2
requests_per_dayintegerRequired1–2
next_available_atstring (date-time)messagestringPlain words for the provider about a scheduled or running request.
at most 300 characters
benchmark_requested_atstring (date-time)When Legion or the provider last asked the host to benchmark again; absent once the runs it asked for arrived, newer than it: a network run from a
bench_agent and a GPU run from av1 bench_agent (any run from an agent that reports neither).v2 gpu_benchmarkHostGPUBenchmarkOne GPU benchmark run of a host as Legion kept it. The Legion agent runs Legion's pinned benchmark image on the provider's machine while the host has no rental: the numbers are measured by the Legion agent (provider-run), never verified by a renter. A run with a flag is still shown here, for the provider and the admins, but is never scored and is left out of search.
Child fields · 11
run_idstring (uuid)Requiredmeasured_atstring (date-time)Requiredtool_versionstringRequiredat most 16 characters
driver_versionstringat most 32 characters
cuda_versionstringat most 8 characters
tflopsnumber (double)Dense FP16/BF16 tensor-core throughput per GPU, in TFLOPS: for each GPU the better of
bf16_andtflops fp16_, then the median across the host's GPUs. Absent when no GPU measured either.tflops at least 0
mem_bw_gbpsnumber (double)Device memory bandwidth per GPU, in GB/s, the median across the host's GPUs.
at least 0
spec_tflopsnumber (double)NVIDIA's published dense FP16/BF16 tensor peak (FP32 accumulation, no sparsity) for the host's GPU model, from Legion's table. Absent for a model not in it.
at least 0
gpusarray of GPUBenchmarkGPURequiredat most 64 items
Child fields · 9
indexintegerRequiredThe GPU's index as nvidia-smi numbers it.
0–63
namestringThe GPU's name as the driver reports it.
at most 128 characters
fp16_tflopsnumber (double)0–100000
bf16_tflopsnumber (double)0–100000
tf32_tflopsnumber (double)0–100000
fp32_tflopsnumber (double)0–100000
mem_bw_gbpsnumber (double)0–100000
h2d_gbpsnumber (double)0–100000
d2h_gbpsnumber (double)0–100000
p2parray of GPUPeerBandwidthRequiredat most 256 items
Child fields · 5
srcintegerRequired0–63
dstintegerRequired0–63
linkstringRequiredone of: "nvlink", "pcie"
accessbooleanWhether the two GPUs have direct peer access (cudaDeviceCanAccessPeer).
gbpsnumber (double)0–100000
flagsarray of stringRequiredWhat looked wrong:
gpu_(a GPU measured more than 1.15 times its model's published peak, or more than 3 median absolute deviations from what the other hosts with the same model measured).implausible at most 8 items
score_tipsarray of ScoreTipHow the provider can raise the host's score, biggest gain first. Absent until the host is scored; empty when there is nothing to improve that the provider controls.
Child fields · 3
factorstringRequiredpattern ^[a-z0-9_]{1,32}$
gainintegerRequiredPoints the score would gain with this factor perfect.
1–100
messagestringRequiredat most 500 characters
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
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
Every operation can also answer the general codes on the errors page.