LongTermRetentionPolicyCollection.GetAll(CancellationToken) Method

Definition

Gets a database's long term retention policy.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupLongTermRetentionPolicies
  • Operation Id: LongTermRetentionPolicies_ListByDatabase
  • Default Api Version: 2023-05-01-preview
  • Resource: LongTermRetentionPolicyResource
public virtual Azure.Pageable<Azure.ResourceManager.Sql.LongTermRetentionPolicyResource> GetAll (System.Threading.CancellationToken cancellationToken = default);
abstract member GetAll : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Sql.LongTermRetentionPolicyResource>
override this.GetAll : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Sql.LongTermRetentionPolicyResource>
Public Overridable Function GetAll (Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of LongTermRetentionPolicyResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of LongTermRetentionPolicyResource that may take multiple service requests to iterate over.

Applies to