Skip to main content

Container updates that can be reverted

GET 

/apps/updates/history

Required role: viewer. An account or token with the viewer or admin role can call this operation.

Example request
curl --request GET \
--header "Authorization: Bearer $HOSERVA_TOKEN" \
"https://$HOSERVA_HOST:8008/api/v1/apps/updates/history"

Every update Hoserva made that kept the image the container ran before it, newest first: when it was made, the previous image, the appdata snapshot taken just before it (absent for a container with no appdata on the cache disk) and until when the previous image is kept (keepUntil, set by imageKeepDays in the app settings). revertible says whether revertApp would go ahead now: only the newest update of a container can be reverted, once, within the keep period and while the previous image is still held and the container still runs the image it was updated to. A snapshot that has gone from its destination only shows when the revert is tried. available is false, with no error, whenever Docker itself is not reachable.

Responses​

The recorded updates.