Skip to main content
An environment is a catalog resource that defines the compute shape of agent VMs. Each workspace references one environment via its environment_ref field. Environments are substrate-aware but placement-agnostic: the same environment can be reused across any placement that shares the same substrate.

Fields

The machine_type_ref and disk_type_ref must reference resources whose substrate matches the environment’s substrate. A substrate mismatch is rejected on write.On GCP, the two refs must also be compatible: a machine type that lists gce.supported_disk_types accepts only those disk types, and an environment naming one outside the list is rejected on write.An environment sets disk_size_gb and nothing else about the disk. Everything else the disk is created with, including its class and, for a provisioned-performance type, its IOPS and throughput, belongs to the disk type, so choosing a different performance level means referencing a different disk type.The disk type and disk_size_gb have to agree as well: a Hyperdisk volume’s capacity bounds the IOPS it can take. A disk_size_gb that is too small for the IOPS its disk type provisions is rejected when you write the environment or raise a disk type’s performance beyond a stored environment’s size. disk_size_gb: 0 takes the image’s own size, which only the created disk knows, so a disk type that provisions performance cannot be paired with it at all. See disk size and provisioned IOPS.

Examples

GCP environment

AWS environment

Listing environments

The list prints one name per line, with no header.

Reading a single environment

Errors