pydo.sizes.list()
Generated on 30 Jun 2025
from pydo
version
v0.12.0
Description
To list all of available Droplet sizes, send a GET request to /v2/sizes
.
The response will be a JSON object with a key called sizes
. The value of this will be an array of size
objects each of which contain the standard size attributes.
Parameters
Name | Type | Required | Description | Default Value |
---|---|---|---|---|
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"))
resp = client.sizes.list()
More Information
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.