Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

retrieve list of blobs on Azure Storage by regular expression or wild cards

Is it possible to do a search via the Windows Azure Storage API, to find all blobs in a particular container that match a regular expression, or a wildcard? For example, search for all blobs which match *11002232*.

This would return say blobs like:

  • 11002232
  • 11002232.jpg
  • /uploads/11002232.jpg
  • /uploads/test-11002232.jpg
  • ...
like image 521
Karl Cassar Avatar asked Sep 24 '14 13:09

Karl Cassar


People also ask

How do I view the contents of Azure blob storage?

View a blob container's contentsOpen Storage Explorer. In the left pane, expand the storage account containing the blob container you wish to view. Expand the storage account's Blob Containers. Right-click the blob container you wish to view, and - from the context menu - select Open Blob Container Editor.

How do I access Azure blob storage from command line?

Authorize access to Blob storageSet the --auth-mode parameter to login to authorize with Azure AD credentials. For more information, see Authorize access to blob or queue data with Azure CLI. Run the login command to open a browser and connect to your Azure subscription.

What is BlobContainerClient?

Microsoft makes no warranties, express or implied, with respect to the information provided here. The BlobContainerClient allows you to manipulate Azure Storage containers and their blobs.


1 Answers

No, it is not possible to do so through the API. What you can do is filter blobs by prefix and then apply any additional filters on the client side.

like image 149
Gaurav Mantri Avatar answered Sep 29 '22 15:09

Gaurav Mantri