Microsoft.Security 警示SuppressionRules
Bicep 資源定義
alertsSuppressionRules 資源類型可以使用目標作業來部署:
- 訂 用帳戶 - 請參閱 訂用帳戶部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄。
資源格式
若要建立 Microsoft.Security/alertsSuppressionRules 資源,請將下列 Bicep 新增至您的範本。
resource symbolicname 'Microsoft.Security/alertsSuppressionRules@2019-01-01-preview' = {
name: 'string'
properties: {
alertType: 'string'
comment: 'string'
expirationDateUtc: 'string'
reason: 'string'
state: 'string'
suppressionAlertsScope: {
allOf: [
{
field: 'string'
{customized property}: any()
}
]
}
}
}
屬性值
alertsSuppressionRules
名稱 | 描述 | 值 |
---|---|---|
NAME | 資源名稱 | 字串 (必要) 字元限制:1-260 合法字元: 英數字元、底線和連字號。 |
properties | 描述 AlertsSuppressionRule 屬性 | AlertsSuppressionRuleProperties |
AlertsSuppressionRuleProperties
名稱 | 描述 | 值 |
---|---|---|
alertType | 要自動隱藏的警示類型。 針對所有警示類型,請使用 '*' | 字串 (必要) |
comment | 任何關於規則的批注 | 字串 |
expirationDateUtc | 規則的到期日,如果未提供值或提供為 Null,則完全不會到期 | 字串 |
reason | 關閉警示的原因 | 字串 (必要) |
狀態 | 規則的可能狀態 | 'Disabled' 'Enabled' 必要) 「已過期」 ( |
suppressionAlertsScope | 歸併條件 | SuppressionAlertsScope |
SuppressionAlertsScope
名稱 | 描述 | 值 |
---|---|---|
allOf | 內部的所有條件都必須為 true,才能隱藏警示 | ScopeElement[] (必要) |
ScopeElement
名稱 | 描述 | 值 |
---|---|---|
field | 要隱藏的警示實體類型。 | 字串 |
{自定義屬性} | 針對 Bicep,您可以使用 any () 函式。 |
ARM 範本資源定義
alertsSuppressionRules 資源類型可以使用目標作業來部署:
- 訂 用帳戶 - 請參閱 訂用帳戶部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄。
資源格式
若要建立 Microsoft.Security/alertsSuppressionRules 資源,請將下列 JSON 新增至您的範本。
{
"type": "Microsoft.Security/alertsSuppressionRules",
"apiVersion": "2019-01-01-preview",
"name": "string",
"properties": {
"alertType": "string",
"comment": "string",
"expirationDateUtc": "string",
"reason": "string",
"state": "string",
"suppressionAlertsScope": {
"allOf": [
{
"field": "string",
"{customized property}": {}
}
]
}
}
}
屬性值
alertsSuppressionRules
名稱 | 描述 | 值 |
---|---|---|
類型 | 資源類型 | 'Microsoft.Security/alertsSuppressionRules' |
apiVersion | 資源 API 版本 | '2019-01-01-preview' |
NAME | 資源名稱 | 字串 (必要) 字元限制:1-260 合法字元: 英數字元、底線和連字號。 |
properties | 描述 AlertsSuppressionRule 屬性 | AlertsSuppressionRuleProperties |
AlertsSuppressionRuleProperties
名稱 | 描述 | 值 |
---|---|---|
alertType | 要自動隱藏的警示類型。 針對所有警示類型,請使用 '*' | 需要字串 () |
comment | 關於規則的任何批注 | 字串 |
expirationDateUtc | 規則的到期日,如果未提供值或提供為 null,則完全不會到期 | 字串 |
reason | 關閉警示的原因 | 需要字串 () |
狀態 | 規則的可能狀態 | 'Disabled' 'Enabled' 必要) 'Expired' ( |
suppressionAlertsScope | 歸併條件 | SuppressionAlertsScope |
SuppressionAlertsScope
名稱 | 描述 | 值 |
---|---|---|
allOf | 內的所有條件都必須為 true,才能隱藏警示 | ScopeElement[] (必要) |
ScopeElement
名稱 | 描述 | 值 |
---|---|---|
field | 要隱藏的警示實體類型。 | 字串 |
{自定義屬性} |
Terraform (AzAPI 提供者) 資源定義
alertsSuppressionRules 資源類型可以使用目標作業進行部署:
- 訂用帳戶
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.Security/alertsSuppressionRules 資源,請將下列 Terraform 新增至範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Security/alertsSuppressionRules@2019-01-01-preview"
name = "string"
parent_id = "string"
body = jsonencode({
properties = {
alertType = "string"
comment = "string"
expirationDateUtc = "string"
reason = "string"
state = "string"
suppressionAlertsScope = {
allOf = [
{
field = "string"
}
]
}
}
})
}
屬性值
alertsSuppressionRules
名稱 | 描述 | 值 |
---|---|---|
類型 | 資源類型 | “Microsoft.Security/alertsSuppressionRules@2019-01-01-preview” |
NAME | 資源名稱 | 需要字串 () 字元限制:1-260 合法字元: 英數字元、底線和連字號。 |
parent_id | 若要部署至訂用帳戶,請使用該訂用帳戶的標識碼。 | 需要字串 () |
properties | 描述 AlertsSuppressionRule 屬性 | AlertsSuppressionRuleProperties |
AlertsSuppressionRuleProperties
名稱 | 描述 | 值 |
---|---|---|
alertType | 要自動隱藏的警示類型。 針對所有警示類型,請使用 '*' | 需要字串 () |
comment | 關於規則的任何批注 | 字串 |
expirationDateUtc | 規則的到期日,如果未提供值或提供為 null,則完全不會到期 | 字串 |
reason | 關閉警示的原因 | 需要字串 () |
狀態 | 規則的可能狀態 | “Disabled” “Enabled” 「已過期」 (必要) |
suppressionAlertsScope | 歸併條件 | SuppressionAlertsScope |
SuppressionAlertsScope
名稱 | 描述 | 值 |
---|---|---|
allOf | 內的所有條件都必須為 true,才能隱藏警示 | ScopeElement[] (必要) |
ScopeElement
名稱 | 描述 | 值 |
---|---|---|
field | 要隱藏的警示實體類型。 | 字串 |
{自定義屬性} |
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應