Hello,
I'm trying to use the Rest API to get user/group information for a qtree. According to the docs for FileInfo:
"The metadata and detailed information about a single directory or file can be retrieved by setting the return_metadata query property to true"
</code></p><p>and here's the snippet of code provided:<code>
<span class="hljs-keyword">with</span> HostConnection(<span class="hljs-string">"<mgmt-ip>"</span>, username=<span class="hljs-string">"admin"</span>, password=<span class="hljs-string">"password"</span>, verify=<span class="hljs-keyword">False</span>):
resource = FileInfo(<span class="hljs-string">"cb6b1b39-8d21-11e9-b926-05056aca658"</span>, path=<span class="hljs-string">"d1/d2/d3/f1"</span>)
resource.get(return_metadata=<span class="hljs-keyword">True</span>)
print(resource)</code>Now if I run that using a real volume UUID and path, I get:</p><p>netapp_ontap.error.NetAppRestError: Caused by HTTPError('400 Client Error: Bad Request for url: <a href="https://abc123-mgmt:443/api/storage/volumes/60c2a6c2-25f2-11eb-87c4-000c29e6051b/files/test_1?return_metadata=True" target="_blank" rel="nofollow noopener noreferrer">https://abc123-mgmt:443/api/storage/volumes/60c2a6c2-25f2-11eb-87c4-000c29e6051b/files/test_1?return_metadata=True</a>'): Unexpected argument "return_metadata".</p><p>and sure enough, if I try and put that URL into a browser (after passing in credentials):</p><table class="treeTable" tabindex="0" role="tree" cellspacing="0" cellpadding="0" aria-label="" aria-activedescendant="/error/message"><tbody tabindex="-1" role="presentation"><tr id="/error/message" class="treeRow stringRow opened selected" role="treeitem" aria-level="2" aria-selected="true"><td class="treeLabelCell" style="--tree-label-cell-indent: 16px;"><span class="treeLabel stringLabel" aria-labelledby="default" data-level="1">message</span></td><td class="treeValueCell stringCell"><span aria-labelledby="value"><span class="objectBox objectBox-string">"Unexpected argument \"return_metadata\"."</span></span></td></tr></tbody></table><p><code>
So am I doing something wrong, are the docs wrong?
</code></p><p>thx,</p><p>--rdp<code>