We are currently working on writing a simple integration using the Active IQ Unified Manager API and Powershell for extracting volume specific attributes. We have found most of the information using simple queries as follows:
We are trying to replicate the same behavior as our current reporting code, which is based on an imported BIRT report built in Eclipse a while back:
select cluster.name as Cluster, vserver.name as SVM, volume.name as Volume,
volume.size/POW(1024,3) as size_gb,
volume.sizeUsed/POW(1024,3) as used_gb,
(volume.deduplicationSpaceSaved+compressionSpaceSaved)/POW(1024,3) as saved_gb,
volume.sizeUsedBySnapshots/POW(1024,3) as snapshot_gb,
(volume.sizeUsed+volume.deduplicationSpaceSaved+compressionSpaceSaved+sizeUsedBySnapshots)/POW(1024,3) as total_gb,
volume.isEncrypt as Encrypted, volume.qosPolicyGroupId as QoS
on vserver.clusterId = cluster.objid
on volume.vserverId = vserver.objid
AND volume.name NOT LIKE 'MDV_%'
AND volume.name NOT LIKE 'vol0'
AND (volume.junctionPath != '/' OR volume.junctionPath IS NULL)
ORDER BY SVM, Volume asc;
But we have a hard time working out the correct way to query for the volume.deduplicationSpaceSaved and compressionSpaceSaved attributes. We have so far been unable to find these using the API documentation and trial and error, could you please help us with pointer to the correct endpoint or method for also requesting information for these attributes for a given volume?