> ## Documentation Index
> Fetch the complete documentation index at: https://ona.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Environments

> Reference for the Environments API methods.

## Methods

<Card title="Allow Port Access" href="/docs/api-reference/generated/environment/allow-port-access">
  Deprecated: Use local validation with the environment state cache instead.
</Card>

<Card title="Archive Environment" href="/docs/api-reference/generated/environment/archive-environment">
  Archives an environment immediately.
</Card>

<Card title="Create Environment" href="/docs/api-reference/generated/environment/create-environment">
  Creates a development environment from a context URL (e.g.
</Card>

<Card title="Create Environment Access Token" href="/docs/api-reference/generated/environment/create-environment-access-token">
  Creates an access token for the environment.
</Card>

<Card title="Create Environment From Project" href="/docs/api-reference/generated/environment/create-environment-from-project">
  Creates an environment from an existing project configuration and starts it.
</Card>

<Card title="Create Environment Logs Token" href="/docs/api-reference/generated/environment/create-environment-logs-token">
  Creates an access token for retrieving environment logs.
</Card>

<Card title="Create Port Access Token" href="/docs/api-reference/generated/environment/create-port-access-token">
  Creates an access token for a specific port on an environment.
</Card>

<Card title="Delete Environment" href="/docs/api-reference/generated/environment/delete-environment">
  Permanently deletes an environment.
</Card>

<Card title="Get Environment" href="/docs/api-reference/generated/environment/get-environment">
  Gets details about a specific environment including its status, configuration, and context URL.
</Card>

<Card title="List Environment Classes" href="/docs/api-reference/generated/environment/list-environment-classes">
  Lists available environment classes with their specifications and resource limits.
</Card>

<Card title="List Environments" href="/docs/api-reference/generated/environment/list-environments">
  Lists all environments matching the specified criteria.
</Card>

<Card title="Mark Environment Active" href="/docs/api-reference/generated/environment/mark-environment-active">
  Records environment activity to prevent automatic shutdown.
</Card>

<Card title="Start Environment" href="/docs/api-reference/generated/environment/start-environment">
  Starts a stopped environment.
</Card>

<Card title="Stop Environment" href="/docs/api-reference/generated/environment/stop-environment">
  Stops a running environment.
</Card>

<Card title="Unarchive Environment" href="/docs/api-reference/generated/environment/unarchive-environment">
  Unarchives an environment.
</Card>

<Card title="Update Environment" href="/docs/api-reference/generated/environment/update-environment">
  Updates an environment's configuration while it is running.
</Card>
