diff options
-rw-r--r-- | REST-cheatsheet.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/REST-cheatsheet.md b/REST-cheatsheet.md index f04187b..847a6c9 100644 --- a/REST-cheatsheet.md +++ b/REST-cheatsheet.md @@ -129,3 +129,11 @@ This document is intended to provide a set of REST client commands for OpenBMC u $ curl -c cjar -b cjar -k -H "Content-Type: application/json" -X PUT https://${bmc}/xyz/openbmc_project/control/power_supply_redundancy/attr/PowerSupplyRedundancyEnabled -d '{"data": 1}' $ curl -c cjar -b cjar -k -H "Content-Type: application/json" -X PUT https://${bmc}/xyz/openbmc_project/control/power_supply_redundancy/attr/PowerSupplyRedundancyEnabled -d '{"data": 0}' ``` + +* Update "root" password: + + - Change password from "OpenBmc" to "abc123": + ``` + $ curl -c cjar -b cjar -k -H "Content-Type: application/json" -X POST https://${bmc}/login -d "{\"data\": [ \"root\", \"0penBmc\" ] }" + $ curl -c cjar -b cjar -k -H "Content-Type: application/json" -d "{\"data\": [\"abc123\"] }" -X POST https://${bmc}/xyz/openbmc_project/user/root/action/SetPassword + ``` |