You can use this REST API call to restore a DLP backup file.
POST request URL
https://<epo_server_name:port>/rest/dlp/backup/restore?password=Admins@123
Where, epo_server_name:port is the server IP address and port number.
Request Parameters
Parameter name | Description | Required | Values |
|---|---|---|---|
Authorization | User credentials for ePO - On-prem. | Required |
Parameter name | Description | Required | Values |
|---|---|---|---|
body | Specified backup file of DLP Policy in the (multipart/form-data) format | Required | File |
password | Password used while creating the backup file | Required | String |
Sample POST request URL
https://172.27.108.53:8443/rest/dlp/backup/restore?password=Admins@123
body=dlpConfig.backup
Go to form data and pass the key as body and the value as backup file from the folder location.
Sample cURL command
curl --location --request POST 'https://172.27.108.53:8443/rest/dlp/backup/restore?password=Admins@123' -u '<user>:<password>'
--form 'body=@"/C:/dlpConfig.backup"'
Sample request parameters (multipart/form-data)
{
"password": "Admins@123"
}
The password must contain at least 10 characters, one uppercase letter, one lowercase letter, one number, and one symbol. For example, Admins@123
Response parameters
Returns the severity options set for the required incident type.
Sample response
Restored Successfully.
Status and error codes
List of HTTP status codes returned for the query.
Code | Description |
|---|---|
200 OK | Returns a message after successful restoration. |
404 Not Found | Incorrect ePO - On-prem URL. |
500 Internal Server Error | An error on the server side that failed the request. See the ePO - On-prem |