CubePathDOCS
Managed Databases

Reset database user password

post/managed-databases/{md_uuid}/users/{user_uuid}/reset-password

Set a new password for a user of a Managed Database instance. If no password is provided, a secure one is generated. The new password is returned only once, in this response, and cannot be retrieved again: store it now. Applications using the old password lose access. This is also how a user that was created with SQL (its password was set outside the panel, password_managed is false) becomes managed by the platform: from then on it is kept across restarts, scaling and failover like any other user, with the restricted role options and the access to every logical database of the instance that every managed user has, so any extra attribute or grant it had been given with SQL is replaced.

Autorización

Authorization
Authorization*string

Bearer YOUR_API_TOKEN con un token de API. También vale la cabecera X-API-Key: YOUR_API_TOKEN.

Parámetros de ruta

md_uuid*string
user_uuid*string

Cuerpo de la petición

application/json
password?string | null
Rango12 ≤ length ≤ 64

Respuestas

Successful Response

application/json

detail*string
uuid*string
username*string
password*string
status*string