目录资源类型(已删除的项目)directory resource type (deleted items)

表示目录中已删除的项目。Represents a deleted item in the directory. 删除某个项目后,它会被添加到已删除项目“容器”中。When an item is deleted, it is added to the deleted items "container". 已删除的项目将保留最多 30 天的还原时间。Deleted items will remain available to restore for up to 30 days. 30 天后,这些项目将永久删除。After 30 days, the items are permanently deleted.

目前,已删除的项目功能仅支持用于 Office 365 groupsusersCurrently, deleted items functionality is only supported for Office 365 groups and users.

方法Methods

方法Method 返回类型Return Type 说明Description
Get deleted itemGet deleted item directoryObjectdirectoryObject 获取已删除项目的属性。Gets the properties of a deleted item.
Restore deleted itemRestore deleted item directoryObjectdirectoryObject 还原最近删除的项目。Restores a recently deleted item.
List deleted itemsList deleted items directoryObject 集合directoryObject collection 获取最近删除的项目列表。Gets a list of recently deleted items.
Permanently delete an itemPermanently delete an item None 永久删除项目。Permanently deletes an item.
列出用户拥有的已删除项目List deleted items owned by a user directoryObject collectiondirectoryObject collection 列出用户拥有的目录项。Lists directory items owned by a user.

关系Relationships

关系Relationship 类型Type 说明Description
deletedItemsdeletedItems directoryObject 集合directoryObject collection 最近删除的项目。Recently deleted items. 只读。Read-only. 可为 Null。Nullable.

JSON 表示形式JSON representation

下面是资源的 JSON 表示形式。Here is a JSON representation of the resource.

{
}

示例Example

GET https://graph.microsoft.com/v1.0/directory
HTTP/1.1 200 OK
Content-Type: application/json

{
}