RecoveryServicesSiteRecoveryExtensions.GetSiteRecoveryAlerts Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a collection of SiteRecoveryAlertResources in the ResourceGroupResource. MockingTo mock this method, please mock GetSiteRecoveryAlerts(String) instead.
public static Azure.ResourceManager.RecoveryServicesSiteRecovery.SiteRecoveryAlertCollection GetSiteRecoveryAlerts (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string resourceName);
static member GetSiteRecoveryAlerts : Azure.ResourceManager.Resources.ResourceGroupResource * string -> Azure.ResourceManager.RecoveryServicesSiteRecovery.SiteRecoveryAlertCollection
<Extension()>
Public Function GetSiteRecoveryAlerts (resourceGroupResource As ResourceGroupResource, resourceName As String) As SiteRecoveryAlertCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
- resourceName
- String
The name of the recovery services vault.
Returns
An object representing collection of SiteRecoveryAlertResources and their operations over a SiteRecoveryAlertResource.
Exceptions
resourceGroupResource
or resourceName
is null.
resourceName
is an empty string, and was expected to be non-empty.
Applies to
Azure SDK for .NET