restoreSessionBase 资源类型

命名空间:microsoft.graph

表示受保护策略保护的保护单元的还原会话。 全局管理员、SharePoint Online 管理员和 Exchange Online 管理员使用还原会话 API 对作为保护策略一部分受到保护的工件执行与还原相关的任务。

不支持在单个还原会话中还原到新位置和同一 URL。

注意

删除超过一年且处于终端状态的还原会话。

方法

方法 返回类型 Description
List restoreSessionBase 集合 获取 restoreSessionBase 对象及其属性的列表。
Get restoreSessionBase 读取 restoreSessionBase 对象的属性和关系。
删除 无 删除 restoreSessionBase 对象。
Activate restoreSessionBase 激活草稿还原会话。

属性

属性 类型 说明
id String 还原会话的唯一标识符。
completedDateTime DateTimeOffset 还原会话的完成时间。
createdBy identitySet 创建还原会话的人员的标识。
createdDateTime DateTimeOffset 还原会话的创建时间。
error publicError 如果还原会话失败或完成时出现错误,则包含错误详细信息。
lastModifiedBy identitySet 上次修改还原会话的人员的标识。
lastModifiedDateTime DateTimeOffset 上次修改还原会话的时间戳。
policyId String 限定还原会话范围的保护策略的标识符。 在创建或更新期间提供时,服务会验证引用的保护单元是否属于指定的策略。
restoreJobType restoreJobType 指示还原会话是正常创建还是通过批量作业创建。
restoreSessionArtifactCount restoreSessionArtifactCount 属于此还原会话的元数据工件数。
status restoreSessionStatus 还原会话的状态。 该值是已还原工件的聚合状态。 可取值包括:draft、activating、active、completedWithError、completed、unknownFutureValue、failed。 使用 Prefer: include-unknown-enum-members 请求标头获取此 可进化枚举中的以下成员: failed.

restoreSessionStatus 值

成员 说明
草稿 添加了所有项目。
激活 已计划所有项目。
活动 所有或任何还原工件已计划或正在进行。
completedWithError 有些项目无法还原,有些项目成功。
completed 已成功还原所有还原工件。
失败 所有还原工件均失败。
unknownFutureValue 可进化枚举哨兵值。 请勿使用。

实例属性

实例属性是具有特殊行为的属性。 这些属性是临时的,并且 a) 定义服务应执行的行为或 b) 提供短期的属性值,例如过期项目的下载 URL。

属性 类型 说明
@microsoft.graph.conflictBehavior String 可选。 指定如何解决粒度 SharePoint 或 OneDrive for Business 还原会话中每个项目的同名冲突。 这些值 (默认值为 fail) 、 和 replacerename。 此批注不是结构性属性,非粒度会话不支持。 有关 POST 请求示例,请参阅 创建 sharePointRestoreSession 和 创建 oneDriveForBusinessRestoreSession。

关系

无。

JSON 表示形式

以下 JSON 表示形式显示资源类型。

{
  "@odata.type": "#microsoft.graph.restoreSessionBase",
  "id": "String (identifier)",
  "status": "String",
 "restoreJobType": "String",
  "restoreSessionArtifactCount": {
    "@odata.type": "microsoft.graph.restoreSessionArtifactCount"
  },
  "createdDateTime": "String (timestamp)",
  "createdBy": {
    "@odata.type": "microsoft.graph.identitySet"
  },
  "completedDateTime": "String (timestamp)",
  "lastModifiedDateTime": "String (timestamp)",
  "lastModifiedBy": {
    "@odata.type": "microsoft.graph.identitySet"
  },
  "error": {
    "@odata.type": "microsoft.graph.publicError"
  },
  "policyId": "String"
}