VMware Networking Community
3back
Enthusiast
Enthusiast

https://NSX-ManagerIP/api/4.0/firewall/globalroot-0/config doesn't work

I need to recover the VC because of the DFW issue. But display the below.

Capture12.JPG

The NSX manager version is: 6.3.5

2 Replies
lmoglie
Enthusiast
Enthusiast

Hi 3back

you should use an Rest API client then provide a correct Authentication after that you can get the /api/4.0/firewall/globalroot-0/config.

Regards

LM

mdac
Enthusiast
Enthusiast

Yep, I'd agree with lmoglie - a 403 forbidden response with "Auth header not present" indicates that the API call was run without specifying the NSX manager username and password.

It looks like you are just visiting that URL in your browser. You should use a proper REST client for this purpose to provide the required authentication header etc. Have a look at postman or the Firefox REST client. For Linux, you can use 'curl' as well.

You can find out more about the NSX REST API in the APU guide (page 26):

https://docs.vmware.com/en/VMware-NSX-for-vSphere/6.2/nsx_62_api.pdf

Regards,

Mike

My blog: https://vswitchzero.com Follow me on Twitter: @vswitchzero