I want to get the total storage size used currently and the size used by each workspace through Rest API or Java SDK. Is there any way to perform this?
You should have a look at the quota / doc count extension : https://doc.nuxeo.com/nxdoc/nuxeo-quota/ Note that there is also the Elastic search pass through, but it might not fit your needs