Return possible RPM package changes

This function determines the actions that would result from the provisioning of a specified RPM package or packages.

SecurityBasicAuth
Request
query Parameters
package
required
string

The name of an RPM package.

Note:

  • To submit more than one package, pass the parameter multiple times. For example, package=ea-php55 and package=ea-apr-util.
Examples:
package=package=ea-apache24-mod_headers package=ea-apache24-mod_cgid package=ea-apache24-mod_mpm_event
package=ea-apache24-mod_headers
ns
string

The RPM namespace that represents a set of packages. Note:

  • ea and any from ea4_get_additional_pkg_prefixes API call are the only possible values. * When more than one namespace is involved, pass the parameter multiple times. For example, ns=ea and ns=altea.
Value: "ea" Examples:
ns=ns=ea ns=altea
ns=ea
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/package_manager_resolve_actions
Request samples
whmapi1 --output=jsonpretty \
  package_manager_resolve_actions \
  package='ea-apache24-mod_headers'
Response samples
application/json
{
  • "data": {
    • "install": [
      • "ea-apache24-mod_mpm_event",
      • "ea-apache24-mod_cgid"
      ],
    • "unaffected": [
      • "ea-php70-php-devel",
      • "ea-php56-runtime",
      • "ea-php55-php-common",
      • "ea-apache24-mod_headers",
      • "ea-php56-php-bcmath",
      • "ea-php70-php-curl",
      • "ea-php70-php-xml"
      ],
    • "uninstall": [
      • "ea-apache24-mod_cgi",
      • "ea-apache24-mod_mpm_prefork"
      ],
    • "upgrade": [
      • "ea-php56"
      ]
    },
  • "metadata": {
    • "command": "package_manager_resolve_actions",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}