pydo.databases.get_sql_mode()
Generated on 16 Feb 2026
from pydo version
v0.26.0
Description
To retrieve the configured SQL modes for an existing MySQL cluster, send a GET request to /v2/databases/$DATABASE_ID/sql_mode.
The response will be a JSON object with a sql_mode key. This will be set to a string representing the configured SQL modes.
Parameters
| Name | Type | Required | Description | Default Value |
|---|---|---|---|---|
database_cluster_uuid |
string | True | A unique identifier for a database cluster. |
Request Sample
import os
from pydo import Client
client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))
get_resp = client.databases.get_sql_mode(database_cluster_uuid="90abaa8")More Information
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.