次の方法で共有


mailboxProtectionRule リソースの種類

名前空間: microsoft.graph

重要

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

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

protectionRuleBase から継承します。

メソッド

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

プロパティ

プロパティ 説明
id String ポリシーに関連付けられている保護規則の一意識別子。
createdBy identitySet ルールを作成したユーザーの ID。
createdDateTime DateTimeOffset ルールが作成された日付と時刻。
error publicError ルール式に対する操作が失敗した場合のエラーの詳細が含まれます。
isAutoApplyEnabled ブール型 true は、保護規則が動的であることを示します。静的であることを false します。 動的ルールがシステム内のすべての変更をリッスンし、保護ユニットの一覧を更新している間、静的ルールは 1 回実行されます。 現時点では、静的ルールのみがサポートされています。
lastModifiedBy identitySet このルールを最後に変更したユーザーの ID。
lastModifiedDateTime DateTimeOffset ルールに対する最後の変更のタイムスタンプ。
mailboxExpression String メールボックス式が含まれます。 例については、「 mailboxExpression の例」を参照してください。
status protectionRuleStatus 保護規則の状態。 使用可能な値: draftactivecompletedcompletedWithErrorsunknownFutureValueupdateRequesteddeleteRequestedPrefer: include-unknown-enum-members要求ヘッダーを使用して、この進化可能な列挙型で次の値を取得します:updateRequesteddeleteRequesteddraft メンバーは現在サポートされていません。 protectionRuleBase から継承されます。

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']))

リレーションシップ

なし。

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"
}