pydo.microvms.post_pause()

Generated on 13 Nov 2026 from pydo version v0.46.0

Usage

client.microvms.post_pause(microvm_id="01a0ef1a-d873-793d-ae6a-5dd6239be62a")
Returns JSON Raises HttpResponseError

Description

To pause a MicroVM, send a POST request to /v2/microvms/{microvm_id}/pause.

Pausing suspends the MicroVM’s processes and preserves its memory, files, and processes. A paused MicroVM incurs storage charges only. The request returns when the change completes. Pausing a MicroVM that is already paused succeeds. The request returns HTTP 400 when the MicroVM is creating, terminated, or failed.

Parameters

microvm_id string required

The unique ID of the MicroVM.

Response Example

Show Response Example
{
  "microvm": {
    "id": "01a0ef1a-d873-793d-ae6a-5dd6239be62a",
    "name": "example-microvm",
    "region": "mkc1",
    "size": {
      "cpu": 1,
      "memory": 2048,
      "disk": 50
    },
    "source": {
      "oci_ref": "docker.io/library/nginx:latest"
    },
    "state": "paused",
    "networking": "public",
    "auto_pause": {
      "enabled": true,
      "idle_timeout": "5m0s"
    },
    "auto_resume": true,
    "http_protocol": "http",
    "ports": [
      80
    ],
    "urls": [
      {
        "id": "3f6c1a2b-9d4e-5f70-8a1b-2c3d4e5f6a7b",
        "hostname": "01a0ef1a-d873-793d-ae6a-5dd6239be62a.mkc1.microvm.ondigitalocean.com",
        "port": 80,
        "default": true,
        "status": "ACTIVE"
      }
    ],
    "created_at": "2026-09-29T21:38:29Z"
  }
}

More Information

See /v2/microvms/{microvm_id}/pause in the API reference for additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.