Język

ServerAdvancedThreatProtectionCollection.GetAll(CancellationToken) Method

Definition

Get a list of the server's Advanced Threat Protection states.

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

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to