Active IQ Unified Manager Discussions
Active IQ Unified Manager Discussions
Reading the documentation this query should work
https://<AIQUM>/api/datacenter/storage/volumes?state=online&fields=name
it returns
error | |
message | "Unable to parse filter parameter attribute : fields" |
target | "fields" |
code | null |
curl has the same result (as I expected, but hopped differently)
/api/datacenter/storage/volumes?state=online&fields=name" -H "accept....
{"error":{"message":"Unable to parse filter parameter attribute : fields","target":"fields","code":null}}
Just using
https://<AQIUM>/api/datacenter/storage/volumes?fields=name
fails the same way
It appears to me that the docs shows that as valid syntax
What am I missing?
Version: 9.7P1
Solved! See The Solution
Hi @AllenTR
What example / documentation are you referring too?
I am not sure what "field" is suppose to be referencing, so any link back to relevant documentation that might be causing this confusion would be helpful.
If you take a look at the API guide, https://library.netapp.com/ecmdocs/ECMLP2876865/html/index.html#/datacenter/volume_collection_get you can see what parameters are included with that particular GET call.
Hi @AllenTR
What example / documentation are you referring too?
I am not sure what "field" is suppose to be referencing, so any link back to relevant documentation that might be causing this confusion would be helpful.
If you take a look at the API guide, https://library.netapp.com/ecmdocs/ECMLP2876865/html/index.html#/datacenter/volume_collection_get you can see what parameters are included with that particular GET call.
Sorry I should have left a better example. After looking at it again I may have been mixing my search hits with ONTAP REST and AIQUM REST
https://docs.netapp.com/us-en/ontap-automation/pdfs/sidebar/REST_implementation_details.pdf
It looks to be an option in ONTAP but not AIQUM.
Allen
No worries @AllenTR glad to hear the confusion has been cleared up.
Hi,
Looking in the AIQUM swagger UI at the /datacenter/storage/volumes API, there is no parameter called "fields" (that's why it's throwing an error). The API works fine without it. EG
https://<hostname>/api/datacenter/storage/volumes?state=online
I'm assuming you only want to return the names of the online volumes? Why not just parse the volume names from the JSON output?
/Matt