Share via


SecurityInsightsIncidentResource.GetAlertsAsync(CancellationToken) Method

Definition

Gets all incident alerts.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents/{incidentId}/alerts
  • Operation Id: Incidents_ListAlerts
  • Default Api Version: 2024-01-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

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

Applies to