This URL gets the list of blocked hashes.
Resource URL
GET / advancedmalware/blockedhashes?search=<search_string>
Request Parameters
URL Parameters:
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| Search string | String | No |
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Field Name | Description | Data Type |
|---|---|---|
| List of blocked hashes | Array |
Details of blockedHashList:
Field Name | Description | Data Type |
|---|---|---|
| File hash | String |
| File name | String |
| Last updated details. Contains the username and the time under which the file hash was added. | String |
| Comment | String |
Example
Request
GET https://<NSM_IP>/sdkapi advancedmalware/blockedhashes
Response
{
"blockedHashList": [
{
"fileHash":"1aaaaaaaaaaaaaaaaaaaaaaaaaaaaa16", "fileName":"file1",
“lastUpdated”: “2018-01-17 20:30:34.0 (Administrator)”
"comment":"Blocked based on user request "},
{
"fileHash":"1aaaaaaaaaaaaaaaaaaaaaaaaaaaaa18", "fileName":"file2",
“lastUpdated”: “2018-01-17 20:35:36.0 (Administrator)”
"comment":"Blocked based on user request "},
]}
}Error Information
Following error codes are returned by this URL:
S.No | HTTP Error Code | SDK API errorId | SDK API errorMessage |
|---|---|---|---|
1 | 400 | 4904 | Failed to retrieve data |