pydo.databases.update_cluster_metrics_credentials()

Generated on 8 May 2026 from pydo version v0.34.0

Usage

client.databases.update_cluster_metrics_credentials(
    body={
        "credentials": {...},
    },
)
Returns NoneRaises HttpResponseError

Description

To update the credentials for all database clusters’ metrics endpoints, send a PUT request to /v2/databases/metrics/credentials. A successful request will receive a 204 No Content status code with no body in response.

Parameters

credentials object optional
Show child properties
basic_auth_username string optional

Example: username

basic authentication username for metrics HTTP endpoint

basic_auth_password string optional

Example: password

basic authentication password for metrics HTTP endpoint

Request Sample

Show Request Sample
import os
from pydo import Client

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

req = {
  "credentials": {
    "basic_auth_username": "new_username",
    "basic_auth_password": "new_password"
  }
}

resp = client.databases.update_cluster_metrics_credentials(body=req)

More Information

See /v2/databases/metrics/credentials 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.