sizes
Creates, updates, deletes, gets or lists a sizes
resource.
Overview
Name | sizes |
Type | Resource |
Id | digitalocean.sizes.sizes |
Fields
Name | Datatype | Description |
---|---|---|
description | string | A string describing the class of Droplets created from this size. For example: Basic, General Purpose, CPU-Optimized, Memory-Optimized, or Storage-Optimized. |
available | boolean | This is a boolean value that represents whether new Droplets can be created with this size. |
disk | integer | The amount of disk space set aside for Droplets of this size. The value is represented in gigabytes. |
disk_info | array | An array of objects containing information about the disks available to Droplets created with this size. |
gpu_info | object | An object containing information about the GPU capabilities of Droplets created with this size. |
memory | integer | The amount of RAM allocated to Droplets created of this size. The value is represented in megabytes. |
price_hourly | number | This describes the price of the Droplet size as measured hourly. The value is measured in US dollars. |
price_monthly | number | This 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. |
regions | array | An array containing the region slugs where this size is available for Droplet creates. |
slug | string | A human-readable string that is used to uniquely identify each size. |
transfer | number | The 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. |
vcpus | integer | The number of CPUs allocated to Droplets of this size. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
sizes_list | SELECT |
| 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
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
;