pydo.databases.update_autoscale()

Generated on 3 Aug 2026 from pydo version v0.40.0

Usage

client.databases.update_autoscale(
    database_cluster_uuid="9cc10173-e9ea-4176-9dbc-a4cee4c4ff30",
    body={
        "storage": {...},
    },
)
Returns NoneRaises HttpResponseError

Description

To configure autoscale settings for an existing database cluster, send a PUT request to /v2/databases/{database_cluster_uuid}/autoscale, specifying the autoscale configuration. A successful request will receive a 204 No Content status code with no body in response.

Parameters

database_cluster_uuid string required

A unique identifier for a database cluster.

storage object optional
Show child properties
enabled boolean required

Example: True

Whether storage autoscaling is enabled for the cluster

threshold_percent integer optional

Example: 80

The storage usage threshold percentage that triggers autoscaling. When storage usage exceeds this percentage, additional storage will be added automatically.

Min: 15

Max: 95

increment_gib integer optional

Example: 10

The amount of additional storage to add (in GiB) when autoscaling is triggered

Min: 10

Max: 500

Request Sample

Show Request Sample
import os
from pydo import Client

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

req = {
  "storage": {
    "enabled": True,
    "threshold_percent": 80,
    "increment_gib": 10
  }
}

update_resp = client.databases.update_autoscale(database_cluster_uuid="a7a89a", body=req)

More Information

See /v2/databases/{database_cluster_uuid}/autoscale in the API reference for additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.