mailboxProtectionRule リソースの種類

名前空間: microsoft.graph

重要

Microsoft Graph の /beta バージョンの API は変更される可能性があります。 実稼働アプリケーションでこれらの API を使用することは、サポートされていません。 v1.0 で API を使用できるかどうかを確認するには、Version セレクターを使用します。

Exchange 保護ポリシーに関連付けられている保護規則のプロパティを表します。

protectionRuleBase から継承します。

メソッド

メソッド 戻り値の種類 説明
List mailboxProtectionRule コレクション mailboxProtectionRule オブジェクトとそのプロパティの一覧を取得します。
Create mailboxProtectionRule 新しい mailboxProtectionRule を作成します
Get mailboxProtectionRule mailboxProtectionRule のプロパティとリレーションシップを読み取る。
Delete なし mailboxProtectionRule を削除します
Run protectionRuleBase メールボックス保護規則をアクティブ化します。

プロパティ

プロパティ 種類 説明
id String ポリシーに関連付けられている保護規則の一意識別子。
createdBy identitySet ルールを作成したユーザーの ID。
createdDateTime DateTimeOffset ルールが作成された日付と時刻。
error publicError ルール式に対する操作が失敗した場合のエラーの詳細が含まれます。
isAutoApplyEnabled ブール型 保護規則が静的か動的かを示します。 静的ルールは 1 回実行され、動的ルールはシステム内のすべての変更をリッスンし、保護ユニットの一覧を更新します。
lastModifiedBy identitySet このルールを最後に変更したユーザーの ID。
lastModifiedDateTime DateTimeOffset ルールに対する最後の変更のタイムスタンプ。
mailboxExpression String メールボックス式が含まれます。 例については、「 mailboxExpression の例」を参照してください。
status protectionRuleStatus 保護規則の状態。 使用可能な値: draftactivecompletedcompletedWithErrorsunknownFutureValue

mailboxExpression の例

次の表は、メールボックス式に使用できる形式を示しています。

プロパティ オペレーター
memberOf -any (memberOf -any (group.id -in ['d7f5150a-0c6f-4894-a6a1-6df77b26f375']))
group.id -in (memberOf -any (group.id -in ['d7f5150a-0c6f-4894-a6a1-6df77b26f375', '363cdbd0-f091-4644-93e4-64c1020c94d8']))

protectionRuleStatus 値

メンバー 説明
ドラフト 作成時の保護規則の初期状態。
アクティブ API を使用した場合の保護規則の /run 状態。
完了 対応するポリシーに正常に適用された後の保護規則の状態。
completedWithErrors 対応するポリシーに適用され、エラーが発生した後の保護規則の状態。
unknownFutureValue 進化可能な列挙センチネル値。 使用しないでください。

リレーションシップ

なし。

JSON 表記

次の JSON 表現は、リソースの種類を示しています。

{
  "@odata.type": "#microsoft.graph.mailboxProtectionRule",
  "id": "String (identifier)",
  "status": "String",
  "createdDateTime": "String (timestamp)",
  "createdBy": {
    "@odata.type": "microsoft.graph.identitySet"
  },
  "lastModifiedDateTime": "String (timestamp)",
  "lastModifiedBy": {
    "@odata.type": "microsoft.graph.identitySet"
  },
  "error": {
    "@odata.type": "microsoft.graph.publicError"
  },
  "isAutoApplyEnabled": "Boolean",
  "mailboxExpression": "String"
}