For AI agents: The documentation index is at https://docs.digitalocean.com/llms.txt. Markdown versions of pages use the same URL with index.html.md in place of the HTML page (for example, append index.html.md to the directory path instead of opening the HTML document).
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
- Install
doctl, the official DigitalOcean CLI.
- Create a personal access token and save it for use with
doctl.
- Use the token to grant
doctl access to your DigitalOcean account.
- 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
- Install
doctl, the official DigitalOcean CLI.
- Create a personal access token and save it for use with
doctl.
- Use the token to grant
doctl access to your DigitalOcean account.
- 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.