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

  • Gen 7 NSM-Firewall Licensing Changes – Effective May 1, 2025
    Read More
  • How to fix error "A required disk image was missing" while deploying NSM On-Prem 3.2 OVA file on ESXi?
    Read More
  • How to Deploy NSM On-Premise 3.2.0 on VMWare
    Read More
not finding your answers?