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 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 }
Request
This function cleans up any temporary system resources after a WordPress® site backup restoration.
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/WordPressRestore/cleanup
- A server running cPanel.
https://cpanel-server.tld:2083/execute/WordPressRestore/cleanup
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
uapi --output=jsonpretty \
--user=username \
WordPressRestore \
cleanup \
site='example.com'{ "apiversion": 3, "func": "cleanup", "module": "WordPressRestore", "result": { "data": 1, "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null } }
Request
This function starts a single WordPress® site backup restoration.
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/WordPressRestore/start
- A server running cPanel.
https://cpanel-server.tld:2083/execute/WordPressRestore/start
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
uapi --output=jsonpretty \
--user=username \
WordPressRestore \
start \
site='example.com' \
backup_path='/home/example/wordpress-backups/example.com__2018-11-13T11:11:31-0600.tar.gz'{ "apiversion": 3, "func": "start", "module": "WordPressRestore", "result": { "data": { … }, "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null } }