pydo.apps.list_instance_sizes()

Description

List all instance sizes for service, worker, and job components.

Request Sample

import os
from pydo import Client

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

get_resp = client.apps.list_instance_sizes()

Responses

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

A JSON with key instance_sizes

Click to expand an example response for instance_sizes.
{
  "value": {
    "instance_sizes": [
      {
        "name": "Shared 1VCPU 0.5GB",
        "slug": "apps-s-1vcpu-0.5gb",
        "cpu_type": "SHARED",
        "cpus": "1",
        "memory_bytes": "536870912",
        "usd_per_month": "5.00",
        "usd_per_second": "0.000002066799",
        "tier_slug": "basic",
        "single_instance_only": true,
        "bandwidth_allowance_gib": "50"
      },
      {
        "name": "Shared 1VCPU 1GB Fixed",
        "slug": "apps-s-1vcpu-1gb-fixed",
        "cpu_type": "SHARED",
        "cpus": "1",
        "memory_bytes": "1073741824",
        "usd_per_month": "10.00",
        "usd_per_second": "0.000004133598",
        "tier_slug": "basic",
        "single_instance_only": true,
        "bandwidth_allowance_gib": "100"
      },
      {
        "name": "Shared 1VCPU 1GB",
        "slug": "apps-s-1vcpu-1gb",
        "cpu_type": "SHARED",
        "cpus": "1",
        "memory_bytes": "1073741824",
        "usd_per_month": "12.00",
        "usd_per_second": "0.000004960317",
        "tier_slug": "professional",
        "bandwidth_allowance_gib": "150"
      },
      {
        "name": "Shared 1VCPU 2GB",
        "slug": "apps-s-1vcpu-2gb",
        "cpu_type": "SHARED",
        "cpus": "1",
        "memory_bytes": "2147483648",
        "usd_per_month": "25.00",
        "usd_per_second": "0.000010333995",
        "tier_slug": "professional",
        "bandwidth_allowance_gib": "200"
      },
      {
        "name": "Shared 2VCPU 4GB",
        "slug": "apps-s-2vcpu-4gb",
        "cpu_type": "SHARED",
        "cpus": "2",
        "memory_bytes": "4294967296",
        "usd_per_month": "50.00",
        "usd_per_second": "0.000020667989",
        "tier_slug": "professional",
        "bandwidth_allowance_gib": "250"
      },
      {
        "name": "Dedicated 1VCPU 0.5GB",
        "slug": "apps-d-1vcpu-0.5gb",
        "cpu_type": "DEDICATED",
        "cpus": "1",
        "memory_bytes": "536870912",
        "usd_per_month": "29.00",
        "usd_per_second": "0.000011987434",
        "tier_slug": "professional",
        "scalable": true,
        "bandwidth_allowance_gib": "100"
      },
      {
        "name": "Dedicated 1VCPU 1GB",
        "slug": "apps-d-1vcpu-1gb",
        "cpu_type": "DEDICATED",
        "cpus": "1",
        "memory_bytes": "1073741824",
        "usd_per_month": "34.00",
        "usd_per_second": "0.000014054233",
        "tier_slug": "professional",
        "scalable": true,
        "bandwidth_allowance_gib": "200"
      },
      {
        "name": "Dedicated 1VCPU 2GB",
        "slug": "apps-d-1vcpu-2gb",
        "cpu_type": "DEDICATED",
        "cpus": "1",
        "memory_bytes": "2147483648",
        "usd_per_month": "39.00",
        "usd_per_second": "0.000016121032",
        "tier_slug": "professional",
        "scalable": true,
        "bandwidth_allowance_gib": "300"
      },
      {
        "name": "Dedicated 1VCPU 4GB",
        "slug": "apps-d-1vcpu-4gb",
        "cpu_type": "DEDICATED",
        "cpus": "1",
        "memory_bytes": "4294967296",
        "usd_per_month": "49.00",
        "usd_per_second": "0.000020254630",
        "tier_slug": "professional",
        "scalable": true,
        "bandwidth_allowance_gib": "400"
      },
      {
        "name": "Dedicated 2VCPU 4GB",
        "slug": "apps-d-2vcpu-4gb",
        "cpu_type": "DEDICATED",
        "cpus": "2",
        "memory_bytes": "4294967296",
        "usd_per_month": "78.00",
        "usd_per_second": "0.000032242063",
        "tier_slug": "professional",
        "scalable": true,
        "bandwidth_allowance_gib": "500"
      },
      {
        "name": "Dedicated 2VCPU 8GB",
        "slug": "apps-d-2vcpu-8gb",
        "cpu_type": "DEDICATED",
        "cpus": "2",
        "memory_bytes": "8589934592",
        "usd_per_month": "98.00",
        "usd_per_second": "0.000040509259",
        "tier_slug": "professional",
        "scalable": true,
        "bandwidth_allowance_gib": "600"
      },
      {
        "name": "Dedicated 4VCPU 8GB",
        "slug": "apps-d-4vcpu-8gb",
        "cpu_type": "DEDICATED",
        "cpus": "4",
        "memory_bytes": "8589934592",
        "usd_per_month": "156.00",
        "usd_per_second": "0.000064484127",
        "tier_slug": "professional",
        "scalable": true,
        "bandwidth_allowance_gib": "700"
      },
      {
        "name": "Dedicated 4VCPU 16GB",
        "slug": "apps-d-4vcpu-16gb",
        "cpu_type": "DEDICATED",
        "cpus": "4",
        "memory_bytes": "17179869184",
        "usd_per_month": "196.00",
        "usd_per_second": "0.000081018519",
        "tier_slug": "professional",
        "scalable": true,
        "bandwidth_allowance_gib": "800"
      },
      {
        "name": "Dedicated 8VCPU 32GB",
        "slug": "apps-d-8vcpu-32gb",
        "cpu_type": "DEDICATED",
        "cpus": "8",
        "memory_bytes": "34359738368",
        "usd_per_month": "392.00",
        "usd_per_second": "0.000162037037",
        "tier_slug": "professional",
        "scalable": true,
        "bandwidth_allowance_gib": "900"
      }
    ]
  }
}

Unauthorized

Click to expand an example response.
{
  "id": "unauthorized",
  "message": "Unable to authenticate you."
}

API Rate limit exceeded

Click to expand an example response.
{
  "id": "too_many_requests",
  "message": "API Rate limit exceeded."
}

Server error.

Click to expand an example response.
{
  "id": "server_error",
  "message": "Unexpected server-side error"
}

Unexpected error

Click to expand an example response.
{
  "id": "example_error",
  "message": "some error message"
}