Share via


ServerThreatProtectionSettingsModelCollection.GetAllAsync Method

Definition

Get a list of server's Threat Protection state.

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

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to