Skip to main content
You can use the Sandbox.list() method to list sandboxes.
Once you have information about a running sandbox, you can connect to it using the Sandbox.connect() method.

Filtering sandboxes

You can filter sandboxes by specifying Metadata key-value pairs. Specifying multiple key-value pairs returns sandboxes that match all of them. This can be useful when you have a large number of sandboxes and want to find only specific ones. The filtering is performed on the server.

Listing sandboxes

Pagination is now supported by the Sandbox.list() method. To learn more about pagination techniques with the updated method, refer to the advanced pagination section.

Filtering sandboxes

You can filter sandboxes based on their current status. The state parameter accepts “running”, “paused”, or both to return sandboxes in the specified states.
You can specify metadata key-value pairs during sandbox creation and later use them when listing sandboxes.

Advanced pagination

For finer control over pagination, specify the number of items to return per page (the default and maximum is 100) and provide an offset parameter (nextToken or next_token) to indicate where pagination should begin.
You can retrieve all pages by iterating through the paginator. hasNext / has_next is initially true before the first page is fetched and becomes false after the last page is returned.
Last modified on June 24, 2026