Query Incidents in CSV Format example
Query Incidents in CSV Format
exampleExample HTTP request
Retrieve csv-formatted contents of five Network incidents as specified by a modified Network Incidents report.
Request method and path
POST /incidents/csv
Request body
{ "select": [ {"name": "incidentId"}, {"name": "networkSenderIdentifier"}, {"name": "messageSubject"}, {"name": "policyName"}, {"name": "matchCount"}, {"name": "messageDate"}, {"name": "hasAttachment"}, {"name": "incidentStatusName"}, {"name": "severityId"} ], "filter": { "booleanOperator": "AND", "filters": [ { "operandOne": {"name": "messageSource"}, "filterType": "string", "operator": "EQ", "operandTwoValues": ["NETWORK"] }, { "booleanOperator": "OR", "filters": [ { "operandOne": {"name": "messageTypeId"}, "filterType": "long", "operator": "NOT_IN", "operandTwoValues": [ 48, 49 ] }, { "operandOne": {"name": "messageTypeId"}, "filterType": "long", "operator": "IS_NULL" } ], "filterType": "booleanLogic" } ], "filterType": "booleanLogic" }, "orderBy": [{ "field": {"name": "messageDate"}, "order": "DESC" }], "page": { "type": "offset", "pageNumber": 1, "pageSize": 5 } }
Example HTTP response
Response 200
hasAttachment,incidentStatusName,messageSubject,policyName,matchCount,messageDate,incidentId,severityId, networkSenderIdentifier Y,incident.status.New,Form_recognition_violations,Form_Recongition_Policy,1,2020-10-04T15:50:37,2147523091,1,Unknown N,incident.status.New,TCP:SSL,DI_Australia_Business_No_v14_Wide,1,2020-09-12T01:02:32.282,2147522711,1,10.7.223.253 N,incident.status.New,TCP:SSL,DI_Russian_Passport_Identification_No_v14_Wide,1,2020-09-12T01:02:32.282, 2147522710,1,10.7.223.253 N,incident.status.New,TCP:SSL,DI_Austrian_Social_Security_No_v14_Wide,1,2020-09-12T01:02:32.282,2147522709,1, 10.7.223.253 N,incident.status.New,TCP:SSL,DI_Japanese_Juki-Net_ID_No_v14_Wide,1,2020-09-12T01:02:32.282,2147522708,1,10.7.223.253