pydo.volume_snapshots.list()

Description

To retrieve the snapshots that have been created from a volume, send a GET request to /v2/volumes/$VOLUME_ID/snapshots.

Parameters

Name Type Required Description Default Value
volume_id string True The ID of the block storage volume.
per_page integer False Number of items returned per page 20
page integer False Which ‘page’ of paginated results to return. 1

Request Sample

import os
from pydo import Client

client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))

req = {
  "name": "big-data-snapshot1475261774"
}

resp = client.volume_snapshots.list(snapshot_id="da3aa3a")

More Information

See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.

In this article...