createReconfigureClientTask
This method creates a new Reconfigure Agent task. With this task you can choose which modules to install on target agents.
Warning
The networkMonitor module is deprecated. It is recommended to use networkAttackDefense instead.
Services
This method requires you to place the {service} name in the API URL. The allowed services are:
computers, for "Computers and Virtual Machines"virtualmachines, for "Virtual Machines"
For example, the request URL for the virtual machines service is:
https://YOUR-HOSTNAME/api/v1.1/jsonrpc/network/virtualmachines
Parameters
Parameter | Type | Optional | Description |
|---|---|---|---|
| Array | No | The endpoint or container IDs, for which you want to reconfigure the agents. |
| Object | Yes | The task scheduler settings. The object contains the following fields:
If this parameter is omitted, the task runs immediately. |
| Object | Yes | The modules to be enabled or disabled. The object contains the following fields:
Each field may have the value 1 for enabled, or 0 for disabled. If the module is omitted, it is considered disabled. |
| Object | Yes | The settings for the scanning engines. The object contains the following fields:
The objects
If |
| Object | Yes | The roles to be enabled or disabled on the agent:
|
| Number | Yes | This parameter determines the operation mode of the security agent. Possible values:
For additional information, refer to Parameter info. |
Parameter info
Bitdefender EDR users can only run tasks that reconfigure target security agents to operate in EDR (Report only) mode; specifying
productTypeis optional.GravityZone BS / ABS / Elite and Enterprise users can only run tasks that reconfigure target security agents to operate in Detection and prevention mode; specifying
productTypeis optional.GravityZone Ultra users can reconfigure target security agents to operate in both operation modes.
productTypemust be specified for EDR (Report only) mode reconfiguration.In case of selecting endpoints running different operation modes, if
productTypeis not specified, the EDR (Report only) endpoints will be reconfigured to run in Detection and prevention mode.
The EDR (Report only) mode includes by default a set of predefined parameters that will overwrite user-specified options. Predefined parameters:
modulesedrSensor - truecontentControl - truenetworkAttackDefense - trueadvancedThreatControl - trueother modules - false
scanMode - n/aroles.exchange - false
Return value
This method returns a Boolean which is True if the reconfigure task was created successfully for at least one target ID.
Example
Request:
{
"params": {
"targetIds": [
"5d7244b10ea1de153817c072"
],
"scheduler": {
"type": 1
},
"modules": {
"advancedThreatControl": 1,
"firewall": 1,
"contentControl": 1,
"deviceControl": 1,
"powerUser": 1,
"encryption": 1,
"advancedAntiExploit": 1,
"containerProtection": 1,
"edrSensor": 1,
"patchManagement": 1,
"applicationControl": 1,
"networkAttackDefense": 1
},
"scanMode": {
"type": 1
},
"roles": {
"relay": 0,
"exchange": 0
},
"productType": 0
},
"jsonrpc": "2.0",
"method": "createReconfigureClientTask",
"id": "787b5e36-89a8-4353-88b9-6b7a32e9c87f"
} Response:
{
"id": "787b5e36-89a8-4353-88b9-6b7a32e9c87f",
"jsonrpc":"2.0",
"result": true
}