NSM On-Prem: How to get bearer token for API use

Description

When using API tools to work with NSM On-Prem, authentication uses bearer token. NSM's bearer token can be obtained with following steps:

1. log into NSM, click on Global Default Tenants and select All Tenants:

Image


2. Enable Developer Tools (example in Chrome Browser):

Image


3. Once Developer Tools shows, click refresh page button (see red arrow), you will find Cookie like:

Cookie:
AUTH_ID=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc1RGQSI6ZmFsc2UsImlzVEZBQ29tcGxldGVkIjpmYWxzZSwic2Vzc2lvbklEIjoiMjEyMzJmMjk3YTU3YTVhNzQzODk0YTBlNGE4MDFmYzMtMTQwNzE0NjA3MTM5NzU3NjIxMyIsImV4cCI6MTY4Mzk0Njg0Mn0.FysyI9_MesOAkKGsi4ZtlEQ7yqUHHtGWRuFkKeHgZXo

This part is the bearer token (behind AUTH_ID=):

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc1RGQSI6ZmFsc2UsImlzVEZBQ29tcGxldGVkIjpmYWxzZSwic2Vzc2lvbklEIjoiMjEyMzJmMjk3YTU3YTVhNzQzODk0YTBlNGE4MDFmYzMtMTQwNzE0NjA3MTM5NzU3NjIxMyIsImV4cCI6MTY4Mzk0Njg0Mn0.FysyI9_MesOAkKGsi4ZtlEQ7yqUHHtGWRuFkKeHgZXo

Image

Related Articles

  • Analytics On-Prem vs NSM Feature Matrix
    Read More
  • Analytics On-Prem End of Life and NSM Transition FAQ
    Read More
  • NSM On-Prem: Backups over SCP to Windows OpenSSH Server
    Read More
not finding your answers?