Change Appliance Password
Changes the password for HCX Manager appliance users (admin or root). Validates the old password via PAM authentication, enforces password policy, and invalidates the current session token after successful change.
Password Policy(Non VCF Managed):
- Minimum length: 15 characters
- Maximum length: 20 characters
- Must contain: lowercase letter, uppercase letter, number, special character (! @ # $ ^ *)
- Must NOT contain: dictionary words, palindromes, >4 monotonic sequences, 3 consecutive identical characters
- Regex pattern:
^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$^*])(?=\\S+$).{15,20}$
Password Policy(VCF Managed):
- HCX Manager Appliance user password is managed from VCF Operations
- VCF Operations centrally manage the password policies for all managed components
- Hence, password policy validation is skipped at HCX
Current session authentication token (will be invalidated after password change)
a1b2c3d4:e5f6:7890:abcd:ef1234567890
{
"userName": "string",
"oldPassword": "string",
"newPassword": "string"
}
Username
Old password (Base64 encoded)
New password (Base64 encoded)
Password changed successfully
{
"isSuccess": false,
"message": "string",
"httpStatusCode": 0
}
Operation success status
Response message
HTTP status code
Bad request - Invalid credentials, unsupported user, or password policy violation
{
"isSuccess": false,
"message": "string",
"httpStatusCode": 0
}
Operation success status
Response message
HTTP status code
Internal server error - Password change failed
"ChangePasswordResponse Object"
Operation success status
Response message
HTTP status code
curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"userName":"string","oldPassword":"string","newPassword":"string"}' https://{api_host}/system/users/changePassword