Mayank Patel
Mayank Patel

Reputation: 376

File ID in Azure Blob Storage [AZURE-BLOB]

Is there any field such as fileID in Azure Blob Storage like modified_time, creation_time? which can be used to uniquely identify a file apart from its name. There is no such thing mentioned in the link here.

Upvotes: 2

Views: 3926

Answers (2)

Gaurav Mantri
Gaurav Mantri

Reputation: 136336

No. You can use a blob’s URL as its unique identifier.

Upvotes: 2

Stanley Gong
Stanley Gong

Reputation: 12153

Yes, you can get modified_time creation_time from this rest API: get blob property in response header with key: Last-Modified and x-ms-creation-time:

enter image description here

There is no fileID for Azure storage blob as an identifier, as @GauravMantri mentioned, Azure uses a blob’s URL as its unique identifier.

If a fileID is necessary for you, you can set it as metadata by this API, and filter blobs by the metadata property you have set.

Upvotes: 3

Related Questions