Get storage usage
get_storage_stats
Reads how much a site is storing, with the total number of files, the number of folders and the combined size in bytes.
Scopedata:readRead only
Use it to answer how big a bucket has grown before deciding what to clear out. The totals come back as objectCount, folderCount and totalSize, in bytes.
The scan is capped, so a very large bucket comes back with truncated set to true and the numbers are a floor rather than an exact total. It keeps working while a storage backup is being restored. See Usage and limits.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
projectId |
string | Yes | The site id. |