List twins
Provision
Reset, extend, and tear down
reset restores the baseline captured when the Twin Run was provisioned. teardown ends the run immediately.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Provision and manage Twin Runs with the Python SDK
for twin in client.twins.list():
print(twin.name, twin.label, twin.kind)
result = client.twins.provision(
twins=["stripe", "slack"],
ttl_minutes=60,
scenario_id="scenario-id", # optional
public=True,
)
run_id = result["run_id"]
status = client.twins.get_status(run_id)
if status.status == "ready":
for name, twin in status.twins.items():
print(name, twin.base_url, twin.env_vars)
client.twins.reset(run_id)
client.twins.extend(run_id, ttl_minutes=90)
client.twins.teardown(run_id)
reset restores the baseline captured when the Twin Run was provisioned. teardown ends the run immediately.