How to get the top 10 objects by size in a bucket ?
Content
I need to fetch the top 10 objects by size from a bucket. is there any API that fetches the list with size information.
Currently, the List Objects API(https://docs.cloud.oracle.com/iaas/api/#/en/objectstorage/20160918/datatypes/ListObjects) provides only name information of objects in response. API response is provided below.
{
"objects": Array[4][
{
"name": "Sample_~_How_To_Train_Your_Dragon_3_The_Hidden_World_2019_Movies_HD_Cam_x264_Clean_Audio_New_Source_?rDX?.mkv"
},
{
"name": "dynatrace_oracle_cloud.PNG"
},
{
"name": "explanation_blank.PNG"
},
{
"name": "guava-19.0.jar"
}
]
}
In order to fetch size information, i need to make individual API call for object it seems.
Tagged:
2