Share via


SecurityCenterExtensions.GetResourceGroupSecurityAlerts Method

Definition

Gets a collection of ResourceGroupSecurityAlertResources in the ResourceGroupResource. MockingTo mock this method, please mock GetResourceGroupSecurityAlerts(AzureLocation) instead.

public static Azure.ResourceManager.SecurityCenter.ResourceGroupSecurityAlertCollection GetResourceGroupSecurityAlerts (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.Core.AzureLocation ascLocation);
static member GetResourceGroupSecurityAlerts : Azure.ResourceManager.Resources.ResourceGroupResource * Azure.Core.AzureLocation -> Azure.ResourceManager.SecurityCenter.ResourceGroupSecurityAlertCollection
<Extension()>
Public Function GetResourceGroupSecurityAlerts (resourceGroupResource As ResourceGroupResource, ascLocation As AzureLocation) As ResourceGroupSecurityAlertCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

ascLocation
AzureLocation

The location where ASC stores the data of the subscription. can be retrieved from Get locations.

Returns

An object representing collection of ResourceGroupSecurityAlertResources and their operations over a ResourceGroupSecurityAlertResource.

Exceptions

resourceGroupResource is null.

Applies to