doc-exports/docs/opengauss/api-ref/opengauss_api_0021.html
Wang , Deng Ke a96a12ecf1 openGauss API 20221109 version
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Wang , Deng Ke <wangdengke2@huawei.com>
Co-committed-by: Wang , Deng Ke <wangdengke2@huawei.com>
2022-11-14 16:40:26 +00:00

8.7 KiB

Resetting a Database Password

Function

This API is used to reset a database password.

URI

Request

  • Parameter description
    Table 2 Parameter description

    Name

    Mandatory

    Type

    Description

    password

    Yes

    String

    Specifies the password for user root.

    • It consists of 8 to 32 characters and contains at least three types of the following characters: uppercase letters, lowercase letters, digits, and special characters (~! @#$%^*-_=+?,).
    • It supports weak password verification.
  • Example request
    {
      "password": "Test_345612"
    }

Response

  • Normal responses

    None

  • Example normal response

    {}

Status Codes

For details, see Status Codes.

Error Codes

For details, see Error Codes.