<?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 'Missing input: volume' was returned when invoke 'volume-size' in clustered sdk api in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Missing-input-volume-was-returned-when-invoke-volume-size-in-clustered-sdk-api/m-p/126583#M2196</link>
    <description>&lt;P&gt;Hi dear,&lt;/P&gt;&lt;P&gt;When i invoke the 'volume-size' api in clustered&lt;FONT color="#FF0000"&gt; perl&lt;/FONT&gt; sdk(5.2.2), it always returns 'Missing input: volume'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The script line is below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;my $in=NaElement-&amp;gt;new("volume-size","volume","$volumename","new-size","$newsize");&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;$out=$s-&amp;gt;invoke_elem($in);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;The $out-&amp;gt;results_status() is 'failed' and results_reason() is 'Missing input: volume'.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to use the real volume name instead of "$volumename" but not fixed, it still return the same result. (in fact i can print the $volumename).&lt;/P&gt;&lt;P&gt;by the way, the $s is a vserver context.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone can help? Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=========Update=========&lt;/P&gt;&lt;P&gt;well, it works when i use the child_add_string as below. I don't know why. &amp;nbsp;It didn't need to use child_add_string in my 7mode script.&lt;/P&gt;&lt;P&gt;my $in=NaElement-&amp;gt;new('volume-size');&lt;/P&gt;&lt;P&gt;$in-&amp;gt;child_add_string('volume',"$volumename");&lt;/P&gt;&lt;P&gt;$in-&amp;gt;child_add_string("new-size","$newsize");&lt;/P&gt;&lt;P&gt;$out=$s-&amp;gt;invoke_elem($in);&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 16:11:44 GMT</pubDate>
    <dc:creator>wolfohyeah</dc:creator>
    <dc:date>2025-06-04T16:11:44Z</dc:date>
    <item>
      <title>'Missing input: volume' was returned when invoke 'volume-size' in clustered sdk api</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Missing-input-volume-was-returned-when-invoke-volume-size-in-clustered-sdk-api/m-p/126583#M2196</link>
      <description>&lt;P&gt;Hi dear,&lt;/P&gt;&lt;P&gt;When i invoke the 'volume-size' api in clustered&lt;FONT color="#FF0000"&gt; perl&lt;/FONT&gt; sdk(5.2.2), it always returns 'Missing input: volume'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The script line is below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;my $in=NaElement-&amp;gt;new("volume-size","volume","$volumename","new-size","$newsize");&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;$out=$s-&amp;gt;invoke_elem($in);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;The $out-&amp;gt;results_status() is 'failed' and results_reason() is 'Missing input: volume'.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to use the real volume name instead of "$volumename" but not fixed, it still return the same result. (in fact i can print the $volumename).&lt;/P&gt;&lt;P&gt;by the way, the $s is a vserver context.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone can help? Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=========Update=========&lt;/P&gt;&lt;P&gt;well, it works when i use the child_add_string as below. I don't know why. &amp;nbsp;It didn't need to use child_add_string in my 7mode script.&lt;/P&gt;&lt;P&gt;my $in=NaElement-&amp;gt;new('volume-size');&lt;/P&gt;&lt;P&gt;$in-&amp;gt;child_add_string('volume',"$volumename");&lt;/P&gt;&lt;P&gt;$in-&amp;gt;child_add_string("new-size","$newsize");&lt;/P&gt;&lt;P&gt;$out=$s-&amp;gt;invoke_elem($in);&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 16:11:44 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Missing-input-volume-was-returned-when-invoke-volume-size-in-clustered-sdk-api/m-p/126583#M2196</guid>
      <dc:creator>wolfohyeah</dc:creator>
      <dc:date>2025-06-04T16:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: 'Missing input: volume' was returned when invoke 'volume-size' in clustered sdk api</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Missing-input-volume-was-returned-when-invoke-volume-size-in-clustered-sdk-api/m-p/126624#M2202</link>
      <description>&lt;P&gt;I think this may be because you're using NaElement and passing more than one element name/value pair into it. &amp;nbsp;You can do that when issuing the "invoke" call against an NaServer object, but not an NaElement object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These two should be functionally equivalent (warning, I haven't actually tested this code...):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;# create the action NaElement
my $in = NaElement-&amp;gt;new('volume-size');

# add parameters
$in-&amp;gt;child_add_string('volume', $volumename);
$in-&amp;gt;child_add_string('new-size', $newsize);

# execute
$out = $s-&amp;gt;invoke_elem($in);&lt;/PRE&gt;&lt;PRE&gt;# all at once...
$out = $s-&amp;gt;invoke('volume-size', 'volume', $volumename, 'new-size', $newsize);&lt;/PRE&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jan 2017 18:13:05 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Missing-input-volume-was-returned-when-invoke-volume-size-in-clustered-sdk-api/m-p/126624#M2202</guid>
      <dc:creator>asulliva</dc:creator>
      <dc:date>2017-01-02T18:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: 'Missing input: volume' was returned when invoke 'volume-size' in clustered sdk api</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Missing-input-volume-was-returned-when-invoke-volume-size-in-clustered-sdk-api/m-p/126629#M2203</link>
      <description>&lt;P&gt;Hi Andrew,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;'&lt;SPAN&gt;You can do that when issuing the "invoke" call against an NaServer object, but not an NaElement object.' Is this only limit in clustered api? If yes, you really answer my question. I asked this question because it works in 7mode api when i run invoke_elem all at one.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;my 7mode script:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#not using child_add_string and works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;my $in=NaElemt-&amp;gt;new("quota-report-iter-start","path","/vol/vol4/home");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#here $s is NaServer object.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;$out=$s-&amp;gt;invoke_elem($in); &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Anyway, it work for me by using child_add_string and child_add. Thanks for your answer. I will quote this topic as 'resolve' if no other one reply this topic in one week.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2017 05:47:41 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Missing-input-volume-was-returned-when-invoke-volume-size-in-clustered-sdk-api/m-p/126629#M2203</guid>
      <dc:creator>wolfohyeah</dc:creator>
      <dc:date>2017-01-03T05:47:41Z</dc:date>
    </item>
  </channel>
</rss>

