Token Setup in XRay 1.6 has moved from its location in previous versions. You can access token setup in the following ways:
- From Admin Settings:
> Admin Settings > Tokens > Streaming
or> Admin Settings > Tokens > Access
or> Admin Settings > Tokens > Repositories; click the Setup icon
in the Streaming Tokens column.
- From User Settings:
> User Settings > Personal Tokens
Streaming Tokens (Admin Settings)
Users who are not admins can see the streaming tokens for the repository they are in by selecting > About and looking for the Stream Access Tokens line.
An administrator defines and configures streaming tokens for the following scenarios and shares these tokens with all team members as required:
- Streaming data to XRay
- Streaming AutoPilot data to XRay
To set up a streaming token:
- Click Create.
- (Optional.) Enter a Token prefix to identify the type of token, if needed.
- Select the Repository to which the token provides access.
- Indicate which types of objects you want to stream. By default, all objects are streamed (the Select all checkbox is selected). You can clear the checkbox to choose individual items, one at a time. Options are Activity, Dataset, Event, and Snapshot. (To remove a selection, click the X provided for that object.)
- (Optional.) To set up the token to expire, use the Expire Time field to select a specific date and time.
- Update the Token Quotas as needed. See Token Quotas fields below for details.
- Click Create.
Token Quotas fields
When you set organization or repository quotas, the values you set must not exceed the values specified the max limits defined by your license.
Name |
Description |
Max requests | Limit on requests for a single personal access token. After this number, requests made with this token are rejected. However, you can continue by resetting the quota value on the token. |
Rate Limit (bytes) | Controls the rate at which your data is processed. This is a limit on the number of bytes per second. |
Retention (days) |
Length of time (in seconds) that streamed data is retained in a repository. 5184000 seconds = 60 days 604,800 seconds = 7 days |
Overage Policy |
Defines what takes place when the Rate Limit quotas have been exceeded. THROTTLE – the connection is throttled so that the processing rate on the connection is the minimum of Rate Limit Bytes and Rate Limit Count. |
From the list of streaming tokens, you can view the quotas for a particular token in the list by clicking the View quotas icon: in the Quotas column.
Access Tokens (Admin Settings or User Settings)
All tokens except streaming tokens can be used for the REST API.
Users define and generate their own access tokens, or personal tokens, for the following scenarios:
- For yourself:
- Generate a token to be able to import data into a repository
- For others:
- Give someone else the right to stream data to your repository. This might be a 3rd party that you want to collect data from. Once they have provided the required data, you can set an Expire Time or remove the token to discontinue streaming access.
To set up an access token:
- Click Create.
- (Optional.) Enter a Token prefix to identify the type of token, if needed.
- Select the Repositories to which the token provides access. You can choose individual repositories, one at a time. (To remove a selection, click the X provided for that repository.)
- (Optional.) To set up the token to expire, use the Expire Time field to select a specific date and time.
- Update the Token Options as needed. By default, all objects are selected (the Select all checkbox is selected). You can clear the checkbox to choose individual items, one at a time. See Token Options below for a list of objects.
- Query (for getting data). Allows a user to access the repository data (for example, from the mobile application)
- Modify Allows users to modify non-administrative data in the repository. This includes the ability to both add and update items.
- Delete Allows users to delete non-administrative data in the repository
- Admin allows users to manipulate administrative data only (that is, the following items): Users, Organizations, Teams, Repositories, and Tokens (listed as "AccessTokens").
- Execute allows users to use Invoke commands (to invoke scripts, actions, or external actions).
- Click Create.
Token Options
Items marked with asterisks below are administrative items. These are controlled by the Admin token option.
Source Geolocation Address Server Process AppServer Application SourceUser Runtime VirtualSource Network Device DataCenter GenericSource Event Activity Resource Set Snapshot Dictionary Relative Variable Topic IpLocation Enumeration Item Value Field User* Organization* |
Team* Repository* AccessToken* Word Job Log DATASTORE Provider Action Trigger InputDataRules BayesSourceFields Parameter Keyword Function ProviderType Query Dataset Script Policy PolicyManager Sensor SensorFact MLModel License QuotaUsage View ViewTemplate Volume Feature |
Edit a token
- Click the edit
icon for the token.
- Make your changes.
- Click Save.
Clone a token
To create a new token based on an existing token, use the clone function.
- Click the clone icon
for the token you want to copy. By default the name of the new token is the name of the cloned token followed by "Copy."
- Enter a new name for the new token.
- Make any other desired changes.
- Click Create..
Delete a token
- Click the delete
icon for the token you want to remove.
- Click Yes at the confirmation message. The token is removed.