名前空間: microsoft.graph
sharePointProtectionPolicy に関連付けられている保護規則のプロパティを表します。
protectionRuleBase から継承します。
メソッド
| メソッド | 戻り値の種類 | 説明 |
|---|---|---|
| List | siteProtectionRule コレクション | siteProtectionRule オブジェクトとそのプロパティの一覧を取得します。 |
| Create | siteProtectionRule | 新しい siteProtectionRule を作成します。 |
| Get | siteProtectionRule | siteProtectionRule のプロパティとリレーションシップを読み取る。 |
| Delete | なし | siteProtectionRule を削除します。 |
| Run | protectionRuleBase | サイト保護ルールをアクティブ化します。 |
プロパティ
| プロパティ | 型 | 説明 |
|---|---|---|
| id | 文字列 | ポリシーに関連付けられている保護規則の一意識別子。 |
| createdBy | identitySet | ルールを作成したユーザーの ID。 |
| createdDateTime | DateTimeOffset | ルールが作成された日付と時刻。 |
| error | publicError | ルール式に対する操作が失敗した場合のエラーの詳細が含まれます。 |
| isAutoApplyEnabled | ブール型 |
true は、保護規則が動的であることを示します。静的であることを false します。 動的ルールがシステム内のすべての変更をリッスンし、保護ユニットの一覧を更新している間、静的ルールは 1 回実行されます。 現時点では、静的ルールのみがサポートされています。 |
| lastModifiedBy | identitySet | ルールを最後に変更したユーザーの ID。 |
| lastModifiedDateTime | DateTimeOffset | ルールに対する最後の変更のタイムスタンプ。 |
| siteExpression | 文字列 | サイト式が含まれます。 例については、「 siteExpression の例」を参照してください。 |
| status | protectionRuleStatus | 保護規則の状態。
protectionRuleStatus の値のサブセットをサポートします。 使用可能な値: draft、active、completed、completedWithErrors、unknownFutureValue。
draft メンバーは現在サポートされていません。
protectionRuleBase から継承されます。 |
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')) |
リレーションシップ
なし。
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"
}