Skip to main content
SANtricity 11.7
A newer release of this product is available.

Create access tokens

Contributors

You can create an access token to authenticate with the REST API or command line interface (CLI) in place of a username and password.

Note Tokens do not have passwords, so you must manage them carefully.
Steps
  1. Select Settings  Access Management.

  2. Select the Access Tokens tab.

  3. Select View/Edit Access Token Settings. In the dialog box, make sure that the Enable access tokens checkbox is selected. Click Save to close out the dialog box.

  4. Select Create Access Token.

  5. In the dialog box, select the duration for the token to be valid.

    Note After the token expires, the user's authentication attempts will fail.
  6. Click Create.

  7. In the dialog box, select one of the following:

    • Copy to save the token text to the clipboard.

    • Download to save the token text to a file.

      Note Be sure to save the token text. This is your only opportunity to see the text before closing the dialog.
  8. Click Close.

  9. Use the token as follows:

    • Rest API: To use a token in a REST API request, add an HTTP header to your requests. For example: Authorization: Bearer <access-token-value>

    • Secure CLI: To use a token in the CLI, add the token value on the command line or use the path to a file containing the token value. For example:

      • Token value on the command line: -t access-token-value

      • Path to a file containing the token value: -T access-token-file

        Note The CLI prompts the user for an access token value on the command line if no username, password, or token is specified.