<?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 WFA - Filtering Export Policies by Volume and Qtree in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Filtering-Export-Policies-by-Volume-and-Qtree/m-p/142816#M26095</link>
    <description>&lt;P&gt;Folks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm looking to provide&amp;nbsp;a server deployment team with the ability to add servers to existing export policies via a REST call to a workflow.&lt;/P&gt;
&lt;P&gt;The problem is that&amp;nbsp;their team has no knowledge of the export policy name among other fields, which requires some granular filtering on our part.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Right now they have the vserver and mount path, which could either be /volume or /volume/qtree. It should be&amp;nbsp;filterable with an SQL query, but I can't seem to nail it down. Does anyone have any suggestions to facilitate this? I've linked my SQL query for the export policy filter below.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SELECT&lt;BR /&gt; export_policy.name,&lt;BR /&gt; vserver.name AS 'vserver.name',&lt;BR /&gt; cluster.primary_address AS 'vserver.cluster.primary_address' &lt;BR /&gt;FROM&lt;BR /&gt; cm_storage.qtree,&lt;BR /&gt; cm_storage.volume,&lt;BR /&gt; cm_storage.export_policy,&lt;BR /&gt; cm_storage.vserver,&lt;BR /&gt; cm_storage.cluster &lt;BR /&gt;WHERE&lt;BR /&gt;qtree.name = '${qtree_name}' &lt;BR /&gt; AND volume.name = '${volume_name}' &lt;BR /&gt; AND vserver.name = '${vserver_name}' &lt;BR /&gt; AND qtree.volume_id = volume.id &lt;BR /&gt; AND volume.vserver_id = vserver.id &lt;BR /&gt; AND cluster.id = vserver.cluster_id &lt;BR /&gt; AND export_policy.vserver_id = vserver.id&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 13:18:05 GMT</pubDate>
    <dc:creator>lil_baby_james</dc:creator>
    <dc:date>2025-06-04T13:18:05Z</dc:date>
    <item>
      <title>WFA - Filtering Export Policies by Volume and Qtree</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Filtering-Export-Policies-by-Volume-and-Qtree/m-p/142816#M26095</link>
      <description>&lt;P&gt;Folks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm looking to provide&amp;nbsp;a server deployment team with the ability to add servers to existing export policies via a REST call to a workflow.&lt;/P&gt;
&lt;P&gt;The problem is that&amp;nbsp;their team has no knowledge of the export policy name among other fields, which requires some granular filtering on our part.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Right now they have the vserver and mount path, which could either be /volume or /volume/qtree. It should be&amp;nbsp;filterable with an SQL query, but I can't seem to nail it down. Does anyone have any suggestions to facilitate this? I've linked my SQL query for the export policy filter below.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SELECT&lt;BR /&gt; export_policy.name,&lt;BR /&gt; vserver.name AS 'vserver.name',&lt;BR /&gt; cluster.primary_address AS 'vserver.cluster.primary_address' &lt;BR /&gt;FROM&lt;BR /&gt; cm_storage.qtree,&lt;BR /&gt; cm_storage.volume,&lt;BR /&gt; cm_storage.export_policy,&lt;BR /&gt; cm_storage.vserver,&lt;BR /&gt; cm_storage.cluster &lt;BR /&gt;WHERE&lt;BR /&gt;qtree.name = '${qtree_name}' &lt;BR /&gt; AND volume.name = '${volume_name}' &lt;BR /&gt; AND vserver.name = '${vserver_name}' &lt;BR /&gt; AND qtree.volume_id = volume.id &lt;BR /&gt; AND volume.vserver_id = vserver.id &lt;BR /&gt; AND cluster.id = vserver.cluster_id &lt;BR /&gt; AND export_policy.vserver_id = vserver.id&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 13:18:05 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Filtering-Export-Policies-by-Volume-and-Qtree/m-p/142816#M26095</guid>
      <dc:creator>lil_baby_james</dc:creator>
      <dc:date>2025-06-04T13:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: WFA - Filtering Export Policies by Volume and Qtree</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Filtering-Export-Policies-by-Volume-and-Qtree/m-p/143021#M26141</link>
      <description>&lt;P&gt;Do you use Export Policies on the Qtree level? The default schema of WFA has no information of the export policy at Qtree level.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want this information you have to create a new Dictionary Entry and Cache Query for that. I can provide an example if needed.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 07:57:25 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Filtering-Export-Policies-by-Volume-and-Qtree/m-p/143021#M26141</guid>
      <dc:creator>moep</dc:creator>
      <dc:date>2018-09-28T07:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: WFA - Filtering Export Policies by Volume and Qtree</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Filtering-Export-Policies-by-Volume-and-Qtree/m-p/143329#M26191</link>
      <description>&lt;P&gt;Yes it's mostly at the qtree level, but its not uncommon to see it at the volume level as well. I'd really appreciate looking at your example.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Oct 2018 11:43:28 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Filtering-Export-Policies-by-Volume-and-Qtree/m-p/143329#M26191</guid>
      <dc:creator>lil_baby_james</dc:creator>
      <dc:date>2018-10-08T11:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: WFA - Filtering Export Policies by Volume and Qtree</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Filtering-Export-Policies-by-Volume-and-Qtree/m-p/143332#M26193</link>
      <description>&lt;P&gt;Here is my Finder Query.&lt;/P&gt;
&lt;PRE&gt;SELECT
    export_policy.name,
    vserver.name AS 'vserver.name',
    cluster.primary_address AS 'vserver.cluster.primary_address' 
FROM
    cm_storage.export_policy,
    cm_storage.volume,
    cm_storage.qtree_custom,
    cm_storage.vserver,
    cm_storage.cluster 
WHERE
    export_policy.id = qtree_custom.export_policy_id     
    AND qtree_custom.volume_id = volume.id     
    AND volume.name = '${vol_name}'     
    AND volume.vserver_id = vserver.id     
    AND qtree_custom.name = '${qtree_name}'     
    AND vserver.name = '${vserver_name}'     
    AND vserver.cluster_id = cluster.id     
    AND (
        cluster.name = '${cluster_name}'         
        OR cluster.primary_address = '${cluster_name}'     
    )&lt;/PRE&gt;
&lt;P&gt;I attached the Dictionary entry and Cache Query from my WFA 4.2. I called it "Qtree_Custom".&lt;/P&gt;</description>
      <pubDate>Mon, 08 Oct 2018 11:57:45 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Filtering-Export-Policies-by-Volume-and-Qtree/m-p/143332#M26193</guid>
      <dc:creator>moep</dc:creator>
      <dc:date>2018-10-08T11:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: WFA - Filtering Export Policies by Volume and Qtree</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Filtering-Export-Policies-by-Volume-and-Qtree/m-p/143468#M26208</link>
      <description>&lt;P&gt;Very helpful, I appreciate it.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2018 11:30:37 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Filtering-Export-Policies-by-Volume-and-Qtree/m-p/143468#M26208</guid>
      <dc:creator>lil_baby_james</dc:creator>
      <dc:date>2018-10-10T11:30:37Z</dc:date>
    </item>
  </channel>
</rss>

