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