ServerThreatProtectionSettingsModelCollection.GetIfExists Method

Definition

Tries to get details for this resource from the service.

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

Parameters

threatProtectionName
ThreatProtectionName

Name of the advanced threat protection settings.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to