getBlocklistItems
This method lists all items present in a Blocklist.
Important
This method has been updated to version 1.2. For information applicable to version 1.0, refer to this section.
Version 1.0 returns only hash-type blocklist rules.
Parameters
Parameter | Description | Included in request | Type | Values |
|---|---|---|---|---|
| The ID of the company to which the Blocklist item belongs. | Optional | String | Must be the valid ID of a managed company. Default value: the company the API key used to make the request belongs to. |
| The number of the results page currently displayed. | Optional | Integer | Default value: |
| The number of items displayed on a page. | Optional | Integer | Possible values: Default value: |
These are common parameters, available across all public API methods:
Parameter | Description | Included in request | Type | Value requirements |
|---|---|---|---|---|
| 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 | The only possible value is |
| An object containing the configuration of the request. | Mandatory | Object | No additional requirements. |
Return value
This method returns a result Object containing information regarding existing blocklist rules. The returned object contains:
Attribute | Type | Description |
|---|---|---|
| Integer | The total number of rules returned by the request. |
| Integer | The number of the page currently being displayed. |
| Integer | The number of results being displayed per page. |
| Integer | The total number of pages that the request returned. |
| Array of objects | The list of existing rules associated with the target company. Refer to |
Objects
items
Attribute | Type | Description |
|---|---|---|
| String | The ID of the item. You can use this ID to remove the item from the Blocklist. Refer to removeFromBlocklist. |
| String | The type of the rule included in the list. Possible values:
|
| Object | Provides information on how the item was added to the list. For detailed information on the parameters included in this object, refer to |
| Object | Provides information on the company that the item belongs to. For detailed information on the parameters included in this object, refer to |
| Object | Provides information on the GravityZone user that created the rule. For detailed information on the parameters included in this object, refer to |
| String, timestamp | The date and time when this item was added to the blocklist. |
| Object | Contains information regarding the rule. For detailed information on the settings included in this object, refer to |
source
Attribute | Type | Description |
|---|---|---|
| String | Indicates the type of the source from which the entry originated. Possible values:
|
| String | The description given to this item when added to the list. |
company
Attribute | Type | Description |
|---|---|---|
| String | The ID of the company. |
| String | The name of the company the item belongs to. |
owner
Attribute | Type | Description |
|---|---|---|
| String | The ID of the GravityZone user. |
| String | The email address of the user. |
details
The attributes contained in the details object vary depending on the rule type.
Attribute | Type | Description |
|---|---|---|
| ||
| String | The algorithm used to obtain the hash. Possible values:
|
| String | The hash associated with the file that needs to be blocked. |
| Object | Details about the file corresponding to the hash. Refer to |
| ||
| String | All applications that are launched from the specified path are blocked. |
| ||
| String | The name under which the rule is listed in the rules table. |
| String | If included, the rule applies only when an application is opened by using the command line interface with the specified command. |
| String | The rule applies only if a specific IP protocol is used by the connection. Possible values:
|
| String | The rule applies only to connections of a specific direction. Possible values:
|
| String | The rule applies only to connections to or from a specific IP type. Possible values:
|
| Object | If included, the rule applies only to connections to or from specific local network addresses. Refer to |
| Object | If included, the rule applies only to connections to or from specific remote addresses. Refer to |
| Object | If enabled, the rule applies only to connections to or from specific macOS addresses. Refer to |
| Array of strings | The rule applies only to connections to or from endpoints using the specified operating systems. Possible values for each element of the array:
|
| String | Determines which application the rule applies to. |
| String | The MD5 of the application. |
| String | An internal ID of the rule. |
file
Attribute | Type | Description |
|---|---|---|
| String | The name of the file corresponding to the hash. |
localAddress
Attribute | Type | Description |
|---|---|---|
| Boolean | If If |
| String | If The value can be in an IP or an IP/Mask format. |
| String | If a range is used, only connections made through ports between these two values are blocked. If specific ports are used, only connections made through these ports are blocked. |
remoteAddress
Attribute | Type | Description |
|---|---|---|
| Boolean | If If |
| String | If The value can be in an IP or IP/Mask format. |
| String | If a range is used, only connections made through ports between these two values are blocked. If specific ports are used, only connections made through these ports are blocked. |
directlyConnected
Attribute | Type | Description |
|---|---|---|
| Boolean | Indicates if this option is enabled. |
| String | Only connections from the specified macOS addresses are allowed. |
Example
Request
{
"params": {
"companyId": "69e74165500917a5160750d4",
"page": 1,
"perPage": 100
},
"jsonrpc": "2.0",
"method": "getBlocklistItems",
"id": "5087eab8-b74f-4a3e-85b3-4271e85890d5"
} Response
{
"id": "5087eab8-b74f-4a3e-85b3-4271e85890d5",
"jsonrpc": "2.0",
"result": {
"total": 3,
"page": 1,
"perPage": 100,
"pagesCount": 1,
"items": [
{
"type": "hash",
"source": {
"type": "manual",
"description": null
},
"company": {
"id": "69e74165500917a5160750d4",
"name": "Bitdefender"
},
"owner": {
"id": "69e74168500917a5160750df",
"userName": "user@bitdefender.com"
},
"created": "2026-08-04T16:09:52",
"id": "6a71e4a08f260ee6ff019ca4",
"details": {
"algorithm": "sha256",
"hash": "1e0905327f443c54aa617e2ff323067c985428e5566886f2aa8296cddfe6ddf9",
"file": {
"name": null
}
}
},
{
"type": "path",
"source": {
"type": "manual",
"description": "test"
},
"company": {
"id": "69e74165500917a5160750d4",
"name": "Bitdefender"
},
"owner": {
"id": "69e74168500917a5160750df",
"userName": "user@bitdefender.com"
},
"created": "2026-08-04T16:09:52",
"id": "6a71e4a0049f483681066b72",
"details": {
"path": "C:\\aaa.exe"
}
},
{
"type": "connection",
"source": {
"type": "manual",
"description": "test"
},
"company": {
"id": "69e74165500917a5160750d4",
"name": "Bitdefender"
},
"owner": {
"id": "69e74168500917a5160750df",
"userName": "user@bitdefender.com"
},
"created": "2026-08-04T16:09:52",
"id": "6a71e4a0286266ec5b0a0df2",
"details": {
"remoteAddress": {
"any": true,
"ipMask": null,
"portRange": "300-400"
},
"localAddress": {
"any": false,
"ipMask": "10.10.10.10/32",
"portRange": "300-400"
},
"directlyConnected": {
"enable": true,
"remoteMac": "AA:AA:AA:AA:AA:AA;CC:CC:CC:CC:CC:CC;BB:BB:BB:BB:BB:BB"
},
"protocol": "any",
"path": null,
"hash": null,
"commandLine": null,
"ipVersion": "any",
"direction": "both",
"ruleName": "rule 1#",
"ruleId": "fabd7c56-0f68-4042-aff8-5698baa5b286",
"operatingSystems": [
"windows"
]
}
}
]
}
} Parameters
Parameter | Type | Included in request | Description |
|---|---|---|---|
| String | Optional | When set, the method lists only the hash-type items in the Blocklist for the managed company with the provided ID. |
| Integer | Optional | The results page number. The default value is |
| Integer | Optional | The number of items displayed on a page. The upper limit is Default value: |
These are common parameters, available across all public API methods:
Parameter | Description | Included in request | Type | Value requirements |
|---|---|---|---|---|
| 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 | The only possible value is |
| An object containing the configuration of the request. | Mandatory | Object | No additional requirements. |
Return value
This method returns a result Object containing information regarding existing hash-type blocklist rules. The returned object contains:
Attribute | Type | Description |
|---|---|---|
| Integer | The total number of rules returned by the request. |
| Integer | The number of the page currently being displayed. |
| Integer | The number of results being displayed per page. |
| Integer | The total number of pages that the request returned. |
| Array of objects | The list of existing hash-type rules associated with the target company. Refer to |
Objects
items
Attribute | Type | Description |
|---|---|---|
| String | The ID of the company that the Blocklist item belongs to. |
| String | The hash associated with the file that needs to be blocked. |
| Integer | The algorithm used to obtain the hash. Possible values:
|
| String | The name of file corresponding to the hash. This field is only displayed if this information exists. |
| String | The ID of the hash item in the Blocklist. You can use this ID to remove the item from the Blocklist. Refer to removeFromBlocklist. |
| Integer | The source from where the hash entry hash originated. Possible values:
|
| String | The description of the item, as the user provided when adding the item to the Blocklist. |
Example
Request:
{
"params": {
"companyId" : "5b680f6fb1a43d860a7b23c8"
},
"jsonrpc": "2.0",
"method": "getBlocklistItems",
"id": "0df7568c-59c1-48e0-a31b-18d83e6d9810"
} Response:
{
"id": "0df7568c-59c1-48e0-a31b-18d83e6d9810",
"jsonrpc": "2.0",
"result": {
"items": [
{
"companyId": "5b680f6fb1a43d860a7b23c8",
"hash": "098f6bcd4621d373cade4e832627b4f6",
"hashType": 2,
"id": "5b7ac19bb1a43dfb107b23c6",
"source": 3,
"sourceInfo": "Added from public API"
},
{
"companyId": "5b680f6fb1a43d860a7b23c8",
"filename": "file.txt",
"hash": "f696282aa4cd4f614aa995190cf442fe",
"hashType": 2,
"id": "5b7ac19bb1a43dfb107b23c7",
"source": 1,
"sourceInfo": "Added from incident 1"
}
],
"page": 1,
"pagesCount": 1,
"perPage": 30,
"total": 2
}
}