Child pages
  • WHM API 1 Functions - ea4_metainfo
Skip to end of metadata
Go to start of metadata

Description

This function returns the contents of the /etc/cpanel/ea4/ea4-metainfo.json file.

Examples


 JSON API
https://hostname.example.com:2087/cpsess##########/json-api/ea4_metainfo?api.version=1
 Command Line
whmapi1 ea4_metainfo


Notes:

  • Unless otherwise noted, you must URI-encode values.
  • For more information and additional output options, read our Guide to WHM API 1 documentation or run the whmapi1 --help command.
  • If you run CloudLinux™, you must use the full path of the whmapi1 command:

    /usr/local/cpanel/bin/whmapi1

 Output (JSON)
{
   "data" : {
      "additional_packages" : [
         "ea-tomcat85",
         "ea-nodejs10"
      ],
      "default_php_handler" : "cgi",
      "default_php_package" : "ea-php72"
   },
   "metadata" : {
      "result" : 1,
      "version" : 1,
      "command" : "ea4_metainfo",
      "reason" : "OK"
   }
}


Note:

Use WHM's API Shell interface (WHM >> Home >> Development >> API Shell) to directly test WHM API calls.

Parameters

This function does not accept parameters.

Returns

  • This function's returns vary based on the contents of the /etc/cpanel/ea4/ea4-metainfo.json file.
  • This function returns an empty value if the /etc/cpanel/ea4/ea4-metainfo.json file does not exist.