Updated on 2024-07-12 GMT+08:00

Validating Password Strength

Function

This API is used to verify the security of user root password. Before calling this API:

URI

POST https://{Endpoint}/v3/{project_id}/weak-password-verification

Table 1 Parameter description

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID of a tenant in a region.

For details about how to obtain the project ID, see Obtaining a Project ID.

Request Parameters

Table 2 Parameter description

Name

Mandatory

Type

Description

password

Yes

String

Password of the database account.

Response Parameters

Table 3 Parameter description

Parameter

Type

Description

is_weak_password

Boolean

Whether the password is weak.

  • true: It is a weak password.
  • false: It is not a weak password.

Example Request

Checking whether the password of a database account is weak
POST https://gaussdb-opengauss.ap-southeast-1.myhuaweicloud.com/v3/0483b6b16e954cb88930a360d2c4e663/weak-password-verification
{ 
  "password" : "******" 
}

Example Response

Weak password verification succeeded.

{ 
  "is_weak_password" : false 
}

Status Code

Error Code

For details, see Error Codes.