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"
and here's the snippet of code provided:
with HostConnection("<mgmt-ip>", username="admin", password="password", verify=False):
resource = FileInfo("cb6b1b39-8d21-11e9-b926-05056aca658", path="d1/d2/d3/f1")
resource.get(return_metadata=True)
print(resource)
Now if I run that using a real volume UUID and path, I get:
netapp_ontap.error.NetAppRestError: Caused by HTTPError('400 Client Error: Bad Request for url: https://abc123-mgmt:443/api/storage/volumes/60c2a6c2-25f2-11eb-87c4-000c29e6051b/files/test_1?return_metadata=True'): Unexpected argument "return_metadata".
and sure enough, if I try and put that URL into a browser (after passing in credentials):
message |
"Unexpected argument \"return_metadata\"." |
So am I doing something wrong, are the docs wrong?
thx,
--rdp