Return EasyApache 4 profiles

This function returns a list of all EasyApache 4 profiles and the packages that each profile provides.

Important:

When you disable the Web Server role, the system disables this function.

SecurityBasicAuth
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/ea4_list_profiles
Request samples
whmapi1 --output=jsonpretty \
  ea4_list_profiles
Response samples
application/json
{
  • "data": {
    • "cpanel": [
      • {
        • "active": 1,
        • "desc": "The currently installed packages on the server.",
        • "name": "No PHP",
        • "pkgs": [
          • "ea-apache24",
          • "ea-php74"
          ],
        • "tags": [
          • "ea-apache24",
          • "ea-php74"
          ],
        • "validation_data": {
          • "not_on_server": [
            • "ea-apache24",
            • "ea-php74"
            ]
          },
        • "version": "1.2"
        }
      ],
    • "custom": [
      • {
        • "desc": "The currently installed packages on the server.",
        • "name": "No PHP",
        • "path": "default.json",
        • "pkgs": [
          • "ea-apache24",
          • "ea-php74"
          ],
        • "tags": [
          • "Apache 2.4",
          • "PHP 7.4"
          ],
        • "validation_data": {
          • "not_on_server": [
            • "ea-apache24",
            • "ea-php74"
            ]
          },
        • "version": "1.2"
        }
      ],
    • "property1": [
      • {
        • "desc": "The currently installed packages on the server.",
        • "name": "No PHP",
        • "path": "default.json",
        • "pkgs": [
          • "ea-apache24",
          • "ea-php74"
          ],
        • "tags": [
          • "ea-apache24",
          • "ea-php74"
          ],
        • "validation_data": {
          • "not_on_server": [
            • "ea-apache24",
            • "ea-php74"
            ]
          },
        • "version": "1.2"
        }
      ],
    • "property2": [
      • {
        • "desc": "The currently installed packages on the server.",
        • "name": "No PHP",
        • "path": "default.json",
        • "pkgs": [
          • "ea-apache24",
          • "ea-php74"
          ],
        • "tags": [
          • "ea-apache24",
          • "ea-php74"
          ],
        • "validation_data": {
          • "not_on_server": [
            • "ea-apache24",
            • "ea-php74"
            ]
          },
        • "version": "1.2"
        }
      ]
    },
  • "metadata": {
    • "command": "ea4_list_profiles",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}