NSX Service account password rotation is failing when using API via Browser - "Read timed out"
search cancel

NSX Service account password rotation is failing when using API via Browser - "Read timed out"

book

Article ID: 397665

calendar_today

Updated On:

Products

VMware SDDC Manager VMware NSX

Issue/Introduction

NSX Service account password rotation is failing when using API via Browser

attempting to access the Compute Manager API by directly entering the following URL in the browser:
https://<NSX_HostName>/api/v1/fabric/compute-managers/########-####-####-####-############

Error will show as

I/O error on PUT request for "https:///api/v1/fabric/compute-managers/########-####-####-####-############": Read timed out

From inventory side, PUT request for "https:///api/v1/fabric/compute-managers/########-####-####-####-############" is executed without any issue:

Environment

VMware SDDC Manager

VMware NSX

Cause

Attempting to access the Compute Manager API by directly entering the following URL in the browser:

https:///api/v1/fabric/compute-managers/########-####-####-####-###########

This basically triggers a GET request. However, the Compute Manager API does not prompt for authentication (username and password) when accessed directly through a browser.

Any NSX public API requires authentication credentials (username and password) to be provided with the request.

When accessing the URL directly via a browser, these credentials are not included, leading to an authentication failure.

Resolution

Use an appropriate REST client tool (such as Postman, curl, or an API client browser extension) to send the API request where you can input the credentials.