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.

Limits

The API checks metadata on create() and update(): A map that breaks a rule fails with ValidationError (400), and the message names the rule. The sandbox keeps its previous metadata.

Filter sandboxes by metadata

Sandbox.list() accepts a metadata filter that returns only sandboxes matching every key-value pair you pass.
The sandbox.metadata instance property is a snapshot taken at construction. Call getInfo() / get_info() to fetch the current metadata after an update().