Skip to main content

createRestoreQuarantineExchangeItemTask

This method creates a new task to restore items from the quarantine for Exchange Servers.

Services

This method requires you to place the {service} name in the API URL. The allowed services are:

  • exchange, for "Security for Exchange"

For example, the request URL for the exchange service is:

https://YOUR-HOSTNAME/api/v1.0/jsonrpc/quarantine/exchange

Parameters

Parameter

Type

Optional

Description

quarantineItemsIds

Array

No

The list of IDs for the quarantined items. You can restore maximum 100 items once.

username

String

No

The username of an Microsoft Exchange user. The username must include the domain name.

password

String

No

The password of an Exchange user

email

String

Yes

The email address of the Exchange user. This parameter is necessary when the email address is different from the username.

ewsUrl

String

Yes

The Exchange Web Services URL .The EWS URL is necessary when the Exchange Autodiscovery does not work.

Return value

This method returns a Boolean which is True when the task was successfully created

Example

Request:

  {
       "params": {
           "quarantineItemsIds": [
               "63896b87b7894d0f367b23c6",
               "65896b87b7894d0f367b23c6"
           ],
           "username": "user@domain",
           "password": "userPassword"
       },
       "jsonrpc": "2.0",
       "method": "createRestoreQuarantineExchangeItemTask",
       "id": "5399c9b5-0b46-45e4-81aa-889952433d86"
  }   

Response:

  {
      "id": "5399c9b5-0b46-45e4-81aa-889952433d86",
      "jsonrpc":"2.0",
      "result": True
  }