Skip to main content
Metadata is a flat {string: string} map attached to each sandbox. Use it to track the user, job, environment, or any other context you need to query later.

Set metadata on create

Update metadata

update() replaces the metadata map - pass the full set you want to keep.

Filter sandboxes by metadata

Sandbox.list() accepts a metadata filter. Multiple keys combine with AND - a sandbox must match every key-value pair to be returned.
The sandbox.metadata instance property is a snapshot taken at construction. Call getInfo() / get_info() to fetch the current metadata after an update().