Updated on 2023-11-24 GMT+08:00

Checking for Weak Passwords

API Description

This API is used to check whether a password is a weak password.

URI

  • URI format

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

  • URI example
    https://dds.cn-north-1.myhuaweicloud.com/v3/619d3e78f61b4be68bc5aa0b59edcf7b/weak-password-verification
    Table 1 Request parameters

    Name

    Mandatory

    Type

    Description

    X-Auth-Token

    Yes

    String

    User token obtained from IAM. For details, see Authentication.

    project_id

    Yes

    String

    Project ID of a tenant in a region. Obtain the project ID by following the instructions in Obtaining a Project ID.

Requests

  • Parameter description
    Table 2 Request body parameters

    Name

    Mandatory

    Type

    Description

    password

    Yes

    String

    Password.

Example Request

Checking whether a password is a weak password

{
  "password" : "xxxx"
}

Responses

  • Parameter description
    Table 3 Response body parameters

    Name

    Type

    Description

    weak

    Boolean

    Whether the password is a weak password. The value can be true or false.

  • Example response
    Checking whether a password is a weak password
    { 
      "weak" : false 
    }

Status Code

For details, see Status Code.

Error Code

For details, see Error Code.