package_version
Check the version of a package that may be installed in the SDL LiveContent Reach application.
Parameters
- action
- package_version
- name
- Identifying name of the package or the content delivery group.
Example URL
http://<host>:<port>/<context>/web/package.xql?action=package_version&name=<value>
Successful Result
This function returns a standard API result element (<result status='SUCCESS' statusCode='0' message='Localized Message' messageKey='message.key'/>). A statusCode of 0 indicates a successful execution. Any other statusCode indicates a failure. This result will include a <info name="version" value="1"/> element to provide the requested package's version. If the value="0", then the package has never been installed on this system.
Failed Result
If the requested package has not been installed on the system, a <info name="version" value="0"/> will be included in the API result.