ServerThreatProtectionSettingsModelCollection.GetAll Method

Definition

Lists state of advanced threat protection settings for a server.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/advancedThreatProtectionSettings.
  • Operation Id. : AdvancedThreatProtectionSettingsModels_ListByServer.
  • Default Api Version. : 2026-04-01-preview.
public virtual Azure.Pageable<Azure.ResourceManager.PostgreSql.FlexibleServers.ServerThreatProtectionSettingsModelResource> GetAll(System.Threading.CancellationToken cancellationToken = default);
abstract member GetAll : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.PostgreSql.FlexibleServers.ServerThreatProtectionSettingsModelResource>
override this.GetAll : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.PostgreSql.FlexibleServers.ServerThreatProtectionSettingsModelResource>
Public Overridable Function GetAll (Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ServerThreatProtectionSettingsModelResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to