#aggregate data-compaction-space-saved

1 messages · Page 1 of 1 (latest)

half crescent
#

What is the API equivelant call for the following command:
storage aggregate show -fields data-compaction-space-saved
I am using invoke-ncssh but I really hate using that method.

tribal girder
#

https://<clusterip>/api/storage/aggregates?fields=space.block_storage.data_compaction_space_saved&return_records=true&return_timeout=15

ONTAP 9.10 and later

#

If you're using PowerShell use Invoke-RestMethod

#

...and just in case you're not aware - the REST API documentation (Swagger) is part of ONTAP - https://<clusterip>/docs/api

half crescent
half crescent
quasi silo
#

There’s a public copy of the swagger API documentation. I’ll link it here in a few.

quasi silo
#

That page has a table of ONTAP version-specific links to the swagger-style API docs. The only limitation is not having the option to “try it”. But you can do that with a lab at
https://labondemand.NetApp.com