SqlExtensions.GetResourceGroupLongTermRetentionBackups Method

Definition

Gets a collection of ResourceGroupLongTermRetentionBackupResources in the ResourceGroupResource. MockingTo mock this method, please mock GetResourceGroupLongTermRetentionBackups(AzureLocation, String, String) instead.

public static Azure.ResourceManager.Sql.ResourceGroupLongTermRetentionBackupCollection GetResourceGroupLongTermRetentionBackups (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.Core.AzureLocation locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName);
static member GetResourceGroupLongTermRetentionBackups : Azure.ResourceManager.Resources.ResourceGroupResource * Azure.Core.AzureLocation * string * string -> Azure.ResourceManager.Sql.ResourceGroupLongTermRetentionBackupCollection
<Extension()>
Public Function GetResourceGroupLongTermRetentionBackups (resourceGroupResource As ResourceGroupResource, locationName As AzureLocation, longTermRetentionServerName As String, longTermRetentionDatabaseName As String) As ResourceGroupLongTermRetentionBackupCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

locationName
AzureLocation

The location of the database.

longTermRetentionServerName
String

The name of the server.

longTermRetentionDatabaseName
String

The name of the database.

Returns

An object representing collection of ResourceGroupLongTermRetentionBackupResources and their operations over a ResourceGroupLongTermRetentionBackupResource.

Exceptions

resourceGroupResource, longTermRetentionServerName or longTermRetentionDatabaseName is null.

longTermRetentionServerName or longTermRetentionDatabaseName is an empty string, and was expected to be non-empty.

Applies to