共用方式為


ResourceGroupSecurityAlertCollection.GetAllAsync(CancellationToken) Method

Definition

List all the alerts that are associated with the resource group that are stored in a specific location

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

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to