Daytona · Arazzo Workflow

Daytona Stop and Archive a Sandbox

Version 1.0.0

Stop a running sandbox, wait until it is fully stopped, then archive it to cold storage.

1 workflow 1 source API 1 provider
View Spec View on GitHub Artificial IntelligenceAgentsCloudCode ExecutionComputer UseDeveloper ToolsInfrastructureOpen-SourceSandboxSecure ExecutionArazzoWorkflows

Provider

daytona-io

Workflows

stop-and-archive-sandbox
Stop a sandbox and archive it once it has fully stopped.
Stops a running sandbox, polls until it reaches the stopped state, then archives it so its disk is moved to cold storage.
3 steps inputs: apiToken, force, sandboxIdOrName outputs: sandboxId, state
1
stopSandbox
Stop the running sandbox.
2
pollStopped
Poll the sandbox until it reports stopped, looping while it is still stopping and ending if it enters an error state.
3
archiveSandbox
Archive the stopped sandbox, moving its disk to cold storage.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Daytona Stop and Archive a Sandbox
  summary: Stop a running sandbox, wait until it is fully stopped, then archive it to cold storage.
  description: >-
    A cost-management flow for idle developer environments. Daytona only allows
    a sandbox to be archived once it has stopped, so this workflow issues a stop,
    polls the sandbox state until it reports stopped (looping while it is still
    stopping and ending if it errors), and then archives the stopped sandbox.
    Every step spells out its request inline so the flow can be read and executed
    without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: sandboxApi
  url: ../openapi/daytona-io-sandbox-api-openapi.yml
  type: openapi
workflows:
- workflowId: stop-and-archive-sandbox
  summary: Stop a sandbox and archive it once it has fully stopped.
  description: >-
    Stops a running sandbox, polls until it reaches the stopped state, then
    archives it so its disk is moved to cold storage.
  inputs:
    type: object
    required:
    - apiToken
    - sandboxIdOrName
    properties:
      apiToken:
        type: string
        description: Daytona API key used as a bearer token.
      sandboxIdOrName:
        type: string
        description: The ID or name of the sandbox to stop and archive.
      force:
        type: boolean
        description: Force stop the sandbox using SIGKILL instead of SIGTERM.
  steps:
  - stepId: stopSandbox
    description: Stop the running sandbox.
    operationId: stopSandbox
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.apiToken"
    - name: sandboxIdOrName
      in: path
      value: $inputs.sandboxIdOrName
    - name: force
      in: query
      value: $inputs.force
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      state: $response.body#/state
  - stepId: pollStopped
    description: >-
      Poll the sandbox until it reports stopped, looping while it is still
      stopping and ending if it enters an error state.
    operationId: getSandbox
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.apiToken"
    - name: sandboxIdOrName
      in: path
      value: $inputs.sandboxIdOrName
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      state: $response.body#/state
    onSuccess:
    - name: stopped
      type: goto
      stepId: archiveSandbox
      criteria:
      - context: $response.body
        condition: $.state == "stopped"
        type: jsonpath
    - name: failed
      type: end
      criteria:
      - context: $response.body
        condition: $.state == "error"
        type: jsonpath
    - name: stillStopping
      type: goto
      stepId: pollStopped
      criteria:
      - context: $response.body
        condition: $.state != "stopped" && $.state != "error"
        type: jsonpath
  - stepId: archiveSandbox
    description: Archive the stopped sandbox, moving its disk to cold storage.
    operationId: archiveSandbox
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.apiToken"
    - name: sandboxIdOrName
      in: path
      value: $inputs.sandboxIdOrName
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      sandboxId: $response.body#/id
      state: $response.body#/state
  outputs:
    sandboxId: $steps.archiveSandbox.outputs.sandboxId
    state: $steps.archiveSandbox.outputs.state

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/daytona-io-stop-and-archive-sandbox-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.