node.js - Nodejs Azure storage blob service : getStats not working -



node.js - Nodejs Azure storage blob service : getStats not working -

i utilize nodejs 'azure-storage' module (version: 0.3.3)

i global stats azure storage blob service.

of course, wont query blobs calculate hand total amount of storage used.

so think using blobservice.getservicestats help me. method homecoming error.

this.blobservice.getservicestats(function(error, result) { if (error) { console.info(error); } else { console.info(result); } });

this result in next error :

{ [error: value 1 of query parameters specifie requestid:51b156a6-0001-002d-765f-b4ebd5000000 time:2014-10-17t12:40:59.1246311z] code: 'invalidqueryparametervalue', queryparametername: 'comp', queryparametervalue: 'stats', reason: '', statuscode: 400, requestid: '51b156a6-0001-002d-765f-b4ebd5000000' }

this query parameter 'comp = stats' seems set sdk : blobservice.js line 156

what's wrong ? think should open issue here ?

do know (working) way global blob stats ?

regards

i think you're misunderstanding purpose of operation. operation tells info geo replication status on blob storage business relationship , not how much space you're occupying blob storage. on rest api documentation service stats: http://msdn.microsoft.com/en-us/library/azure/dn495326.aspx

the blob service stats operation retrieves statistics related replication blob service. it available on secondary location endpoint when read-access geo-redundant replication enabled storage account.

if you're interested in calculating storage size of blob storage, want enable storage analytics on storage account. after storage analytics enabled, can query $metricscapacityblob table find blob storage size. can read more table here: http://msdn.microsoft.com/en-us/library/azure/hh343264.aspx.

now coming reason why you're getting error because operation can called on secondary geo-location url [youraccountname]-secondary.blob.core.windows.net of storage account. guess you're going standard settings tries execute operation on primary storage url [youraccountname].blob.core.windows.net.

node.js azure statistics azure-storage-blobs windows-azure-storage

Comments

Popular posts from this blog

java - Bypassing "final local variable defined in an enclosing type" -

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -