次の方法で共有


Alert Configurations - Update

アラート構成を更新します。

PATCH https://management.azure.com/{scope}/providers/Microsoft.Authorization/roleManagementAlertConfigurations/{alertId}?api-version=2022-08-01-preview

URI パラメーター

名前 / 必須 説明
alertId
path True

string

更新するアラート構成の名前。

scope
path True

string

アラート構成のスコープ。

api-version
query True

string

minLength: 1

この操作に使用する API バージョン。

要求本文

名前 必須 説明
properties.alertConfigurationType True

string

アラート構成の種類。

properties.isEnabled

boolean

アラートが有効な場合は True、false は特定のアラートのスキャンを無効にします。

応答

名前 説明
204 No Content

NoContent - アラートが正常に更新されました。

Other Status Codes

CloudError

操作が失敗した理由を説明するエラー応答。

セキュリティ

azure_auth

Azure Active Directory OAuth2 フロー

型: oauth2
フロー: implicit
Authorization URL (承認 URL): https://login.microsoftonline.com/common/oauth2/authorize

スコープ

名前 説明
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"
  }
}

応答のサンプル

定義

名前 説明
AlertConfiguration

アラートの構成。

AlertDefinition

アラートの定義

CloudError

サービスからのエラー応答。

CloudErrorBody

サービスからのエラー応答。

SeverityLevel

アラートの重大度レベル。

AlertConfiguration

アラートの構成。

名前 説明
id

string

アラート構成 ID。

name

string

アラート構成名。

properties.alertConfigurationType

string

アラート構成の種類。

properties.alertDefinition

AlertDefinition

アラート定義。

properties.alertDefinitionId

string

アラート定義 ID。

properties.isEnabled

boolean

アラートが有効な場合は True、false は特定のアラートのスキャンを無効にします。

properties.scope

string

アラート スコープ。

type

string

アラート構成の種類。

AlertDefinition

アラートの定義

名前 説明
id

string

アラート定義 ID。

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

SeverityLevel

アラートの重大度レベル。

type

string

アラート定義の種類。

CloudError

サービスからのエラー応答。

名前 説明
error

CloudErrorBody

サービスからのエラー応答。

CloudErrorBody

サービスからのエラー応答。

名前 説明
code

string

エラーの識別子。 コードは不変であり、プログラムで使用することを目的としています。

message

string

ユーザー インターフェイスでの表示に適したエラーを説明するメッセージ。

SeverityLevel

アラートの重大度レベル。

説明
Low
Medium
High