Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How can I see how much storage one space uses?

Thomas Hansen 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 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.

TAGS
AUG Leaders

Atlassian Community Events