How can I see how much storage one space uses?

Thomas Hansen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 28, 2024

Let's say I have created 10 spaces. Is it possible to see how much storage is used by one specific space, if I for instance wanted to reduce the amount of storage I am using?

1 comment

Comment

Log in or Sign up to comment
Rune Rasmussen
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 29, 2024

Ahoy Thomas

 

I've poked around a bit, and it doesn't seem there is any straight forward way of just getting info on how much data an individual space takes up.

You should be able to get it through the REST API though.

  1. Get the Homepage ID for each space
    https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-space/#api-spaces-get

  2. Use the Get content Descendants to find attachments and their size
    https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content---children-and-descendants/#api-wiki-rest-api-content-id-descendant-get
    You'll need to expand page descendants attachments.

    {siteName}.atlassian.net/wiki/rest/api/content/{homepageId}/descendant?expand=page.descendants.attachment

  3. From the response, follow the "next" link until the end, and log the "fileSize" value for each attachment.

Note: The "fileSize" value is just numbers, so you should probably compare to a file you know the size of, to find out if it kb, mb, or whatever.

If that's not really your jam, I would reach out to Atlassian support and ask or maybe look for an app on the marketplace.

Tracy Anderson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 7, 2024

If you are an Admin, you can go to the gear icon "Confluence Administration" and then expand the Data Management link on the left side.  There is a new report that can be downloaded called "Space Reports".  It gives content and attachment counts as well as storage used in MB.

TAGS
AUG Leaders

Atlassian Community Events