Sandbox.list() method to list sandboxes.
Once you have information about 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 will return 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 theSandbox.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.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.
hasNext or has_next, and continue fetching until no pages remain.