UAPI accesses the cPanel interface's features. Use this API to access and modify cPanel account data and settings.
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/
https://{host}:{port}/execute/
Request
This function retrieves the cPanel account's quota for the server where you run the function. For example, a distributed cPanel account could approach its quota. The servers will balance that cPanel user's quota between the parent and the child node.
Note:
This function runs on only the local server. To retrieve the cPanel account's total quota, use the UAPI Quota::get_quota function instead.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/Quota/get_local_quota_info
- A server running cPanel.
https://cpanel-server.tld:2083/execute/Quota/get_local_quota_info
- 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/cpanel.openapi/Quota/get_local_quota_info{ "apiversion": 3, "func": "get_local_quota_info", "module": "Quota", "result": { "data": { … }, "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null } }
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/Quota/get_quota_info
- A server running cPanel.
https://cpanel-server.tld:2083/execute/Quota/get_quota_info
- 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/cpanel.openapi/Quota/get_quota_info{ "apiversion": 3, "func": "get_quota_info", "module": "Quota", "result": { "data": { … }, "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null } }