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.
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ ea4_list_profiles
{- "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
}
}