Managed Server Security Alert Policies - List By Instance
取得受管理伺服器的威脅偵測原則。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/securityAlertPolicies?api-version=2025-01-01
URI 參數
| 名稱 | 位於 | 必要 | 類型 | Description |
|---|---|---|---|---|
|
managed
|
path | True |
string |
受控實例的名稱。 |
|
resource
|
path | True |
string minLength: 1maxLength: 90 |
資源群組的名稱。 名稱不區分大小寫。 |
|
subscription
|
path | True |
string (uuid) |
目標訂用帳戶的標識碼。 此值必須是 UUID。 |
|
api-version
|
query | True |
string minLength: 1 |
用於此作業的 API 版本。 |
回覆
| 名稱 | 類型 | Description |
|---|---|---|
| 200 OK |
Azure 運作順利完成。 |
|
| Other Status Codes |
未預期的錯誤回應。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow.
類型:
oauth2
Flow:
implicit
授權 URL:
https://login.microsoftonline.com/common/oauth2/authorize
範圍
| 名稱 | Description |
|---|---|
| user_impersonation | 模擬您的用戶帳戶 |
範例
Get the managed server's threat detection policies
範例要求
GET https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/securityalert-4799/providers/Microsoft.Sql/managedInstances/securityalert-6440/securityAlertPolicies?api-version=2025-01-01
範例回覆
{
"value": [
{
"name": "Default",
"type": "Microsoft.Sql/managedInstances/securityAlertPolicies",
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/securityalert-4799/providers/Microsoft.Sql/managedInstances/securityalert-6440",
"properties": {
"creationTime": "2020-04-03T04:41:33.937Z",
"disabledAlerts": [
"Access_Anomaly"
],
"emailAccountAdmins": true,
"emailAddresses": [
"test@consoto.com;user@consoto.com"
],
"retentionDays": 0,
"state": "Disabled",
"storageAccountAccessKey": "",
"storageEndpoint": ""
},
"systemData": {
"createdAt": "2020-04-03T04:41:33.937Z",
"createdBy": "string",
"createdByType": "User",
"lastModifiedAt": "2020-04-03T04:41:33.937Z",
"lastModifiedBy": "string",
"lastModifiedByType": "User"
}
}
]
}
定義
| 名稱 | Description |
|---|---|
|
created |
建立資源的身分識別類型。 |
|
Error |
資源管理錯誤附加資訊。 |
|
Error |
錯誤詳細資料。 |
|
Error |
錯誤回應 |
|
Managed |
受控伺服器安全性警示原則。 |
|
Managed |
ManagedServerSecurityAlertPolicy 清單操作的回應。 |
|
Security |
指定原則的狀態,無論是啟用或停用,還是尚未在特定資料庫上套用原則。 |
|
system |
與建立和上次修改資源相關的元數據。 |
createdByType
建立資源的身分識別類型。
| 值 | Description |
|---|---|
| User | |
| Application | |
| ManagedIdentity | |
| Key |
ErrorAdditionalInfo
資源管理錯誤附加資訊。
| 名稱 | 類型 | Description |
|---|---|---|
| info |
object |
附加資訊。 |
| type |
string |
其他資訊類型。 |
ErrorDetail
錯誤詳細資料。
| 名稱 | 類型 | Description |
|---|---|---|
| additionalInfo |
錯誤附加資訊。 |
|
| code |
string |
錯誤碼。 |
| details |
錯誤詳情 |
|
| message |
string |
錯誤訊息。 |
| target |
string |
錯誤目標。 |
ErrorResponse
錯誤回應
| 名稱 | 類型 | Description |
|---|---|---|
| error |
錯誤物件。 |
ManagedServerSecurityAlertPolicy
受控伺服器安全性警示原則。
| 名稱 | 類型 | Description |
|---|---|---|
| id |
string (arm-id) |
資源的完整資源標識碼。 例如,“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}” |
| name |
string |
資源的名稱 |
| properties.creationTime |
string (date-time) |
指定原則的 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 (int32) |
指定要保留在威脅偵測稽核記錄中的天數。 |
| properties.state |
指定原則的狀態,無論是啟用或停用,還是尚未在特定資料庫上套用原則。 |
|
| properties.storageAccountAccessKey |
string |
指定威脅偵測稽核記憶體帳戶的標識符金鑰。 |
| properties.storageEndpoint |
string |
指定 Blob 記憶體端點(例如 |
| systemData |
Azure Resource Manager 包含 createdBy 與 modifiedBy 資訊的元資料。 |
|
| type |
string |
資源的類型。 例如:「Microsoft。運算/虛擬機器」或「Microsoft」。儲存/儲存帳號」 |
ManagedServerSecurityAlertPolicyListResult
ManagedServerSecurityAlertPolicy 清單操作的回應。
| 名稱 | 類型 | Description |
|---|---|---|
| nextLink |
string (uri) |
專案下一頁的連結 |
| value |
本頁的 ManagedServerSecurityAlertPolicy 項目 |
SecurityAlertsPolicyState
指定原則的狀態,無論是啟用或停用,還是尚未在特定資料庫上套用原則。
| 值 | Description |
|---|---|
| Enabled |
已啟用 |
| Disabled |
Disabled |
systemData
與建立和上次修改資源相關的元數據。
| 名稱 | 類型 | Description |
|---|---|---|
| createdAt |
string (date-time) |
資源建立的時間戳(UTC)。 |
| createdBy |
string |
建立資源的身分識別。 |
| createdByType |
建立資源的身分識別類型。 |
|
| lastModifiedAt |
string (date-time) |
資源上次修改的時間戳記 (UTC) |
| lastModifiedBy |
string |
上次修改資源的身分識別。 |
| lastModifiedByType |
上次修改資源的身分識別類型。 |