你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Server Security Alert Policies - List By Server
获取服务器的威胁检测策略。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/securityAlertPolicies?api-version=2021-11-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
resource
|
path | True |
string |
包含该资源的资源组名称。 可以从 Azure 资源管理器 API 或门户获取此值。 |
server
|
path | True |
string |
服务器的名称。 |
subscription
|
path | True |
string |
用于标识 Azure 订阅的订阅 ID。 |
api-version
|
query | True |
string |
要用于请求的 API 版本。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
已成功检索服务器威胁检测策略。 |
|
Other Status Codes |
错误响应:***
|
示例
List the server's threat detection policies
示例请求
示例响应
{
"value": [
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/securityalert-4799/providers/Microsoft.Sql/servers/securityalert-6440/securityAlertPolicies",
"name": "Default",
"type": "Microsoft.Sql/servers/securityAlertPolicies",
"systemData": {
"createdBy": "string",
"createdByType": "User",
"createdAt": "2020-04-03T04:41:33.937Z",
"lastModifiedBy": "string",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-04-03T04:41:33.937Z"
},
"properties": {
"state": "Enabled",
"creationTime": "2020-04-03T04:41:33.937Z",
"emailAccountAdmins": true,
"emailAddresses": [
"test@consoto.com;user@consoto.com"
],
"disabledAlerts": [
"Access_Anomaly"
],
"retentionDays": 0,
"storageEndpoint": "https://mystorage.blob.core.windows.net"
}
}
]
}
定义
名称 | 说明 |
---|---|
created |
创建资源的标识类型。 |
Logical |
服务器的安全警报策略列表。 |
Security |
指定策略的状态,无论是启用或禁用策略,还是尚未对特定数据库应用策略。 |
Server |
服务器安全警报策略。 |
system |
与资源的创建和上次修改相关的元数据。 |
createdByType
创建资源的标识类型。
名称 | 类型 | 说明 |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
LogicalServerSecurityAlertPolicyListResult
服务器的安全警报策略列表。
名称 | 类型 | 说明 |
---|---|---|
nextLink |
string |
用于检索下一页结果的链接。 |
value |
结果数组。 |
SecurityAlertsPolicyState
指定策略的状态,无论是启用或禁用策略,还是尚未对特定数据库应用策略。
名称 | 类型 | 说明 |
---|---|---|
Disabled |
string |
|
Enabled |
string |
ServerSecurityAlertPolicy
服务器安全警报策略。
名称 | 类型 | 说明 |
---|---|---|
id |
string |
资源 ID。 |
name |
string |
资源名称。 |
properties.creationTime |
string |
指定策略的 UTC 创建时间。 |
properties.disabledAlerts |
string[] |
指定禁用的警报数组。 允许的值为:Sql_Injection、Sql_Injection_Vulnerability、Access_Anomaly、Data_Exfiltration、Unsafe_Action、Brute_Force |
properties.emailAccountAdmins |
boolean |
指定将警报发送给帐户管理员。 |
properties.emailAddresses |
string[] |
指定警报要发送到的电子邮件地址数组。 |
properties.retentionDays |
integer |
指定要在威胁检测审核日志中保留的天数。 |
properties.state |
指定策略的状态,无论是启用或禁用策略,还是尚未对特定数据库应用策略。 |
|
properties.storageAccountAccessKey |
string |
指定威胁检测审核存储帐户的标识符密钥。 |
properties.storageEndpoint |
string |
指定 blob 存储终结点 (例如 https://MyAccount.blob.core.windows.net) 。 此 Blob 存储将保存所有威胁检测审核日志。 |
systemData |
SecurityAlertPolicyResource 的 SystemData。 |
|
type |
string |
资源类型。 |
systemData
与资源的创建和上次修改相关的元数据。
名称 | 类型 | 说明 |
---|---|---|
createdAt |
string |
资源创建时间戳 (UTC) 。 |
createdBy |
string |
创建资源的标识。 |
createdByType |
创建资源的标识类型。 |
|
lastModifiedAt |
string |
资源上次修改的时间戳 (UTC) |
lastModifiedBy |
string |
上次修改资源的标识。 |
lastModifiedByType |
上次修改资源的标识类型。 |