VMware Networking Community
TarunGuptaAccen
Enthusiast
Enthusiast
Jump to solution

NSX API super_user accesss forbidden

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
Marcin4
Enthusiast
Enthusiast
Jump to solution

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, VCIX-DCV 7, VCIX-DTM 7.
linkedin.com/in/marcin-gwóźdź-80b84b122

View solution in original post

4 Replies
Marcin4
Enthusiast
Enthusiast
Jump to solution

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, VCIX-DCV 7, VCIX-DTM 7.
linkedin.com/in/marcin-gwóźdź-80b84b122
0 Kudos
TarunGuptaAccen
Enthusiast
Enthusiast
Jump to solution

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
Marcin4
Enthusiast
Enthusiast
Jump to solution

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, VCIX-DCV 7, VCIX-DTM 7.
linkedin.com/in/marcin-gwóźdź-80b84b122
TarunGuptaAccen
Enthusiast
Enthusiast
Jump to solution

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