#activeIQ unified manager RestAPI issue

1 messages · Page 1 of 1 (latest)

vague lagoon
#

Hi All ,

We have activeiq unified manager named test_activeiq and multiple clusters one of the cluster UUID is uuid-123

Now when I’m running command as below -
Curl -k -X GET “https://test_activeiq:443/api/v2/datacentr/svm/svms” -H “accept:application/json” -H “Authorization:Basic avabababa=“

I get output for all svms for all Netapp cluster but when I take UUID of cluster and do

Curl -k -X GET “https://test_activeiq:443/api/v2/datacentr/svm/svms/cluster_UUID” -H “accept:application/json” -H “Authorization:Basic avabababa=“

I get error Http/1.1 400 bad request or some other 40X range error

How can I solve this

silk cargo
#

Swagger is your friend. 🙂 https://<aiqum>/docs/api/

vague lagoon
#

For svm result was blank

#

No idea why for svms curl is not fetching output

silk cargo
#

Well, I just tried it myself and it worked. Things I woiuld check.

#
  1. Check the uuid to make sure it's correct. uuid-123 is not a valid format for a uuid, should be XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX something.
#
  1. See if things work if you use Try and Execute through swagger instead of curl.
#
  1. Check what version of aiqum you're running.
vague lagoon
vague lagoon
#

In swagger it’s giving me completely different curl command

silk cargo
#

I'm sorry to say but I'm not seeing anything wrong with the call. I'm doing this and I works for me.

#

curl -X GET "https://<AIQUM>/api/datacenter/svm/svms?cluster.uuid=<CLUSTER_UUID>" -H "accept: application/json" -H "authorization: Basic <BASE64_ENCODE>" --insecure

#

If all other calls except this one works then I would ensure that you're on a recent version of AIQUM so that you're not encountering a bug or something. I can look into this a bit more tomorrow, it's around 11:30PM over here. 🙂

vague lagoon
#

Thank you have a good night

vague lagoon
silk cargo
#

Hi! Sorry for the late response. Yes, I did have a look at this last week I really only have two suggestions. 1) Doublecheck the uuid! What you're seeing typically means that the uuid specified doesn't exist (at least not in UM). You can make sure that you're using a valid uuid by running this call https://<AIQUM>/api/datacenter/cluster/clusters?name=<cluster_name>. Uuid will be mentioned in the output. 2) If you're sure that the uuid is correct then you should probably open up a technical case with NetApp to have it investigated. Like I said, my lab (currently only running AIQUM 9.14RC1) works as expected.

vague lagoon
#

Aah thank you yes UUID is correct as it’s fetching for aggregate but not for svms

vague lagoon
vague lagoon