dots.v2.databases.byDatabase_cluster_uuid().autoscale.put()

Generated on 13 Nov 2026 from DoTs version v1.24.0

Usage

client.v2.databases.byDatabase_cluster_uuid(database_cluster_uuid).autoscale.put(body: Database_autoscale_params, requestConfiguration?: RequestConfiguration<object>): Promise<void>

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

Path Parameters

database_cluster_uuid string required

Example: 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30

A unique identifier for a database cluster.

Request Body

storage object optional

Configuration for database cluster storage autoscaling

Show child properties
enabled boolean required

Example: true

Whether storage autoscaling is enabled for the cluster

thresholdPercent 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

incrementGib 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 { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
    createDigitalOceanClient,
    DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";

const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);

await client.v2.databases
    .byDatabase_cluster_uuid("9cc10173-e9ea-4176-9dbc-a4cee4c4ff30").autoscale.put({
    storage: {
        enabled: true,
        thresholdPercent: 80,
        incrementGib: 10,
    },
});

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.