GetBlobMetadata Method
Gets the user-specified metadata for a blob.
Syntax
azureblob.getBlobMetadata(blobName, [callback])
Callback
The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).
The callback for this method is defined as:
function(err){ }
'err' is the error that occurred. If there was no error, then 'err' is 'null'.
'err' has 2 properties which hold detailed information:
err.code err.message
Remarks
This method will retrieve the user-specified metadata for the blob specified by blobName and stored within the container ContainerName. All returned metadata will be stored within Metadata. The Metadata event will also be fired for each metadata returned.
ETag will be populated with the returned ETag for the blob.
BlobSnapshot can be specified to retrieve the content of a specific snapshot.
If the blob has an active lease, LeaseId must be specified prior to calling GetBlobMetadata.