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.
GET https://graph.microsoft.com/beta/drive/bundles
// Code snippets are only available for the latest version. Current version is 5.x
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Drives["{drive-id}"].Bundles.GetAsync();
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
DriveItemCollectionResponse result = graphClient.drives().byDriveId("{drive-id}").bundles().get();
To filter the list of bundles returned from a request to the bundles collection, you can use the filter query string parameter to specify the type of bundle to return by checking for the existence of a facet on the bundle.
GET https://graph.microsoft.com/v1.0/drive/bundles?filter=bundle/album%20ne%20null
// Code snippets are only available for the latest version. Current version is 5.x
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Drives["{drive-id}"].Bundles.GetAsync((requestConfiguration) =>
{
requestConfiguration.QueryParameters.Filter = "bundle/album ne null";
});
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
DriveItemCollectionResponse result = graphClient.drives().byDriveId("{drive-id}").bundles().get(requestConfiguration -> {
requestConfiguration.queryParameters.filter = "bundle/album ne null";
});
The following example shows the response. The response to a GET to the bundles endpoint is an array of driveItem resources with the bundle.
Because all bundles are items, you can use all the standard item operations on them.
Note: The response object shown here might be shortened for readability.
Presto disponibile: Nel corso del 2024 verranno gradualmente disattivati i problemi di GitHub come meccanismo di feedback per il contenuto e ciò verrà sostituito con un nuovo sistema di feedback. Per altre informazioni, vedere https://aka.ms/ContentUserFeedback.