Red Hat Bugzilla – Bug 1309480
Remote API is missing ability to retrieve and revert historic plug-in and resource configuration
Last modified: 2016-05-17 10:23:55 EDT
Description of problem:
ConfigurationManagerRemote interface does not expose a method to apply/revert configuration from configuration history/updates.
This prevents a client from using the remote API to manage configuration for a resource and its connection settings based on prior configuration updates.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Import a resource.
2. Make configuration changes.
3. Use the remote API to retrieve the resource's plug-in configuration updates:
> // Get all plugin configuration updates for the Resource myResource
> var myConnectionHistory = myResource.getPluginConfigurationUpdates();
myConnectionHistory contains a list of ids but there is no way to get the configuration update record showing the date/time of the update along with who applied it and its status along with the actual Configuration object so that it can be reapplied to the resource.
myConnectionHistory should contain a list of PluginConfigurationUpdate which includes all the details of the update including Configuration.
Additionally, it should be possible to pass a resource ID and configuration update ID to a method of ConfigurationManager to have the server reapply the desired configuration update. This would be similar to the Rollback function provided in the configuration history pages of the UI.
It appears that some/all of this functionality is exposed in the local interface so perhaps this is just a matter of moving local methods over to the remote interface.