From 325f4358872e0d33f06e1d98ab7d8b1b2405d7d4 Mon Sep 17 00:00:00 2001 From: George Keishing Date: Thu, 8 Feb 2018 01:19:17 -0600 Subject: Update REST-cheatsheet.md documentation Added: - Updating default "root" password. Change-Id: Icdb4994f8f9f241649dc797cb654790e7dc71830 Signed-off-by: George Keishing --- REST-cheatsheet.md | 8 ++++++++ 1 file changed, 8 insertions(+) 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 + ``` -- cgit v1.2.1