Malwarebytes Grid API
# Grid Introduction Using the following API, you can search endpoints, detections, software inventory, vulnerabilities, rid rules, os-patches, device control events and dns logs. This API allows to perform filtering, sorting, grouping and aggregating of data by specifying constraints based on the field type. Available constraints for searching based on value type | Value Type | Constraints | | --- |----| | Simple String | equals, not_equals, contains, not_contains | | String (with enum) | equals, not_equals | | String/UUID (entity reference) | equals, not_equals | | Version | equals, not_equals | | Number | gt, lt, gte, lte | | Timestamp | start, end | | IP | ip | | Boolean | equals, not_equals | Grid API also supports compound constraints that can be constructed with the keywords **allOf**, **anyOf**, **noneOf** Example of compound constraint: ```json { "constraints": [ { "allOf": [ { "field": "agent.host_name", "operator": "contains", "value": "a" }, { "field": "machine.is_deleted", "operator": "equals", "value": false }, { "anyOf": [ { "field": "agent.os_info.os_platform", "operator": "equals", "value": "Linux" }, { "field": "agent.os_info.os_platform", "operator": "equals", "value": "MacOS" } ] } ] } ] } ``` In this example all the records that contain **a** in the ***agent.host_name***, have ***machine.is_deleted*** set to false and whose ***os_platform*** is equal to **either** ***Linux*** or ***MacOS*** will be returned.