General workflow for using the API

Use the following recommended workflow when accessing the NAS Bridge management API.

When you start an API session, an authentication token is generated. When the token is generated, it is automatically inserted into each API call during that session. Authentication is required whenever you issue an API call.

  1. Create an API session by providing a user name and password. Once you log in to the management API, an authentication token is automatically generated.
  2. Perform one or more additional API calls as needed to complete the desired task, supplying the necessary information for each call. The authentication token is automatically inserted into each API call.
  3. Delete the session. Once the session is deleted, the authentication token is reset, and a different token will be generated when you start a new session.
    Attention: For security reasons, it is important to delete the session after completing your API calls.