Share via


ManagedDatabaseAdvancedThreatProtectionCollection.GetAllAsync Method

Definition

Gets a list of managed database's Advanced Threat Protection states.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/advancedThreatProtectionSettings
  • Operation Id: ManagedDatabaseAdvancedThreatProtectionSettings_ListByDatabase
  • Default Api Version: 2022-02-01-preview
  • Resource: ManagedDatabaseAdvancedThreatProtectionResource
public virtual Azure.AsyncPageable<Azure.ResourceManager.Sql.ManagedDatabaseAdvancedThreatProtectionResource> GetAllAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Sql.ManagedDatabaseAdvancedThreatProtectionResource>
override this.GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Sql.ManagedDatabaseAdvancedThreatProtectionResource>
Public Overridable Function GetAllAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ManagedDatabaseAdvancedThreatProtectionResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of ManagedDatabaseAdvancedThreatProtectionResource that may take multiple service requests to iterate over.

Applies to