Beginning a nodejs project, I need to retrieve the latest snapshot (and its metadata) for a specific blob. I'm using the Azure Blob storage client library v12 for JavaScript.
I'm not sure but I only found a method linked to the ContainerClient permitting to list all the blobs and snapshot within the container. Imo it's not for me very efficient in term of performance.
Is there a way to directly get the latest snapshot of a known blob or at least get all the snapshots ?
//construct of the blob storage connection
const blobServiceClient = new BlobServiceClient(
`https://${account}.blob.core.windows.net/`,
sharedKeyCredential
);
//target application container
let containerClient = blobServiceClient.getContainerClient(app);
blobClient = containerClient.getBlobClient(filename); //ok
//blobSnapshots = containerClient.getSnapshots(filename); // nok
The method in the last commented line for sure doesnt exist but is there an equivalent method ?