---
title: "Stop a VM"
method: POST
path: "/agent/compute/vms/{id}/stop"
tags: ["Compute"]
---

# Stop a VM

`POST /agent/compute/vms/{id}/stop`

## Request

- Base URL: `https://edge.network`
- URL: `https://edge.network/agent/compute/vms/{id}/stop`
- Auth: HTTP bearer

Graceful shutdown (ACPI). The VM keeps its disk and IP and continues to be billed; delete it to stop charges. Returns the VM with its new status; 409 RESOURCE_BUSY if another operation is in progress. Idempotent: calling it on a VM already in the target state returns unchanged: true.

## Path parameters

- `id` string, required

## Headers

- `X-Dry-Run` 'true' | 'false'
- `Idempotency-Key` string

## Response `200`

Success.

- object
  - `vm` Vm, required
    - `id` string, required
    - `name` string, required
    - `status` string, required: Lifecycle status. Poll until "running" before attempting SSH.
    - `size` 'nano' | 'small' | 'medium' | 'large' | 'xlarge'
    - `vcpu` number
    - `ram` number: RAM in GB.
    - `disk` number: Disk in GB.
    - `region` string
    - `os` string
    - `network` object
      - `publicIp` string, nullable
  - `tell_user` string: Human-readable summary of what happened, for the agent to relay to its operator.

## Other responses

- `400`: Validation error — the response body explains what to fix.
- `401`: Missing or invalid agent access code. The body includes self-signup pointers.
- `429`: Rate limited. Honour Retry-After and the RateLimit-* headers before retrying.

---

[API](https://skmtc.dev/edge/apis/edge-network-agent-api.md) · [All operations](https://skmtc.dev/edge/apis/edge-network-agent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/edge/apis/edge-network-agent-api/revisions/49b5f2adf020?raw)
