Integration Server 10.3 | Built-In Services Reference Guide | Packages Folder | Summary of Elements in this Folder | pub.packages:recoverPackage
 
pub.packages:recoverPackage
WmPublic. Recovers a package that exists in the server's salvage directory.
The salvage directory ( Integration Server_directory \instances\instance_name\replicate\salvage) is where the server keeps packages that are deleted with the "safe delete" option or replaced with newer installed versions.
Input Parameters
package
String Name of the package that you want to recover. Package names are case sensitive.
activateOnRecover
String Flag that specifies whether you want the server to automatically activate the package after it is recovered. Set to:
*yes to activate the package after it is recovered and make it immediately available to clients.
*no to recover the package without activating it afterwards. If you recover a package in this mode, it will not be accessible until it is explicitly activated through the Integration Server Administrator or the pub.packages:activatePackage service.
Output Parameters
message
String Message from server. (This is the same message that is displayed when you recover a package with the Integration Server Administrator.)
Usage Notes
You can only recover packages that exist in the server's salvage directory.
If you recover a package that is currently installed on the server, the package from the salvage directory replaces the version that is currently installed. (Be aware that the server does not retain a copy of the version that it replaces.)
This service will throw an exception if the file named in package does not exist in the server's salvage directory or cannot otherwise be recovered.
See Also
pub.packages:activatePackage