> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Incidents

Gets all incidents.

<Note>
  External Documentation

  To learn more, visit the [Microsoft Sentinel documentation](https://learn.microsoft.com/en-us/rest/api/securityinsights/incidents/list?view=rest-securityinsights-2023-02-01\&tabs=HTTP).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter           | Description                                                   |
  | ------------------- | ------------------------------------------------------------- |
  | Resource Group Name | The name of the resource group. The name is case insensitive. |
  | Return All Pages    | Automatically fetch all resources, page by page.              |
  | Subscription ID     | The ID of the target subscription.                            |
  | Workspace Name      | The name of the workspace.                                    |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter  | Description                                                                                                                          |
  | ---------- | ------------------------------------------------------------------------------------------------------------------------------------ |
  | Filter     | Filters the results, based on a Boolean condition.                                                                                   |
  | Order By   | Sorts the results.                                                                                                                   |
  | Skip Token | Specifies a starting point to show results from, this token is received in case that the previous request returned a partial result. |
  | Top        | Return Only the first `n` results.                                                                                                   |
</div>

## Example Output

```json theme={"dark"}
{
	"value": [
		{
			"id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/incidents/73e01a99-5cd7-4139-a149-9f2736ff2ab5",
			"name": "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
			"etag": "\"0300bf09-0000-0000-0000-5c37296e0000\"",
			"type": "Microsoft.SecurityInsights/incidents",
			"properties": {
				"title": "My incident",
				"description": "This is a demo incident",
				"severity": "High",
				"status": "Closed",
				"owner": {
					"objectId": "2046feea-040d-4a46-9e2b-91c2941bfa70",
					"email": "john.doe@contoso.com",
					"assignedTo": "john doe",
					"userPrincipalName": "john@contoso.com"
				},
				"labels": [],
				"firstActivityTimeUtc": "2019-01-01T13:00:30Z",
				"lastActivityTimeUtc": "2019-01-01T13:05:30Z",
				"lastModifiedTimeUtc": "2019-01-01T13:15:30Z",
				"createdTimeUtc": "2019-01-01T13:15:30Z",
				"incidentNumber": 3177,
				"additionalData": {
					"alertsCount": 0,
					"bookmarksCount": 0,
					"commentsCount": 3,
					"alertProductNames": [],
					"tactics": [
						"Persistence"
					]
				},
				"relatedAnalyticRuleIds": [
					"/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/alertRules/fab3d2d4-747f-46a7-8ef0-9c0be8112bf7",
					"/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/alertRules/8deb8303-e94d-46ff-96e0-5fd94b33df1a"
				],
				"incidentUrl": "https://portal.azure.com/#asset/Microsoft_Azure_Security_Insights/Incident/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/incidents/73e01a99-5cd7-4139-a149-9f2736ff2ab5",
				"providerName": "<string>",
				"providerIncidentId": "<string>",
				"classification": "FalsePositive",
				"classificationComment": "Not a malicious activity",
				"classificationReason": "IncorrectAlertLogic"
			}
		}
	],
	"nextLink": "<string>"
}
```

## Workflow Library Example

[List Incidents with Microsoft Sentinel and Send Results Via Email](https://library.blinkops.com/workflows/list-incidents-with-microsoft-sentinel-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/list-incidents-with-microsoft-sentinel-and-send-results-via-email/canvas" />
</div>
