Skip to main content
GET
/
api
/
v1
/
clusters
/
digitalocean
/
sizes
List available DigitalOcean droplet sizes
import requests

url = "https://platform.ankra.app/api/v1/clusters/digitalocean/sizes"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://platform.ankra.app/api/v1/clusters/digitalocean/sizes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
curl --request GET \
--url https://platform.ankra.app/api/v1/clusters/digitalocean/sizes \
--header 'Authorization: Bearer <token>'
[
  {
    "available": true,
    "description": "<string>",
    "disk": 123,
    "memory": 123,
    "price_monthly": 123,
    "slug": "<string>",
    "vcpus": 123
  }
]
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

authorization
string | null
x-ankra-organisation-id
string | null

Query Parameters

credential_id
string<uuid>
required

DigitalOcean credential ID to use for API access

region
string | null

Filter availability by region

Response

Sizes retrieved from DigitalOcean API with availability info

available
boolean
required
description
string
required
disk
integer
required
memory
integer
required
price_monthly
number
required
slug
string
required
vcpus
integer
required