getCustomRulesList
This method retrieves the list of custom rules for a specified company.
Parameters
Parameter | Description | Included in request | Type | Values |
|---|---|---|---|---|
| The ID of the company for which to retrieve the list of custom rules. | Optional | String | Must be the valid ID of a company that you manage. Defaults to the ID of the company associated with the user making the API request. |
| Specifies the type of custom rules to retrieve. | Optional | Integer | Possible values:
Default value: |
These are common parameters, available across all public API methods.
Parameter | Description | Included in request | Type | Values |
|---|---|---|---|---|
| This parameter adds an identifier to the request, linking it to its corresponding response. The target replies with the same value in the response, allowing easy call tracking. | Mandatory | String | No additional requirements. |
| The name of the method you are using to send the request. | Mandatory | String | Must be a valid method name. |
| The version of JSON-RPC used by the request and the response. | Mandatory | String | Possible values:
|
| An object containing the configuration of the request. | Mandatory | Object | No additional requirements. |
Under the | ||||
| The results page number. | Optional | Integer | Default value: |
| The number of results displayed per page. | Optional | Integer | The upper limit is 1000 items per page. Default value: |
Return value
Attribute | Type | Description |
|---|---|---|
| Object | Includes the total number of custom rules, the current page, the total number of available pages, the number of items per page, and a detailed list of custom rules. Refer to |
Objects
result
Attribute | Type | Description |
|---|---|---|
| Integer | The total count of custom rules found. |
| Integer | The current page displayed. |
| Integer | The number of items per page. |
| Integer | The total number of available pages. |
| Array of Objects | The detailed list of custom rules. Each object contains the following settings:
|
settings
Attribute | Type | Description | Values |
|---|---|---|---|
| Integer | Indicates if the rule is active. | Possible values:
|
| Integer | Indicates the severity of the alerts determined by the rule. | Possible values:
|
| String | Indicates the type of the target entity. | Possible values for custom exclusion rules:
Possible values for custom detection rules:
|
| Array of Objects | Defines the rule by listing the exclusion or detection sub-rules that the specified ImportantThis parameter does not include exclusion definitions related to the | Each object contains the following settings:
NoteFor more information on the possible values of |
| Boolean | Indicates whether automatic actions are enabled for the custom rule. |
|
| Array of Objects | Contains the exclusion sub-rules related to the | Each object contains the following settings:
|
| Array of Objects | Indicates the automatic response actions and their enablement status for EDR incidents generated by this rule. | Each object contains the following settings:
|
targets
Attribute | Type | Description |
|---|---|---|
| Array of Objects | The companies to which the custom rule applies. Each object contains the following settings:
|
| String | The ID of the company to which the custom rule applies. |
Example
Request:
{
"id": "0df7568c-59c1-48e0-a31b-18d83e6d9810",
"jsonrpc": "2.0",
"method": "getCustomRulesList",
"params": {
"companyId": "697336d571ead2fb3b0af682",
"type": 1
}
} Response:
{
"id": "0df7568c-59c1-48e0-a31b-18d83e6d9810",
"jsonrpc": "2.0",
"result": {
"total": 2,
"page": 1,
"perPage": 30,
"pagesCount": 1,
"items": [
{
"id": "697350d9a38792d6380b67a2",
"name": "customer rule customer",
"owner": "dada@dada.com",
"description": "description",
"companyId": "697336d571ead2fb3b0af682",
"tags": [
"dddd"
],
"settings": {
"status": 1,
"target": "process",
"criteriaList": [
{
"field": "Process.CommandLine",
"relation": "is",
"value": [
"ddd"
]
}
],
"severity": 3,
"enableAutomaticActions": true,
"automaticActions": [
{
"type": 1,
"enabled": false
},
{
"type": 2,
"enabled": false
},
{
"type": 3,
"enabled": true
},
{
"type": 4,
"enabled": true,
"settings": {
"includeParent": false,
"includeChildren": false
}
},
{
"type": 5,
"enabled": true,
"settings": {
"type": 1
}
},
{
"type": 6,
"enabled": false,
"settings": {
"includeParentProcess": false,
"includeChildrenProcesses": false
}
},
{
"type": 7,
"enabled": false
}
]
},
"targets": {
"companyId": "697336d571ead2fb3b0af682"
}
},
{
"id": "69733ac915c88f4ec90a86a2",
"name": "detection rule customer",
"owner": "vagrant@bitdefender.com",
"description": "description",
"companyId": "69733509887b1b53750f5424",
"tags": [],
"settings": {
"status": 1,
"target": "process",
"criteriaList": [
{
"field": "Process.CommandLine",
"relation": "is",
"value": [
"comm"
]
}
],
"severity": 3,
"enableAutomaticActions": true,
"automaticActions": [
{
"type": 1,
"enabled": false
},
{
"type": 2,
"enabled": false
},
{
"type": 3,
"enabled": false
},
{
"type": 4,
"enabled": true,
"settings": {
"includeParent": false,
"includeChildren": false
}
},
{
"type": 5,
"enabled": true,
"settings": {
"type": 1
}
},
{
"type": 6,
"enabled": true,
"settings": {
"includeParentProcess": false,
"includeChildrenProcesses": false
}
},
{
"type": 7,
"enabled": false
}
]
},
"targets": {
"companies": [
{
"_id": "69733509887b1b53750f5424",
"name": "Bitdefender"
},
{
"_id": "697336d571ead2fb3b0af682",
"name": "comp1"
},
{
"_id": "69734c0c7d05800e210ea512",
"name": "comp2"
}
]
}
}
]
}
}