Checking for Weak Passwords
API Description
This API is used to check whether a password is a weak password.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
- If you are using identity policy-based authorization, the following identity policy-based permissions are required.
Action
Access Level
Resource Type (*: required)
Condition Key
Alias
Dependencies
dds:instance:listAll
list
-
-
dds:instance:list
-
URI
- URI format
- 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
Definition
User token obtained from IAM. For details, see Authentication.
Constraints
N/A
Range
N/A
Default Value
N/A
project_id
Yes
String
Definition
Project ID of a tenant in a region. Obtain the project ID by following the instructions in Obtaining a Project ID.
Constraints
N/A
Range
N/A
Default Value
N/A
Request
- Parameter description
Table 2 Request body parameters Name
Mandatory
Type
Description
password
Yes
String
Definition
Password.
Constraints
N/A
Range
N/A
Default Value
N/A
Example Request
POST https://{endpoint}/v3/619d3e78f61b4be68bc5aa0b59edcf7b/weak-password-verification
{
"password" : "xxxx"
}
Response
- Parameter description
Table 3 Response body parameters Name
Type
Description
weak
Boolean
Definition
Whether the password is a weak password.
Range
- true: It is a weak password.
- false: It is not a weak password.
Example Response
{
"weak" : false
}
Status Code
For details, see Status Code.
Error Code
For details, see Error Code.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot