I recently had an use case where i wanted to change the admin@local LCM password via an API call in order to automate the password rotation.
If you need a guide to get started you can find my other blog here
To change the password we can use postman
PUT call to https://$vRLCM/lcm/authzn/api/v2/users/password
Don`t forget to include the new password under the body field formatted in JSON format ex:
We can also leverage curl using:
curl -k --location --request PUT 'https://$vRSLCM/lcm/authzn/api/v2/users/password' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Token' \
--data-raw '{
"password": "new_password",
"username": "admin@local"
}'
Don`t forget to replace the token with a properly encoded base64 token. Instructions are found on my other blog here
Pingback: vExpert Cloud Management April 2022 Blog Digest - Möbius Business Technologies Ltd.