...
Get aggregated totals
Aggregate over any combination of dimensions listed in StorageUsageDimension except for USER_ID and ENTITY_ID which are provided via separate APIs. For the list of aggregating dimensions, see Synapse Entity Types. For example, the following command lists storage usage by content type and storage provider:
...
Code Block |
---|
|
{
"totalCount":133827,
"totalSize":1080865415607,
"summaryList":[]
} |
Get usage by users
Lists the aggregated usage by users in descending order of 'aggregatedSize':
Code Block |
---|
|
curl -i -H sessionToken:<token> -H Accept:application/json https://repo-staging.sagebase.org/repo/v1/admin/storageSummary/perUser |
Code Block |
---|
|
{
"summaryList": [
{
"aggregatedCount": 35204,
"aggregatedSize": 283329626902,
"dimensionList": [
{
"dimension": "USER_ID",
"value": "273975"
}
]
},
{
"aggregatedCount": 458,
"aggregatedSize": 227459357704,
"dimensionList": [
{
"dimension": "USER_ID",
"value": "342024"
}
]
},
{
"aggregatedCount": 179,
"aggregatedSize": 66928683678,
"dimensionList": [
{
"dimension": "USER_ID",
"value": "274010"
}
]
}
]
} |
Get usage by entities
Lists the aggregated usage by entities in descending order of 'aggregatedSize':
Code Block |
---|
|
curl -i -H sessionToken:<token> -H Accept:application/json https://repo-staging.sagebase.org/repo/v1/admin/storageSummary/perEntity |
Code Block |
---|
|
{
"summaryList": [
{
"aggregatedCount": 1,
"aggregatedSize": 5210220350,
"dimensionList": [
{
"dimension": "NODE_ID",
"value": "317475"
}
]
},
{
"aggregatedCount": 1,
"aggregatedSize": 4670860925,
"dimensionList": [
{
"dimension": "NODE_ID",
"value": "1113803"
}
]
},
{
"aggregatedCount": 2,
"aggregatedSize": 4235837739,
"dimensionList": [
{
"dimension": "NODE_ID",
"value": "4494"
}
]
},
]
} |