siteProtectionRule リソースの種類

名前空間: microsoft.graph

重要

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

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

protectionRuleBase から継承します。

メソッド

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

プロパティ

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

siteExpression の例

次の表は、サイト式に使用できる形式を示しています。

プロパティ オペレーター
displayName -contains ((displayName -contains 'Finance') -or (displayName -contains 'Legal'))
lastModifiedDateTime -ge (((displayName -contains 'Finance') -or (webUrl -contains 'Legal')) -and (lastModifiedDateTime -ge '2024-02-26T11:36:20Z'))
webUrl -contains ((displayName -contains 'Finance') -or (webUrl -contains 'Legal'))

protectionRuleStatus 値

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

リレーションシップ

なし。

JSON 表記

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

{
  "@odata.type": "#microsoft.graph.siteProtectionRule",
  "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",
  "siteExpression": "String"
}