NodeRingsDocs

List Snapshots

List Snapshots on the NodeRings client API (GET /v1/virtual-machines/{vmId}/snapshots).

GET
/v1/virtual-machines/{vmId}/snapshots
Authorization<token>

Bearer token

In: header

X-Organization-ID<token>

Tenant or organization identifier

In: header

Path Parameters

vmIdstring

Query Parameters

status?string
Value in"SNAPSHOT_STATUS_UNSPECIFIED" | "SNAPSHOT_STATUS_ACTIVE" | "SNAPSHOT_STATUS_DELETED" | "SNAPSHOT_STATUS_EXPIRED" | "SNAPSHOT_STATUS_UNKNOWN"
page?integer
Formatint32
pageSize?integer
Formatint32

Response Body

application/json

curl -X GET "https://api.noderings.com/v1/virtual-machines/{vmId}/snapshots?status&page&pageSize" \  -H "Authorization: Bearer {your_token}" \  -H "X-Organization-ID: {your_org_id}"
{
  "snapshots": [
    {
      "id": "string",
      "name": "string",
      "snapshotId": "string",
      "virtualMachineId": "string",
      "createdAt": "2019-08-24T14:15:22Z",
      "snapshotStatus": "SNAPSHOT_STATUS_UNSPECIFIED",
      "restoreStatus": "RESTORE_STATUS_UNSPECIFIED",
      "operationStatus": "SNAPSHOT_OPERATION_STATUS_UNSPECIFIED",
      "restoredAt": "2019-08-24T14:15:22Z",
      "description": "string",
      "lastRestore": {
        "snapshotName": "string",
        "restoredAt": "2019-08-24T14:15:22Z",
        "restoredBy": "string"
      },
      "metadata": {},
      "status": "STATUS_UNSPECIFIED",
      "timestamps": {
        "createTime": "2019-08-24T14:15:22Z",
        "updateTime": "2019-08-24T14:15:22Z"
      }
    }
  ],
  "totalCount": 0
}