Manage access tokens and permissions
Agent Data Gateway assigns an independent identity to each AI agent by using access tokens. This topic describes how to create and manage access tokens and how to view the permissions of the current user.
Limits
Your account has been granted access to Agent Data Gateway through the invitational preview.
Overview
On the Agent Identity page, you can perform the following operations:
Quick Start: Apply for and configure an access token in a single CLI command. For more information, see Quick guide for Agent Gateway access.
Token Management: Manually create and manage access tokens. This is applicable to scenarios in which you want to distribute independent credentials for multiple environments or team members, or use fine-grained authorization.
On the My Permissions page, you can view the resource access permissions granted to the current user.
User roles
Agent Data Gateway provides the administrator and regular user roles. The roles are obtained in the following ways:
Users who have been granted the AliyunDMSFullAccess policy in RAM are automatically assigned the administrator role when they access Agent Data Gateway for the first time. Other users are assigned the regular user role by default.
If a user is granted the AliyunDMSFullAccess policy in RAM afterwards, the user can set themselves as an administrator in the user information area in the lower-left corner of the Agent Data Gateway console page.
Get started with Agent Data Gateway
Log on to the AI-Native Database Service console.
In the left-side navigation pane, click Agent Data Gateway to go to the Agent Gateway console.
In the left-side navigation pane of the console, click Agent Identity.
After you complete the quick start process, in the Select Usage Method section on the Quick Start tab, you can obtain the commands for using Agent Data Gateway by using a skill or the CLI. You can copy and run the commands in your IDE or terminal.
Skill: Call Agent Data Gateway by using a skill in an AI IDE such as Cursor or Qoder. Run the
dms skills installcommand in the terminal to install the skill. Then, you can use natural language to query data.CLI: Use the CLI to call Agent Data Gateway.
Create an access token
To assign independent credentials to different agents or environments, manually create access tokens.
On the Agent Identity page, click the Token Management tab.
Click Create Access Token.
Specify the Name, Expiration Time, Permission Mode, and Description of the token as prompted, and then click Submit.
After the token is created, it is displayed in the Secret section of the page. Copy and save the token in a secure location.
ImportantMake sure that you copy and save the token before you close the page. After the page is closed, you cannot view the full token again.
Manage access tokens
The token list on the Token Management tab displays the following information:
Column | Description |
Name | The name of the access token. |
Permission Mode | The permission configuration mode of the token. |
Token | The token value. The value is masked. |
Creator | The user who created the token. |
Expiration Time | The date and time when the token expires. |
Status | The current status of the token. |
You can perform the following operations on access tokens:
Filter tokens: Click Created by Me to view the tokens that you created, or click All to view all tokens.
Search for tokens: Enter a keyword in the search box to search by name, or click Filter to apply filter conditions.
View details: Click the
icon in the Actions column of the target token to view the token details.Disable a token: Click the
icon in the Actions column of the target token. In the dialog box that appears, enter a reason for disabling the token (optional), and then click OK.ImportantAfter a token is disabled, it cannot be re-enabled. Proceed with caution.
View user permissions
Log on to the AI-Native Database Service console.
In the left-side navigation pane, click Agent Data Gateway to go to the Agent Gateway console.
In the left-side navigation pane of the console, click My Permissions to view the resource access permission records that are granted to the current user.
The permission records list contains the following information:
Column | Description |
Resource Type | The type of the authorized resource. |
Resource Name | The name of the authorized resource. |
Permission Type | The type of the granted permission. |
Validity Period | The validity period of the permission. |
Created At | The time when the permission record was created. |