diff options
author | George Keishing <gkeishin@in.ibm.com> | 2018-02-12 11:59:57 -0600 |
---|---|---|
committer | George Keishing <gkeishin@in.ibm.com> | 2018-02-12 23:17:28 -0600 |
commit | 85b67c0efbb657affac65e4067c33a1581e0d64b (patch) | |
tree | 22fbf9337c0baee1b509fe578320c1a25a852fde | |
parent | 9af10b2aebccb47f5095e5ed5c3c887e309ff02c (diff) | |
download | openbmc-docs-85b67c0efbb657affac65e4067c33a1581e0d64b.tar.gz openbmc-docs-85b67c0efbb657affac65e4067c33a1581e0d64b.zip |
Update REST-cheatsheet.md documentation
Added:
- Deleting images from the system.
Change-Id: Ia674a0e9309ed6a14bfde1d8fb61da7d0b3789c7
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
-rw-r--r-- | REST-cheatsheet.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/REST-cheatsheet.md b/REST-cheatsheet.md index 847a6c9..699f017 100644 --- a/REST-cheatsheet.md +++ b/REST-cheatsheet.md @@ -58,6 +58,18 @@ This document is intended to provide a set of REST client commands for OpenBMC u $ curl -b cjar -k -H 'Content-Type: application/json' -X POST -d '{"data":[]}' https://${bmc}/xyz/openbmc_project/dump/action/DeleteAll ``` +* Delete images from system: + + - Delete image: + ``` + $ curl -c cjar -b cjar -k -H "Content-Type: application/json" -X POST -d '{"data": []}' https://${bmc}/xyz/openbmc_project/software/<image id>/action/Delete + ``` + + - Delete all non-running images: + ``` + $ curl -c cjar -b cjar -k -H "Content-Type: application/json" -X POST -d '{"data": []}' https://${bmc}/xyz/openbmc_project/software/action/DeleteAll + ``` + * Clear gard records: ``` $ curl -c cjar -b cjar -k -H "Content-Type: application/json" -X POST -d '{"data":[]}' https://${bmc}/org/open_power/control/gard/action/Reset |