Active IQ Unified Manager Discussions

AIQUM REST "Unable to parse filter parameter attribute : fields"

AllenTR
2,557 Views

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"
codenull

 

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

 

1 ACCEPTED SOLUTION

RossC
2,446 Views

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. 

 

 

 

 

View solution in original post

4 REPLIES 4

RossC
2,447 Views

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. 

 

 

 

 

AllenTR
2,426 Views

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

 

 

RossC
2,404 Views

No worries @AllenTR  glad to hear the confusion has been cleared up. 

mbeattie
2,431 Views

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

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.
Public