driveProtectionRule リソースの種類

名前空間: microsoft.graph

重要

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

OneDrive for Business保護ポリシーに関連付けられている保護規則を表します。

protectionRuleBase から継承します。

メソッド

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

プロパティ

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

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

protectionRuleStatus 値

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

リレーションシップ

なし。

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