<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Active IQ UM -  API and Powershell in Active IQ and AutoSupport Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-and-AutoSupport-Discussions/Active-IQ-UM-API-and-Powershell/m-p/159518#M1695</link>
    <description>&lt;P&gt;Sorry, forgot to mention that&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="nwf-about-row"&gt;
&lt;P class="nwf-about-product-name" data-netapp-id="aboutDialog-product-name"&gt;&lt;STRONG&gt;Active IQ Unified Manager&lt;/STRONG&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV class="nwf-about-row"&gt;
&lt;P class="nwf-about-version-number" data-netapp-id="aboutDialog-version"&gt;Version: 9.7P1&lt;/P&gt;
&lt;P class="nwf-about-version-number" data-netapp-id="aboutDialog-version"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="nwf-about-version-number" data-netapp-id="aboutDialog-version"&gt;&lt;STRONG&gt;ONTAP&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="nwf-about-version-number" data-netapp-id="aboutDialog-version"&gt;NetApp Release 9.6P6:&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Fri, 18 Sep 2020 07:18:03 GMT</pubDate>
    <dc:creator>connoisseur</dc:creator>
    <dc:date>2020-09-18T07:18:03Z</dc:date>
    <item>
      <title>Active IQ UM -  API and Powershell</title>
      <link>https://community.netapp.com/t5/Active-IQ-and-AutoSupport-Discussions/Active-IQ-UM-API-and-Powershell/m-p/159393#M1691</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;$NetAppVolumeRecordsAll = Invoke-RestMethod -Method Get -UseBasicParsing -Uri "https://&amp;lt;NETAPP IP&amp;gt;/api/datacenter/storage/volumes?order_by=name&amp;amp;max_records=100000" -Headers $authheader
$NetAppVolumeRecord = $NetAppVolumeRecordsAll.records | Where-Object name -eq "&amp;lt;VOLUME NAME&amp;gt;"
$NetAppGatewayVolumeRecords = Invoke-RestMethod -Method Get -UseBasicParsing -Uri "https:// &amp;lt;NETAPP IP&amp;gt;/api/v2/gateways/ $($NetAppVolumeRecord.cluster.uuid)/storage/volumes?name=$($NetAppVolumeRecord.name)&amp;amp;fields=**&amp;amp;return_records=true&amp;amp;return_timeout=15" -Headers $authheader
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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:&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;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

from cluster
join vserver
          on vserver.clusterId = cluster.objid
join volume
          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;
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/Henrik&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 10:53:45 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-and-AutoSupport-Discussions/Active-IQ-UM-API-and-Powershell/m-p/159393#M1691</guid>
      <dc:creator>connoisseur</dc:creator>
      <dc:date>2025-06-04T10:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Active IQ UM -  API and Powershell</title>
      <link>https://community.netapp.com/t5/Active-IQ-and-AutoSupport-Discussions/Active-IQ-UM-API-and-Powershell/m-p/159457#M1692</link>
      <description>&lt;P&gt;AIQ UM and ONTAP versions?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 15:42:44 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-and-AutoSupport-Discussions/Active-IQ-UM-API-and-Powershell/m-p/159457#M1692</guid>
      <dc:creator>andris</dc:creator>
      <dc:date>2020-09-16T15:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: Active IQ UM -  API and Powershell</title>
      <link>https://community.netapp.com/t5/Active-IQ-and-AutoSupport-Discussions/Active-IQ-UM-API-and-Powershell/m-p/159518#M1695</link>
      <description>&lt;P&gt;Sorry, forgot to mention that&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="nwf-about-row"&gt;
&lt;P class="nwf-about-product-name" data-netapp-id="aboutDialog-product-name"&gt;&lt;STRONG&gt;Active IQ Unified Manager&lt;/STRONG&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV class="nwf-about-row"&gt;
&lt;P class="nwf-about-version-number" data-netapp-id="aboutDialog-version"&gt;Version: 9.7P1&lt;/P&gt;
&lt;P class="nwf-about-version-number" data-netapp-id="aboutDialog-version"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="nwf-about-version-number" data-netapp-id="aboutDialog-version"&gt;&lt;STRONG&gt;ONTAP&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="nwf-about-version-number" data-netapp-id="aboutDialog-version"&gt;NetApp Release 9.6P6:&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 18 Sep 2020 07:18:03 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-and-AutoSupport-Discussions/Active-IQ-UM-API-and-Powershell/m-p/159518#M1695</guid>
      <dc:creator>connoisseur</dc:creator>
      <dc:date>2020-09-18T07:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Active IQ UM -  API and Powershell</title>
      <link>https://community.netapp.com/t5/Active-IQ-and-AutoSupport-Discussions/Active-IQ-UM-API-and-Powershell/m-p/159519#M1696</link>
      <description>&lt;P&gt;Hi Henrik,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might be interested in this PowerShell Module I've developed for &lt;A title="https://github.com/matthew-beattie/AIQUM/blob/master/AIQUM.psm1" href="https://github.com/matthew-beattie/AIQUM/blob/master/AIQUM.psm1" target="_blank" rel="noopener"&gt;Active IQ&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/Matt&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 07:35:12 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-and-AutoSupport-Discussions/Active-IQ-UM-API-and-Powershell/m-p/159519#M1696</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2020-09-18T07:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: Active IQ UM -  API and Powershell</title>
      <link>https://community.netapp.com/t5/Active-IQ-and-AutoSupport-Discussions/Active-IQ-UM-API-and-Powershell/m-p/159614#M1697</link>
      <description>&lt;P&gt;Thank you very much.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Allthough I can only see:&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;If($SavingsGB){
[String]$uri += $("&amp;amp;space.efficiency.savings=" + ($SavingsGB * (1024 * 1024 * 1024)))
[Bool]$query = $True&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Wich only os for global space saving (datacenter/storage/aggregates)&lt;/P&gt;
&lt;P&gt;Nothing on volume level.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 08:03:35 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-and-AutoSupport-Discussions/Active-IQ-UM-API-and-Powershell/m-p/159614#M1697</guid>
      <dc:creator>connoisseur</dc:creator>
      <dc:date>2020-09-23T08:03:35Z</dc:date>
    </item>
  </channel>
</rss>

