Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Sandbox.list()
import { Sandbox } from 'e2b' // Create sandbox with metadata. const sandbox = await Sandbox.create({ metadata: { userId: '123', }, }) // List running sandboxes and access metadata. const paginator = await Sandbox.list() const runningSandboxes = await paginator.nextItems() // Will print: // { // 'userId': '123', // } console.log(runningSandboxes[0].metadata)
from e2b import Sandbox # Create sandbox with metadata. sandbox = Sandbox.create( metadata={ 'userId': '123', }, ) # List running sandboxes and access metadata. paginator = Sandbox.list() running_sandboxes = paginator.next_items() # Will print: # { # 'userId': '123', # } print(running_sandboxes[0].metadata)
Was this page helpful?