Sandbox.list()
method.
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
TheSandbox.list()
method now supports pagination. In the advanced pagination section, you can find more information about pagination techniques using the updated method.
Filtering sandboxes
Filter sandboxes by their current state. The state parameter can contain either “running” for running sandboxes or “paused” for paused sandboxes, or both.Advanced pagination
For more granular pagination, you can set custom per-page item limit (default and maximum is 1000) and specify an offset parameter (nextToken
or next_token
) to start paginating from.
hasNext
or has_next
property) and fetching until there are no more pages left to fetch: