Skip to main content

sizes

Creates, updates, deletes, gets or lists a sizes resource.

Overview

Namesizes
TypeResource
Iddigitalocean.sizes.sizes

Fields

NameDatatypeDescription
descriptionstringA string describing the class of Droplets created from this size. For example: Basic, General Purpose, CPU-Optimized, Memory-Optimized, or Storage-Optimized.
availablebooleanThis is a boolean value that represents whether new Droplets can be created with this size.
diskintegerThe amount of disk space set aside for Droplets of this size. The value is represented in gigabytes.
disk_infoarrayAn array of objects containing information about the disks available to Droplets created with this size.
gpu_infoobjectAn object containing information about the GPU capabilities of Droplets created with this size.
memoryintegerThe amount of RAM allocated to Droplets created of this size. The value is represented in megabytes.
price_hourlynumberThis describes the price of the Droplet size as measured hourly. The value is measured in US dollars.
price_monthlynumberThis attribute describes the monthly cost of this Droplet size if the Droplet is kept for an entire month. The value is measured in US dollars.
regionsarrayAn array containing the region slugs where this size is available for Droplet creates.
slugstringA human-readable string that is used to uniquely identify each size.
transfernumberThe amount of transfer bandwidth that is available for Droplets created in this size. This only counts traffic on the public interface. The value is given in terabytes.
vcpusintegerThe number of CPUs allocated to Droplets of this size.

Methods

NameAccessible byRequired ParamsDescription
sizes_listSELECTTo 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.

SELECT examples

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.

SELECT
description,
available,
disk,
disk_info,
gpu_info,
memory,
price_hourly,
price_monthly,
regions,
slug,
transfer,
vcpus
FROM digitalocean.sizes.sizes
;