Databases

Reset database password

Changed on

Rotates the Volcano-managed PostgreSQL password used by clients when connecting through pgproxy. This does not rotate or expose the internal owner password. The returned password and connection string are the only client credentials that will authenticate through pgproxy after reset.

Existing connections are not interrupted; new ones must use the returned string. Proxies pick the rotation up within a few seconds, so the previous password can still open new connections until then.

post/projects/{id}/databases/{databaseName}/reset-password

Request

  • Base URL
    https://api.volcano.dev
  • Auth
    • HTTP bearer
    • or HTTP bearer

Path parameters

id, string uuid required

Project ID

databaseName, string required

Database name (unique within project, lowercase letters, numbers, and underscores only)

Response

Password reset successful

object required
message, string
role_name, string

Volcano-managed per-database client login (also the pgproxy routing username)

new_password, string

New Volcano-managed client password. Always starts with vpg_.

connection_string, string

Updated pgproxy connection string using Volcano-managed credentials.

Example response

{
  "role_name": "volcano_client_11111111-1111-1111-1111-111111111111"
}

Changes

    • info

      the endpoint scheme security ProjectAccessToken was added to the API

    • breaking

      added the new path request parameter databaseName

    • breaking

      added the new path request parameter id

    12 more changes in this revision