<?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 Getting volume owner from DFM in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Getting-volume-owner-from-DFM/m-p/53792#M947</link>
    <description>&lt;P&gt;Dear community,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have defined the field "owner" on the DFM web interface on each volumes. We want to use this field to specify "customer name" for another internal system.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to get this information through the Perl API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I get all Volumes informations with "volume-list-info-iter-next" but I can't see any entry for the owner.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is another way to get the owner field through API ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is another another field that i can use for external data ? (Like comment or annotation)&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jun 2025 05:30:57 GMT</pubDate>
    <dc:creator>GUILLAUMEWYSSEN</dc:creator>
    <dc:date>2025-06-05T05:30:57Z</dc:date>
    <item>
      <title>Getting volume owner from DFM</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Getting-volume-owner-from-DFM/m-p/53792#M947</link>
      <description>&lt;P&gt;Dear community,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have defined the field "owner" on the DFM web interface on each volumes. We want to use this field to specify "customer name" for another internal system.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to get this information through the Perl API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I get all Volumes informations with "volume-list-info-iter-next" but I can't see any entry for the owner.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is another way to get the owner field through API ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is another another field that i can use for external data ? (Like comment or annotation)&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 05:30:57 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Getting-volume-owner-from-DFM/m-p/53792#M947</guid>
      <dc:creator>GUILLAUMEWYSSEN</dc:creator>
      <dc:date>2025-06-05T05:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Getting volume owner from DFM</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Getting-volume-owner-from-DFM/m-p/53797#M948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Assuming DFM 3.7.1 through 5.2 and 7mode controllers(per the SDK), the API can pull comment information, here is the basic outline to pull the information.&amp;nbsp; &lt;/P&gt;&lt;P&gt;On all of my DFM instances the ownerName field is object ID 2 but you can specify ownerName, your ID may differ. &lt;/P&gt;&lt;P&gt;The comment-field-object-type for a volume is Volume, a qtree would be Qtree.&lt;/P&gt;&lt;P&gt;Object-name-or-id is the DFM volume syntax of &amp;lt;CONTROLLER&amp;gt;:/&amp;lt;VOLUME&amp;gt; or the volume ID in DFM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have not done any iterating through volumes, but hopefully this can get you started.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;require 5.6.1;&lt;/P&gt;&lt;P&gt;use lib '&amp;lt;path_to_nmsdk_root&amp;gt;/lib/perl/NetApp';&lt;/P&gt;&lt;P&gt;use strict;&lt;/P&gt;&lt;P&gt;use warnings;&lt;/P&gt;&lt;P&gt;use NaServer;&lt;/P&gt;&lt;P&gt;use NaElement;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my $s = new NaServer('&amp;lt;server&amp;gt;', 1 , 0);&lt;/P&gt;&lt;P&gt;$s-&amp;gt;set_server_type('DFM');&lt;/P&gt;&lt;P&gt;$s-&amp;gt;set_transport_type('HTTPS');&lt;/P&gt;&lt;P&gt;$s-&amp;gt;set_port(8488);&lt;/P&gt;&lt;P&gt;$s-&amp;gt;set_style('LOGIN');&lt;/P&gt;&lt;P&gt;$s-&amp;gt;set_admin_user('&amp;lt;user&amp;gt;', '&amp;lt;password&amp;gt;');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my $api = new NaElement('comment-field-values-list-info-iter-start');&lt;/P&gt;&lt;P&gt;$api-&amp;gt;child_add_string('comment-field-name-or-id','ownerName');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my $xi = new NaElement('comment-field-object-types');&lt;/P&gt;&lt;P&gt;$api-&amp;gt;child_add($xi);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$xi-&amp;gt;child_add_string('comment-field-object-type','Volume');&lt;/P&gt;&lt;P&gt;$api-&amp;gt;child_add_string('object-name-or-id','&amp;lt;volume Name or ID&amp;gt;');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my $xo = $s-&amp;gt;invoke_elem($api);&lt;/P&gt;&lt;P&gt;if ($xo-&amp;gt;results_status() eq 'failed') {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print 'Error:\n';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print $xo-&amp;gt;sprintf();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit 1;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;print 'Received:\n';&lt;/P&gt;&lt;P&gt;print $xo-&amp;gt;sprintf();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2014 14:17:02 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Getting-volume-owner-from-DFM/m-p/53797#M948</guid>
      <dc:creator>cscott</dc:creator>
      <dc:date>2014-08-08T14:17:02Z</dc:date>
    </item>
  </channel>
</rss>

