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 checks for an active WordPress® site backup.
Note:
You must install the WordPress Manager cPanel plugin to access this API function.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/WordPressBackup/is_running
- A server running cPanel.
https://cpanel-server.tld:2083/execute/WordPressBackup/is_running
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
uapi --output=jsonpretty \
--user=username \
WordPressBackup \
is_running \
site='example.com
example.com/wordpress'{ "apiversion": 3, "func": "is_running", "module": "WordPressBackup", "result": { "data": { … }, "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null } }
Request
This function starts a single WordPress® site backup.
Note:
You must install the WordPress Manager cPanel plugin to access this API function.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/WordPressBackup/start
- A server running cPanel.
https://cpanel-server.tld:2083/execute/WordPressBackup/start
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
uapi --output=jsonpretty \
--user=username \
WordPressBackup \
start \
site='example.com'{ "apiversion": 3, "func": "start", "module": "WordPressBackup", "result": { "data": { … }, "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null } }
Request
This function returns whether a WordPress® site backup restoration is in progress.
Note:
- You must install the WordPress Manager cPanel plugin to access this API function.
- The output of this function changes, depending on the state of the backup restoration.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/WordPressRestore/any_running
- A server running cPanel.
https://cpanel-server.tld:2083/execute/WordPressRestore/any_running
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
uapi --output=jsonpretty \
--user=username \
WordPressRestore \
any_running{ "data": { "any_running": 1, "sites": [ … ] }, "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null }