WHM API.
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/
https://{host}:{port}/json-api/
Request
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.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/ea4_list_profiles
- A server running WHM.
https://whm-server.tld:2087/json-api/ea4_list_profiles
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/ea4_list_profiles{ "data": { "cpanel": [ … ], "custom": [ … ], "property1": [ … ], "property2": [ … ] }, "metadata": { "command": "ea4_list_profiles", "reason": "OK", "result": 1, "version": 1 } }
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/ea4_metainfo
- A server running WHM.
https://whm-server.tld:2087/json-api/ea4_metainfo
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/ea4_metainfo{ "data": { "additional_packages": [ … ], "default_php_handler": "cgi", "default_php_package": "ea-php72", "type": "object" }, "metadata": { "command": "ea4_metainfo", "reason": "OK", "result": 1, "version": 1 } }
Request
This function returns any recommendations attached to your installed EasyApache 4 packages. For more information about the recommendation system, read our EasyApache 4 Recommendations documentation.
Important:
When you disable the Web Server role, the system disables this function.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/ea4_recommendations
- A server running WHM.
https://whm-server.tld:2087/json-api/ea4_recommendations
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/ea4_recommendationsHTTP Request was successful.
{ "data": { "ea-php55-php": [ … ] }, "metadata": { "command": "ea4_recommendations", "reason": "OK", "result": 1, "version": 1 } }