Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

AEM 6.2 - Dam Assets information

gregoryp3536631
Level 2
Level 2

Hi everyone,

 

This might be a stupid question but is there any way to see how many assets there is in the DAM ?

And the global size of the DAM ?

 

Can't find it, and it seems to be something basics to me no?

 

Regards,

Grégory

1 Accepted Solution
abhishekb
Correct answer by
Level 3
Level 3

I use this query regularly to get this information in json format. It works great at all path levels.

http://localhost:8051/bin/querybuilder.json?type=dam:Asset&path=/content/dam&p.limit=-1

View solution in original post

5 Replies
smacdonald2008
Level 10
Level 10

You can use QueryBuilder APi to query all DAM assets and count result set.

Opkar_Gill
Employee
Employee

Hi,

you can get the size for a folder path from the disk usage report[0]. But be careful with this page as it will put a load on your server. Number of Assets could be via a query, as the above report will give a count of the JCR nodes for a path.

Regards,

Opkar

[0] http://localhost:4502/etc/reports/diskusage.html?path=/content/dam

kautuk_sahni
Community Manager
Community Manager

Hi 

Please have a look at theses queries:-

Go to:- http://localhost:4502/crx/explorer/ui/search.jsp

Number of digital assets in DAM

// element(*, dam:Asset) order by @jcr:score

Number of images

// metadata[jcr:like(@dam:MIMEtype, 'image/%’)] order by @jcr:score

Total number of nodes 

// * order by @jcr:score

Total number of CQ pages

 // element(*, cq:Page) order by @jcr:score

 

As mentioned by Opkar, Disk Usage Reports is used when you need to find which folder is taking the maximum space (it is server side load).

Disk Usage Report:

/etc/reports/diskusage.html

Disk Storage by DAM Assets:

/etc/reports/diskusage.html?path=/content/dam

 

I hope this will help you.

Thanks and Regards

Kautuk Sahni

abhishekb
Correct answer by
Level 3
Level 3

I use this query regularly to get this information in json format. It works great at all path levels.

http://localhost:8051/bin/querybuilder.json?type=dam:Asset&path=/content/dam&p.limit=-1

View solution in original post