Share via


MockableSecurityCenterResourceGroupResource.GetAlertsByResourceGroupAsync Method

Definition

List all the alerts that are associated with the resource group

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/alerts
  • Operation Id: Alerts_ListByResourceGroup
  • Default Api Version: 2022-01-01
public virtual Azure.AsyncPageable<Azure.ResourceManager.SecurityCenter.SecurityAlertData> GetAlertsByResourceGroupAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetAlertsByResourceGroupAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.SecurityCenter.SecurityAlertData>
override this.GetAlertsByResourceGroupAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.SecurityCenter.SecurityAlertData>
Public Overridable Function GetAlertsByResourceGroupAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of SecurityAlertData)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to