Updates
You can interact with the updates engine over REST, as shown in the following table:
URI | HTTP Operation | Description |
---|---|---|
/openidm/maintenance/update?_action=available | POST | Lists update archives in the project-dir/openidm/bin/update/ directory. |
/openidm/maintenance/update?_action=preview&archive=patch.zip | POST | Lists file states of the current installation, relative to the patch.zip archive, using checksums. |
openidm/maintenance/update?_action=listMigrations&archive=patch.zip | POST | Gets a list of repository migrations for a given update type. |
/openidm/maintenance/update?_action=getLicense&archive=patch.zip | POST | Retrieves the license from the patch.zip archive. |
/openidm/maintenance/update?_action=listRepoUpdates&archive=patch.zip | POST | Gets a list of repository update archives; use the path in the output for the endpoint with repo files. |
/openidm/maintenance/update/archives/patch.zip/path?_field=contents&_mimeType=text/plain | POST | Get files for the specific repository update, defined in the path. |
/openidm/maintenance?_action=enable | POST | Activates maintenance mode; you should first run the commands in Pause All Scheduled Jobs. |
/openidm/maintenance?_action=disable | POST | Disables maintenance mode; you can then re-enable scheduled tasks. |
/openidm/maintenance?_action=status | POST | Returns current maintenance mode information. |
/openidm/maintenance/update?_action=update&archive=patch.zip | POST | Starts an update with the patch.zip archive. |
/openidm/maintenance/update?_action=installed | POST | Retrieves a summary of all installed updates. |
/openidm/maintenance/update?_action=restart | POST | Restarts IDM. |
/openidm/maintenance/update?_action=lastUpdateId | POST | Returns the _id value of the last successful update. |
/openidm/maintenance/update?_action=markComplete&updateId=id_string | POST | For an update with PENDING_REPO_UPDATES for one or more repositories, mark as complete. Replace id_string with the value of _id for the update archive. |
/openidm/maintenance/update/log/_id | GET | Gets information about an update, by _id (status, dates, file action taken). |
/openidm/maintenance/update/log/?_queryFilter=true | GET | Gets information about all past updates, by repository. |
Update Status Message
Status | Description |
---|---|
IN_PROGRESS | Update has started, not yet complete. |
PENDING_REPO_UPDATES | Update is complete, updates to the repository are pending. |
COMPLETE | Update is complete. |
FAILED | Update failed, not yet reverted. |