你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

SqlDatabaseSecurityAlertPolicyCollection.GetIfExists Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/securityAlertPolicies/{securityAlertPolicyName}
  • Operation Id: DatabaseSecurityAlertPolicies_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlDatabaseSecurityAlertPolicyResource
public virtual Azure.NullableResponse<Azure.ResourceManager.Sql.SqlDatabaseSecurityAlertPolicyResource> GetIfExists (Azure.ResourceManager.Sql.Models.SqlSecurityAlertPolicyName securityAlertPolicyName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : Azure.ResourceManager.Sql.Models.SqlSecurityAlertPolicyName * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Sql.SqlDatabaseSecurityAlertPolicyResource>
override this.GetIfExists : Azure.ResourceManager.Sql.Models.SqlSecurityAlertPolicyName * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Sql.SqlDatabaseSecurityAlertPolicyResource>
Public Overridable Function GetIfExists (securityAlertPolicyName As SqlSecurityAlertPolicyName, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of SqlDatabaseSecurityAlertPolicyResource)

Parameters

securityAlertPolicyName
SqlSecurityAlertPolicyName

The name of the security alert policy.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to