Environments
Create Environment
client.beta.environments.create(params, options?): BetaEnvironmentCreate a new environment with the specified configuration.
List Environments
client.beta.environments.list(params?, options?): PageCursor<BetaEnvironment>List environments with pagination support.
Get Environment
client.beta.environments.retrieve(environmentID, params?, options?): BetaEnvironmentRetrieve a specific environment by ID.
Update Environment
client.beta.environments.update(environmentID, params, options?): BetaEnvironmentUpdate an existing environment's configuration.
Delete Environment
client.beta.environments.delete(environmentID, params?, options?): BetaEnvironmentDeleteResponseDelete an environment by ID. Returns a confirmation of the deletion.
Archive Environment
client.beta.environments.archive(environmentID, params?, options?): BetaEnvironmentArchive an environment by ID. Archived environments cannot be used to create new sessions.
Models
EnvironmentsWork
Get Work Item
client.beta.environments.work.retrieve(workID, params, options?): BetaSelfHostedWorkNote: these endpoints are called automatically by the pre-built environment worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted sandbox environments. They are included here as a reference; you do not need to invoke them directly.
Poll for Work
client.beta.environments.work.poll(environmentID, params?, options?): BetaSelfHostedWork | nullNote: these endpoints are called automatically by the pre-built environment worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted sandbox environments. They are included here as a reference; you do not need to invoke them directly.
Acknowledge Work
client.beta.environments.work.ack(workID, params, options?): BetaSelfHostedWorkNote: these endpoints are called automatically by the pre-built environment worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted sandbox environments. They are included here as a reference; you do not need to invoke them directly.
Record Heartbeat
client.beta.environments.work.heartbeat(workID, params, options?): BetaSelfHostedWorkHeartbeatResponseNote: these endpoints are called automatically by the pre-built environment worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted sandbox environments. They are included here as a reference; you do not need to invoke them directly.
Stop Work
client.beta.environments.work.stop(workID, params, options?): BetaSelfHostedWorkNote: these endpoints are called automatically by the pre-built environment worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted sandbox environments. They are included here as a reference; you do not need to invoke them directly.
List Work Items
client.beta.environments.work.list(environmentID, params?, options?): PageCursor<BetaSelfHostedWork>Note: these endpoints are called automatically by the pre-built environment worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted sandbox environments. They are included here as a reference; you do not need to invoke them directly.
Update Work Item
client.beta.environments.work.update(workID, params, options?): BetaSelfHostedWorkNote: these endpoints are called automatically by the pre-built environment worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted sandbox environments. They are included here as a reference; you do not need to invoke them directly.
Get Queue Statistics
client.beta.environments.work.stats(environmentID, params?, options?): BetaSelfHostedWorkQueueStatsGet statistics about the work queue for an environment.