How to Pause and Resume a MicroVM

Last verified 17 Nov 2026

DigitalOcean MicroVMs are lightweight virtual machines that run a container image in an isolated kernel, pause automatically when idle, and resume on the next request with memory, files, and processes intact.

Pausing a DigitalOcean MicroVM suspends the MicroVM and preserves its memory, files, and running processes, so it resumes where it left off. A paused MicroVM incurs storage charges only.

MicroVMs pause automatically after their idle timeout, and resume on the next request when auto-resume is on. You can also pause and resume a MicroVM manually. With auto-resume off, a paused MicroVM stays paused until you resume it. For details, see MicroVM Lifecycle.

Pause or Resume a MicroVM Using the Control Panel

Go to the MicroVMs page, select the MicroVM, then click Pause or Resume. You can also open the MicroVM’s … menu on the MicroVMs page and click Pause MicroVM or Resume MicroVM. Confirm in the window that opens.

Pause or Resume a MicroVM Using doctl

Pause the MicroVM.

How to Pause a Running MicroVM Using the DigitalOcean CLI
  1. Install doctl, the official DigitalOcean CLI.
  2. Create a personal access token and save it for use with doctl.
  3. Use the token to grant doctl access to your DigitalOcean account.
    doctl auth init
  4. Finally, run doctl compute microvm pause. Basic usage looks like this, but you can read the usage docs for more details:
    doctl compute microvm pause <microvm-id> [flags]

Resume the MicroVM.

How to Resume a Paused MicroVM Using the DigitalOcean CLI
  1. Install doctl, the official DigitalOcean CLI.
  2. Create a personal access token and save it for use with doctl.
  3. Use the token to grant doctl access to your DigitalOcean account.
    doctl auth init
  4. Finally, run doctl compute microvm resume. Basic usage looks like this, but you can read the usage docs for more details:
    doctl compute microvm resume <microvm-id> [flags]

Pause or Resume a MicroVM Using the API

Send a POST request to /v2/microvms/<your-microvm-id>/pause to pause the MicroVM.

How to Pause a MicroVM Using the DigitalOcean API

Create a personal access token and save it for use with the API.

cURL

Send a POST request to https://api.digitalocean.com/v2/microvms/{microvm_id}/pause.

Using cURL:

curl -X POST \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \
  "https://api.digitalocean.com/v2/microvms/01a0ef1a-d873-793d-ae6a-5dd6239be62a/pause"

Send a POST request to /v2/microvms/<your-microvm-id>/resume to resume the MicroVM.

How to Resume a MicroVM Using the DigitalOcean API

Create a personal access token and save it for use with the API.

cURL

Send a POST request to https://api.digitalocean.com/v2/microvms/{microvm_id}/resume.

Using cURL:

curl -X POST \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \
  "https://api.digitalocean.com/v2/microvms/01a0ef1a-d873-793d-ae6a-5dd6239be62a/resume"

Both requests return when the change completes. Sending either request when the MicroVM is already in that state succeeds. Both return HTTP 400 when the MicroVM is creating, terminated, or failed.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.