get_environment_definition
const url = 'https://app.everruns.com/api/v1/environments/example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://app.everruns.com/api/v1/environments/exampleGet one reusable Environment and its current immutable revision.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”Responses
Section titled “ Responses ”Organization-scoped reusable execution Environment.
object
Creation timestamp.
Latest immutable revision used for new references.
object
Revision creation timestamp.
Parent reusable Environment identifier.
Stable public revision identifier pinned into Agent and Session snapshots.
Complete immutable authored profile.
object
Reproducible commands run when physical compute is initialized.
object
Ordered commands replayed when creating or recovering physical compute.
Requested isolation policy; resolution supplies an honest target default.
object
Whether the runtime may widen containment after Session creation.
Filesystem mutation boundary for command execution.
object
Absolute roots the runtime may mutate; empty means provider default.
Isolation mechanism the provider must supply.
Idle lifecycle policy controlled by Everruns.
object
Action Everruns requests after the idle interval.
Inactivity interval before applying idle_action.
Immutable reusable Environment revision this profile was copied from. The profile remains a complete snapshot so Agent versions are portable and later Environment revisions cannot change an existing version.
Provider-neutral target plus its concrete adapter binding.
object
Credential/transport binding for a registered machine target.
Provider-neutral target class.
Provider-owned, non-secret configuration. Credentials are references, never values in this object.
object
Concrete adapter for target kinds with more than one implementation.
Monotonically increasing revision number within the Environment.
Optional explanation of the Environment’s intended workload.
Human-readable name shown in management surfaces.
Stable public Environment identifier.
Whether the definition is owned and sealed by the platform.
Addressable name used in configuration.
Lifecycle state such as active or archived.
Timestamp of the most recent definition or revision change.
Example
{ "current_revision": { "profile": { "containment": { "escalation": "never", "level": "none", "network": { "mode": "deny" } }, "durability": "checkpointed", "lifecycle": { "idle_action": "checkpoint_and_stop", "idle_after_seconds": 300 }, "target": { "connection_id": "conn_01933b5a000070008000000000000001", "kind": "host", "provider": "daytona" } }, "revision": 3 }, "description": "Recoverable coding workspace managed by Daytona", "display_name": "Coding - Daytona", "name": "coding-daytona", "status": "active"}