IPWorks Cloud 2020 Node.js Edition

Questions / Feedback?

UpdateBlobInfo Method

Updates a blob's information.

Syntax

azureblob.updateBlobInfo(blob, [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 updates the information of the specified Blob in the container currently selected by Container.

There must be an item in the Blob* properties whose BlobName property matches the specified Blob name (and whose BlobSnapshot property is empty) before this method is called.

When this method is called, the values of the following propertys on the aforementioned item are sent to the server (note that the last two are indexed configuration settings):

Note that it is not possible to do a partial update of a blob's information. That is, all of the blob's current values for the aforementioned propertys will be replaced with the values sent in the request. To prevent data loss, applications should call GetBlobInfo to retrieve the blob's current information, and then modify it as desired, before using this method.

If the specified blob has an active lease, its lease Id must be specified using LeaseId, or the request will fail.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Cloud 2020 Node.js Edition - Version 20.0 [Build 8265]