HTTP error 401 via URI module

Hello Team

I do get http error 401 continously during POST operation of modifying the mgmt ip of unity storage array using URI module’s playbook.

Any one can help to share some inputs.

Thanks!
Vj

Hi, 401 means unauthorised, please check whether the credentials are valid or not, if they are valid then check what sort of authorisation is accepted by the end point, is it a basic auth or with a access token. You can use postman to perform the API call and verify everything.

Thanks,
Rajat

Hi All, Actually it was tough troubleshooting with respect to URI module, as the automation need basic auth. But URI module keeps on throwing error, but finally I fixed after multiple tweeks. Now, I should try creating a new module instead of relying of URI module everytime

Thanks !

I presume Unity uses a different API format to the VNX, and the VNX module might not be usable. But I noticed this:

https://github.com/ansible-dellemc-unity

might worth trying that.

Cheers,
Ko