doc-exports/docs/opengauss/api-ref/opengauss_api_0021.html
Ru, Li Yi d97aea4dd2 opengauss_api
Reviewed-by: Boka, Ladislav <ladislav.boka@t-systems.com>
Co-authored-by: Ru, Li Yi <liyiru7@huawei.com>
Co-committed-by: Ru, Li Yi <liyiru7@huawei.com>
2024-09-06 09:04:21 +00:00

11 KiB

Resetting a Database Password

Function

This API is used to reset a database password. Before calling this API:

URI

Request

  • Parameter description
    Table 2 Parameter description

    Name

    Mandatory

    Type

    Description

    password

    Yes

    String

    Password for user root. The password must:

    • Consist of 8 to 32 characters.
    • Contain at least three types of the following characters:

      Uppercase letters, lowercase letters, digits, and special characters (~! @# %^*-_=+?,)

    • Support weak password verification.

Example Request

Changing the password of user root
{
  "password": "******"
}

Response

  • Normal response

    None

  • Example normal response

    {}

Status Code

Error Code

For details, see Error Codes.