AdvancedThreatProtectionCollection.GetIfExistsAsync Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/advancedThreatProtectionSettings/{advancedThreatProtectionName}
  • Operation Id: AdvancedThreatProtectionSettings_Get
  • Default Api Version: 2023-12-30
  • Resource: AdvancedThreatProtectionResource
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.MySql.FlexibleServers.AdvancedThreatProtectionResource>> GetIfExistsAsync (Azure.ResourceManager.MySql.FlexibleServers.Models.AdvancedThreatProtectionName advancedThreatProtectionName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : Azure.ResourceManager.MySql.FlexibleServers.Models.AdvancedThreatProtectionName * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.MySql.FlexibleServers.AdvancedThreatProtectionResource>>
override this.GetIfExistsAsync : Azure.ResourceManager.MySql.FlexibleServers.Models.AdvancedThreatProtectionName * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.MySql.FlexibleServers.AdvancedThreatProtectionResource>>
Public Overridable Function GetIfExistsAsync (advancedThreatProtectionName As AdvancedThreatProtectionName, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of AdvancedThreatProtectionResource))

Parameters

advancedThreatProtectionName
AdvancedThreatProtectionName

The name of the Advanced Threat Protection state.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to