permalink | sidebar | keywords | summary |
---|---|---|---|
sm-settings/access-management-tokens-create.html |
sidebar |
SANtricity, System Manager, E-Series, access management, create tokens |
You can create access tokens, which are used to authenticate with the REST API or Command Line Interface in place of a username and password. |
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. |
-
Select Settings › Access Management.
-
Select the Access Tokens tab.
-
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.
-
Select Create Access Token.
-
In the dialog box, select the duration for the token to be valid.
NoteAfter the token expires, the user’s authentication attempts will fail. -
Click Create.
-
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.
NoteBe sure to save the token text. This is your only opportunity to see the text before closing the dialog.
-
-
Click Close.
-
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
NoteThe CLI prompts the user for an access token value on the command line if no username, password, or token is specified.
-
-