I am developing a azure function which connects to azure storage to get a selective list of blobs metadata based on a particular metadata on those blobs. For example, On all the blobs in the storage,there will be a metadata called type which stores values like news,change notice, faqs etc. We might have 50 blobs which are news, another 50 which are change notice and another 50 which are faqs.
Now from function, i request for all the blobs with type news, the function should return metadata of all the blobs with news in json like the sample below:
value: [
{ object : abc.xml,
data created : Mar 20,2018,
type : news,
creator name : john
}
{
object : xyz.xml,
data created: Mar 13,2018,
type : news,
creator name : Siva
}
{
object : dce.xml,
data created: Mar 20,2018,
type : news,
creator name : John
}
and then i have to sort the data based on metadata. I see option to getmetadata and getproperties for single blob but i dont see any option to get something i just mentioned above through storage sdk. Is it possible to achieve this with Blob Storage metadata and Is there any sdk methods available to achieve it?
[Edit] The filter type to get the blobs will not change.