Share via


SqlExtensions.GetSubscriptionLongTermRetentionManagedInstanceBackups Method

Definition

Gets a collection of SubscriptionLongTermRetentionManagedInstanceBackupResources in the SubscriptionResource. <item>MockingTo mock this method, please mock GetSubscriptionLongTermRetentionManagedInstanceBackups(AzureLocation, String, String) instead.</item>

public static Azure.ResourceManager.Sql.SubscriptionLongTermRetentionManagedInstanceBackupCollection GetSubscriptionLongTermRetentionManagedInstanceBackups(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation locationName, string managedInstanceName, string databaseName);
static member GetSubscriptionLongTermRetentionManagedInstanceBackups : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * string * string -> Azure.ResourceManager.Sql.SubscriptionLongTermRetentionManagedInstanceBackupCollection
<Extension()>
Public Function GetSubscriptionLongTermRetentionManagedInstanceBackups (subscriptionResource As SubscriptionResource, locationName As AzureLocation, managedInstanceName As String, databaseName As String) As SubscriptionLongTermRetentionManagedInstanceBackupCollection

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

locationName
AzureLocation

The ___location of the database.

managedInstanceName
String

The name of the managed instance.

databaseName
String

The name of the managed database.

Returns

An object representing collection of SubscriptionLongTermRetentionManagedInstanceBackupResources and their operations over a SubscriptionLongTermRetentionManagedInstanceBackupResource.

Exceptions

subscriptionResource, managedInstanceName or databaseName is null.

managedInstanceName or databaseName is an empty string, and was expected to be non-empty.

Applies to