Alert Configurations - Update
更新警示組態。
PATCH https://management.azure.com/{scope}/providers/Microsoft.Authorization/roleManagementAlertConfigurations/{alertId}?api-version=2022-08-01-preview
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
alert
|
path | True |
string |
要更新的警示組態名稱。 |
scope
|
path | True |
string |
警示設定的範圍。 |
api-version
|
query | True |
string |
用於此作業的 API 版本。 |
要求本文
名稱 | 必要 | 類型 | Description |
---|---|---|---|
properties.alertConfigurationType | True |
string |
警示組態類型。 |
properties.isEnabled |
boolean |
如果啟用警示,則為 True,false 會停用特定警示的掃描。 |
回應
名稱 | 類型 | Description |
---|---|---|
204 No Content |
NoContent - 已成功更新警示。 |
|
Other Status Codes |
描述作業失敗原因的錯誤回應。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow
類型:
oauth2
Flow:
implicit
授權 URL:
https://login.microsoftonline.com/common/oauth2/authorize
範圍
名稱 | Description |
---|---|
user_impersonation | 模擬您的用戶帳戶 |
範例
UpdateAlertConfiguration
範例要求
PATCH https://management.azure.com/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertConfigurations/TooManyOwnersAssignedToResource?api-version=2022-08-01-preview
{
"properties": {
"isEnabled": true,
"thresholdNumberOfOwners": 2,
"alertConfigurationType": "TooManyOwnersAssignedToResourceAlertConfiguration"
}
}
範例回覆
定義
名稱 | Description |
---|---|
Alert |
警示設定。 |
Alert |
警示定義 |
Cloud |
來自服務的錯誤回應。 |
Cloud |
來自服務的錯誤回應。 |
Severity |
警示的嚴重性層級。 |
AlertConfiguration
警示設定。
名稱 | 類型 | Description |
---|---|---|
id |
string |
警示組態標識碼。 |
name |
string |
警示組態名稱。 |
properties.alertConfigurationType |
string |
警示組態類型。 |
properties.alertDefinition |
警示定義。 |
|
properties.alertDefinitionId |
string |
警示定義識別碼。 |
properties.isEnabled |
boolean |
如果啟用警示,則為 True,false 會停用特定警示的掃描。 |
properties.scope |
string |
警示範圍。 |
type |
string |
警示組態類型。 |
AlertDefinition
警示定義
名稱 | 類型 | Description |
---|---|---|
id |
string |
警示定義識別碼。 |
name |
string |
警示定義名稱。 |
properties.description |
string |
警示描述。 |
properties.displayName |
string |
警示顯示名稱。 |
properties.howToPrevent |
string |
防止警示的方式。 |
properties.isConfigurable |
boolean |
如果可以設定警示組態,則為 True;false,否則為 。 |
properties.isRemediatable |
boolean |
如果可以補救警示,則為 True;false,否則為 。 |
properties.mitigationSteps |
string |
減輕警示的方法。 |
properties.scope |
string |
警示範圍。 |
properties.securityImpact |
string |
警示的安全性影響。 |
properties.severityLevel |
警示的嚴重性層級。 |
|
type |
string |
警示定義類型。 |
CloudError
來自服務的錯誤回應。
名稱 | 類型 | Description |
---|---|---|
error |
來自服務的錯誤回應。 |
CloudErrorBody
來自服務的錯誤回應。
名稱 | 類型 | Description |
---|---|---|
code |
string |
錯誤的識別碼。 程式碼不變,且要以程式設計方式使用。 |
message |
string |
描述錯誤的訊息,適用於在使用者介面中顯示。 |
SeverityLevel
警示的嚴重性層級。
名稱 | 類型 | Description |
---|---|---|
High |
string |
|
Low |
string |
|
Medium |
string |