You can create an access token for yourself in the Command Center to execute REST APIs. While creating an access token you must provide a display name, expiry date, and scope for the access token.
Important
-
An access token functions like a password. You must save it for your records and not share it with anybody.
-
If you lose an access token, it cannot be retrieved.
After creating an access token, you can use it in your API requests as a Bearer Token.
Procedure
-
From the navigation pane, go to Manage > Security.
The Security page appears.
-
Click the Users tile.
The Users page appears.
-
In the User name column, click your user name.
The user page appears.
-
On the Access tokens tab, click Add token.
The Add token dialog box appears.
-
Enter the name, expiry date and scope for the token.
By default, an access token expires after 2 minutes and the scope is set to include all api.commvault.com endpoints.
-
To set a different scope, in the Scope list, select Custom and enter specific endpoints (for example, /Subclient).
Note
To list multiple endpoints, enter each endpoint on a new line.
-
-
Click SUBMIT.
A token appears.
-
Copy and save the token for your future reference.