Enthusiast
Enthusiast

NSX API super_user accesss forbidden

Jump to solution

Hi Team ,

   I need your help on this . I have create a  NSX API user  named " netadmin "  which is super user ..  I can see this user in Network and security .. I am also able to login into NSX Manager GUI via this user  ..but i  when i run this API  "//api/2.0/global/heartbeat   .. i  get 403 access forbidden .. why is that .. i am able to run the same query with admin and other super user...

NSX Manager version : 6.3.2.5672532
vCenter version : Version 6.0.0 Build 9154154
This user is important as it is used to authentication data center user created in Checkpoint firewall .

pastedImage_0.png

pastedImage_21.png

Please help me on the same ..

Tarun Gupta

1 Solution

Accepted Solutions
Enthusiast
Enthusiast

Both users has the same "role" ?

Have you tried using different REST API client ? im using Postman and its working like a charm. Its a Google Chrome Extension.

Best Regards
Marcin Gwóźdź
VCP-NV 6, VCAP-DCV 7, VCAP-DTM 7.
linkedin.com/in/marcin-gwóźdź-80b84b122

View solution in original post

4 Replies
Enthusiast
Enthusiast

Isin't there too much "/" in your Get Query?

https://10.220.33.97//api/2.0/global/heartbeat

And according to NSX 6.3 API Guide

https://docs.vmware.com/en/VMware-NSX-Data-Center-for-vSphere/6.3/nsx_63_api.pdf

pastedImage_6.png

Best Regards
Marcin Gwóźdź
VCP-NV 6, VCAP-DCV 7, VCAP-DTM 7.
linkedin.com/in/marcin-gwóźdź-80b84b122
0 Kudos
Enthusiast
Enthusiast

Thanks Marcin ,

         same error .. pasting new screenshot

1.Netadmin user

2. wmlab_svc userpastedImage_0.png

pastedImage_1.png

Both "netadmin"  and "wmlab_svc" are super_users.  ..  

0 Kudos
Enthusiast
Enthusiast

Both users has the same "role" ?

Have you tried using different REST API client ? im using Postman and its working like a charm. Its a Google Chrome Extension.

Best Regards
Marcin Gwóźdź
VCP-NV 6, VCAP-DCV 7, VCAP-DTM 7.
linkedin.com/in/marcin-gwóźdź-80b84b122

View solution in original post

Enthusiast
Enthusiast

Yes , Both users had same role..  seems NSX 6.3.2 

Thanks a lot Marcin ,This actually worked . I reinstalled postman  ( restated NSX manger before that as well) and was able to run the query .


Tarun Gupta

0 Kudos