SANtricity 11 Manuals (CA08872-010)

to Japanese version

Create access tokens

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

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.

    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.

      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

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