MockableSqlResourceGroupResource.GetResourceGroupLongTermRetentionBackup 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 long term retention backup.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}
- Operation Id: LongTermRetentionBackups_GetByResourceGroup
- Default Api Version: 2023-05-01-preview
- Resource: ResourceGroupLongTermRetentionBackupResource
public virtual Azure.Response<Azure.ResourceManager.Sql.ResourceGroupLongTermRetentionBackupResource> GetResourceGroupLongTermRetentionBackup (Azure.Core.AzureLocation locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, string backupName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetResourceGroupLongTermRetentionBackup : Azure.Core.AzureLocation * string * string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Sql.ResourceGroupLongTermRetentionBackupResource>
override this.GetResourceGroupLongTermRetentionBackup : Azure.Core.AzureLocation * string * string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Sql.ResourceGroupLongTermRetentionBackupResource>
Public Overridable Function GetResourceGroupLongTermRetentionBackup (locationName As AzureLocation, longTermRetentionServerName As String, longTermRetentionDatabaseName As String, backupName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ResourceGroupLongTermRetentionBackupResource)
Parameters
- locationName
- AzureLocation
The location of the database.
- longTermRetentionServerName
- String
The name of the server.
- longTermRetentionDatabaseName
- String
The name of the database.
- backupName
- String
The backup name.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
longTermRetentionServerName
, longTermRetentionDatabaseName
or backupName
is null.
longTermRetentionServerName
, longTermRetentionDatabaseName
or backupName
is an empty string, and was expected to be non-empty.
Applies to
Azure SDK for .NET