| title | List recycleBinItem |
|---|---|
| description | Get a list of recycleBinItem objects from a fileStorageContainer recycleBin. |
| author | harmoneddie |
| ms.localizationpriority | medium |
| ms.subservice | onedrive |
| doc_type | apiPageType |
| ms.date | 12/10/2024 |
Namespace: microsoft.graph
Get a list of recycleBinItem objects from the recycleBin of a fileStorageContainer.
[!INCLUDE national-cloud-support]
Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.
[!INCLUDE permissions-table]
[!INCLUDE app-permissions]
GET /storage/fileStorage/containers/{containerId}/recycleBin/items| Name | Description |
|---|---|
| Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
Don't supply a request body for this method.
If successful, this method returns a 200 OK response code and a collection of recycleBinItem objects in the response body.
The following example shows a request.
GET https://graph.microsoft.com/v1.0/storage/fileStorage/containers/b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z/recycleBin/items[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
The following example shows the response.
Note: The response object shown here might be shortened for readability.
HTTP/1.1 200 OK
Content-Type: application/json
{
"value": [
{
"id": "5d625d33-338c-4a77-a98a-3e287116440c",
"name": "document.docx",
"size": 1024,
"deletedDateTime": "2022-04-25T20:11:51Z",
"title": "my document",
"deletedBy": {
"user": {
"displayName": "Tenant Admin User",
"id": "EBA7DBE0-B42F-4BC8-AEF6-97B66EFC77D0",
"userPrincipalName": "jhan@contoso.com"
}
}
}
]
}