Compartilhar via


ManagedServerSecurityAlertPolicyCollection.GetIfExistsAsync Método

Definição

Tenta obter detalhes para esse recurso do serviço.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/securityAlertPolicies/{securityAlertPolicyName}
  • Operação IdManagedServerSecurityAlertPolicies_Get
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Sql.ManagedServerSecurityAlertPolicyResource>> GetIfExistsAsync (Azure.ResourceManager.Sql.Models.SqlSecurityAlertPolicyName securityAlertPolicyName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : Azure.ResourceManager.Sql.Models.SqlSecurityAlertPolicyName * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Sql.ManagedServerSecurityAlertPolicyResource>>
override this.GetIfExistsAsync : Azure.ResourceManager.Sql.Models.SqlSecurityAlertPolicyName * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Sql.ManagedServerSecurityAlertPolicyResource>>
Public Overridable Function GetIfExistsAsync (securityAlertPolicyName As SqlSecurityAlertPolicyName, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of ManagedServerSecurityAlertPolicyResource))

Parâmetros

securityAlertPolicyName
SqlSecurityAlertPolicyName

O nome da política de alerta de segurança.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Aplica-se a