SecurityInsightsIncidentResource.GetAlertsAsync(CancellationToken) Method

Definition

Gets all alerts for an incident.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents/{incidentId}/alerts.
  • Operation Id. : Incidents_ListAlerts.
  • Default Api Version. : 2025-07-01-preview.
  • Resource. : SecurityInsightsIncidentResource.
public virtual Azure.AsyncPageable<Azure.ResourceManager.SecurityInsights.Models.SecurityInsightsAlert> GetAlertsAsync(System.Threading.CancellationToken cancellationToken = default);
abstract member GetAlertsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.SecurityInsights.Models.SecurityInsightsAlert>
override this.GetAlertsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.SecurityInsights.Models.SecurityInsightsAlert>
Public Overridable Function GetAlertsAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of SecurityInsightsAlert)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of SecurityInsightsAlert that may take multiple service requests to iterate over.

Applies to