> ## 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] [Allow Port Access](https://ona.com/docs/api-reference/generated/environment/allow-port-access.md)
>
> Deprecated: Use local validation with the environment state cache instead.

> [card] [Archive Environment](https://ona.com/docs/api-reference/generated/environment/archive-environment.md)
>
> Archives an environment immediately.

> [card] [Create Environment](https://ona.com/docs/api-reference/generated/environment/create-environment.md)
>
> Creates a development environment from a context URL (e.g.

> [card] [Create Environment Access Token](https://ona.com/docs/api-reference/generated/environment/create-environment-access-token.md)
>
> Creates an access token for the environment.

> [card] [Create Environment From Project](https://ona.com/docs/api-reference/generated/environment/create-environment-from-project.md)
>
> Creates an environment from an existing project configuration and starts it.

> [card] [Create Environment Logs Token](https://ona.com/docs/api-reference/generated/environment/create-environment-logs-token.md)
>
> Creates an access token for retrieving environment logs.

> [card] [Create Port Access Token](https://ona.com/docs/api-reference/generated/environment/create-port-access-token.md)
>
> Creates an access token for a specific port on an environment.

> [card] [Delete Environment](https://ona.com/docs/api-reference/generated/environment/delete-environment.md)
>
> Permanently deletes an environment.

> [card] [Get Environment](https://ona.com/docs/api-reference/generated/environment/get-environment.md)
>
> Gets details about a specific environment including its status, configuration, and context URL.

> [card] [List Environment Classes](https://ona.com/docs/api-reference/generated/environment/list-environment-classes.md)
>
> Lists available environment classes with their specifications and resource limits.

> [card] [List Environments](https://ona.com/docs/api-reference/generated/environment/list-environments.md)
>
> Lists all environments matching the specified criteria.

> [card] [Mark Environment Active](https://ona.com/docs/api-reference/generated/environment/mark-environment-active.md)
>
> Records environment activity to prevent automatic shutdown.

> [card] [Start Environment](https://ona.com/docs/api-reference/generated/environment/start-environment.md)
>
> Starts a stopped environment.

> [card] [Stop Environment](https://ona.com/docs/api-reference/generated/environment/stop-environment.md)
>
> Stops a running environment.

> [card] [Unarchive Environment](https://ona.com/docs/api-reference/generated/environment/unarchive-environment.md)
>
> Unarchives an environment.

> [card] [Update Environment](https://ona.com/docs/api-reference/generated/environment/update-environment.md)
>
> Updates an environment's configuration while it is running.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.