Changing the Password of a VPN User
Function
This API is used to change the password of a specified VPN user.
Calling Method
For details, see Calling APIs.
URI
PUT /v5/{project_id}/p2c-vpn-gateways/vpn-servers/{vpn_server_id}/users/{user_id}/password
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
project_id |
String |
Yes |
Specifies a project ID. You can obtain the project ID by referring to Obtaining the Project ID. |
vpn_server_id |
String |
Yes |
Specifies the ID of a VPN server. |
user_id |
String |
Yes |
Specifies the ID of a VPN user. |
Request
- Request parameters
Table 2 Request parameters Parameter
Type
Mandatory
Description
old_password
String
Yes
Specifies the old password.
new_password
String
Yes
- Specifies a new password for the user.
- Constraints:
- The value contains 8 to 32 characters.
- The value must contain at least two types of the following characters: uppercase letters, lowercase letters, digits, and special characters including `~!@#$%^&*()-_=+\|[{}];:'",<.>/? and spaces.
- The password cannot be the username or the reverse of the username.
- The new password must be different from the latest five old passwords.
- Example request
PUT https://{Endpoint}/v5/{project_id}/p2c-vpn-gateways/vpn-servers/{vpn_server_id}/users/{user_id}/password { "old_password": "stringst-old", "new_password": "stringst-new" }
Response
- Example response
{ "request_id": "c63d850876bcddbdfbd11776cce57914" }
Status Codes
For details, see Status Codes.
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