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/
The remote server's hostname or IP address.
A valid hostname.
A valid hostname.
The SSH key's name.
Notes:
- To generate a private SSH key, use the UAPI
SSL::generate_keyfunction. - To import an existing SSH key, use the cPanel API 2
SSH::importkeyfunction.
The SSH key's password.
The directory on the remote server that will store the backup.
Note:
This parameter defaults to the remote server account's default login directory.
The email address to receive a confirmation email when the backup completes.
Note:
The system does not provide confirmation if you do not pass this parameter.
How to manage the home directory in the backup.
include— Include the home directory in the backup.skip— Omit the home directory from the backup.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/Backup/fullbackup_to_scp_with_key
- A server running cPanel.
https://cpanel-server.tld:2083/execute/Backup/fullbackup_to_scp_with_key
- 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/Backup/fullbackup_to_scp_with_key?host=example.com&key_name=examplesshkey&key_passphrase=123456luggage&directory=%2Fuser&email=username%40example.com&homedir=include&port=22'{ "apiversion": 3, "func": "fullbackup_to_scp_with_key", "module": "Backup", "result": { "data": { … }, "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null } }
The remote server's hostname or IP address.
A valid ipv4 address.
A valid ipv4 address.
The directory on the remote server that will store the backup.
Note:
This parameter defaults to the remote server account's default login directory.
The email address to receive a confirmation email when the backup completes.
Note:
The system does not provide confirmation if you do not pass this parameter.
How to manage the home directory in the backup.
include— Include the home directory in the backup.skip— Omit the home directory from the backup.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/Backup/fullbackup_to_scp_with_password
- A server running cPanel.
https://cpanel-server.tld:2083/execute/Backup/fullbackup_to_scp_with_password
- 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/Backup/fullbackup_to_scp_with_password?host=example.com&password=luggage123456&username=username&directory=%2Fuser&email=username%40example.com&homedir=include&port=22'{ "apiversion": 3, "func": "fullbackup_to_scp_with_password", "module": "Backup", "result": { "data": { … }, "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null } }
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/Backup/list_backups
- A server running cPanel.
https://cpanel-server.tld:2083/execute/Backup/list_backups
- 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/Backup/list_backups{ "apiversion": 3, "func": "list_backups", "module": "Backup", "result": { "data": [ … ], "errors": null, "messages": null, "metadata": { … }, "status": 1, "warnings": null } }