updatePackage
Use this method to update an installation package.
Warning
The atc
module is deprecated. It is recommended to use advancedThreatControl
instead.
Parameters
Parameter | Type | Optional | Description |
---|---|---|---|
| String | No | The ID of the package. |
| String | No | The name of the package. |
| String | Yes | The ID of the company. The default value is the ID of the company linked to the user who generated the API key. |
| String | Yes | The description of the package. If no value is passed, the description will be an empty string. |
| String | Yes | The language of the package in the LL_CC format, where LL is the language and CC is the country. The supported languages are: en_US, es_ES, de_DE, fr_FR, ro_RO, pl_PL, pt_BR, it_IT, ru_RU. If not specified, the default value is |
| Object | Yes | An object with the modules to be enabled/disabled. The keys can be:
The values can be 1 (enabled) or 0 (disabled). If the module is not sent, it will be considered disabled. For EDR (Report only), the modules parameter must have the default configuration: edrSensor, contentControl, networkAttackDefense and advancedThreatControl are set to 1 (enabled). All other modules are set to 0. For Detection and prevention, all modules have the default value 0. |
| Object | Yes | An object with the scan mode settings. Object description:
|
| Object | Yes | An object with other settings of the package. The values can be:
The value for
|
| Object | Yes | An object containing the roles to be enabled or disabled:
|
| Object | Yes | An object containing installation options:
|
| 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 create EDR (Report only) packages; specifying
productType
is optional.GravityZone BS / ABS / Elite users can only create Detection and prevention packages; specifying
productType
is optional.GravityZone Ultra / Ultra Plus users can create both EDR (Report only) and Detection and prevention packages;
productType
must be specified to create an EDR (Report only) package.The EDR (Report only) package includes by default a set of predefined parameters that will overwrite user-specified options. Predefined parameters:
modules
edrSensor - true
contentControl - true
networkAttackDefense - true
advancedThreatControl - true
other modules - false
scanMode - n/a
settings.removeCompetitors - false
settings.scanBeforeInstall - false
roles.exchange - false
The
integrityMonitoring
module is not available for product type EDR (Report only).
Return value
This method returns a Boolean which is True
if the package was successfully updated.
Example
Request:
{ "params": { "packageId": "652feab6b9684f3ba80685d5" "packageName": "a unique name", "companyId": "54a1a1d3b1a43d2b347b23c1", "description": "package description", "language": "en_EN", "modules": { "advancedThreatControl": 1, "firewall": 0, "userControl": 1, "antiphishing": 1, "trafficScan": 1, "deviceControl": 0, "powerUser": 1, "edrSensor": 1, "advancedAntiExploit": 1, "containerProtection": 1, "encryption": 0, "patchManagement": 0, "networkAttackDefense": 1, "integrityMonitoring": 1 }, "scanMode": { "type": 2, "computers": { "main": 1, "fallback": 2 }, "vms": { "main": 2 }, "ec2": { "main": 1, "fallback": 2 } }, "settings": { "uninstallPassword": "mys3cre3tP@assword", "removeCompetitors": 1, "customInstallationPath": "c:\\mypath\\bitdefender", "customGroupId": "5a4dff50b1a43ded0a7b23c8" }, "roles": { "relay": 0, "exchange":1 }, "deploymentOptions": { "type": 2, "relayId": "54a1a1s3b1a43e2b347s23c1", "useCommunicationProxy": true, "proxyServer": "10.12.13.14", "proxyPort": 123 }, "productType": 0 }, "jsonrpc": "2.0", "method": "updatePackage", "id": "426db9bb-e92a-4824-a21b-bba6b62d0a18" }
Response:
{ "id": "426db9bb-e92a-4824-a21b-bba6b62d0a18", "jsonrpc": "2.0", "result": true }