instance_sizes
Creates, updates, deletes, gets or lists an instance_sizes
resource.
Overview
Name | instance_sizes |
Type | Resource |
Id | digitalocean.apps.instance_sizes |
Fields
The following fields are returned by SELECT
queries:
- apps_get_instance_size
- apps_list_instance_sizes
A JSON with key instance_size
Name | Datatype | Description |
---|---|---|
name | string | (title: A human-readable name of the instance size, example: name) |
bandwidth_allowance_gib | string (int64) | (title: The bandwidth allowance in GiB for the instance size, example: 1) |
cpu_type | string | (default: UNSPECIFIED, title: - SHARED: Shared vCPU cores - DEDICATED: Dedicated vCPU cores, example: SHARED) |
cpus | string (int64) | (title: The number of allotted vCPU cores, example: 3) |
deprecation_intent | boolean | (title: Indicates if the instance size is intended for deprecation) |
memory_bytes | string (int64) | (title: The allotted memory in bytes, example: 1048) |
scalable | boolean | (title: Indicates if the instance size can enable autoscaling) |
single_instance_only | boolean | (title: Indicates if the instance size allows more than one instance) |
slug | string | (title: The slug of the instance size, example: apps-s-1vcpu-1gb) |
tier_downgrade_to | string | (title: The slug of the corresponding downgradable instance size on the lower tier, example: basic) |
tier_slug | string | (title: The slug of the tier to which this instance size belongs, example: basic) |
tier_upgrade_to | string | (title: The slug of the corresponding upgradable instance size on the higher tier, example: basic) |
usd_per_month | string | (title: The cost of this instance size in USD per month, example: 23) |
usd_per_second | string | (title: The cost of this instance size in USD per second, example: 0.00000001232) |
A JSON with key instance_sizes
Name | Datatype | Description |
---|---|---|
discount_percent | number (float) | |
instance_sizes | array |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
apps_get_instance_size | select | slug | Retrieve information about a specific instance size for service , worker , and job components. | |
apps_list_instance_sizes | select | List all instance sizes for service , worker , and job components. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
slug | string | The slug of the instance size (example: apps-s-1vcpu-0.5gb) |
SELECT
examples
- apps_get_instance_size
- apps_list_instance_sizes
Retrieve information about a specific instance size for service
, worker
, and job
components.
SELECT
name,
bandwidth_allowance_gib,
cpu_type,
cpus,
deprecation_intent,
memory_bytes,
scalable,
single_instance_only,
slug,
tier_downgrade_to,
tier_slug,
tier_upgrade_to,
usd_per_month,
usd_per_second
FROM digitalocean.apps.instance_sizes
WHERE slug = '{{ slug }}' -- required;
List all instance sizes for service
, worker
, and job
components.
SELECT
discount_percent,
instance_sizes
FROM digitalocean.apps.instance_sizes;