#FSA API for folder cold and hot data

1 messages · Page 1 of 1 (latest)

sweet knot
#

Hi, we can see the cold and hot data percentage from the system manager Explorer,
Is there any single API that I can reference to get this value instead of doing manipulation?
The origin process I am thinking of is:
Using "/api/storage/volumes/{volumeUUID}/files/{path}"
And get all the files and folders accesstime under the path, and then try to do the manipulation to compare to the user_setting threshold of cold data.

sacred torrent
#

Unfortunately my lab is to old, so I don't have percentages in System Manager, but I can get any other number (like inactive) by doing this.

#

curl -X GET -u 'admin:xxxxxx' -k -v "https://<CLUSTER_MGMT_IP>/api/storage/volumes?fields=space&name=<VOLUME_NAME>"

#

If you're looking to fetch specific values through RestAPI and you're able to find them in System Manager then Developer Tools in your browser is your friend. 🙂

pulsar crest
#

There's a button in the top right of OCSM that will list the APIs OCSM is using, live.

sacred torrent
#

For sure, I just find it easier also seeing the response so that you can immediately find out if a particular call gave the info I needed. 🙂

tiny mountain
#

I did this a while back using the /private/cli to get hot and cold #s by volume

Volumes with Tiering Policy

GET /api/private/cli/volume?tiering-policy=!none&fields=logical-used-by-afs,size-used-by-snapshots

Loop through each volume (hot=bin0, cold=bin1), do some running totals, and export to CSV

GET /api/private/cli/volume/show-footprint?fields=total-footprint,volume-blocks-footprint-bin0,volume-blocks-footprint-bin1&volume={volume_name}

pulsar crest