create_resource_token
Create new InfluxDB resource tokens with database-specific read/write permissions and optional expiry for Core/Enterprise deployments.
Instructions
Create a new InfluxDB resource token with specific database permissions (Core/Enterprise only). Example: databases=["mydb", "testdb"], actions=["read", "write"]
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"description": "<description>",
"databases": "<databases>",
"actions": "<actions>"
},
"name": "create_resource_token"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actions | Yes | Array of permissions for the databases. Example: ["read"] for read-only, ["read", "write"] for full access, or ["write"] for write-only. | |
| databases | Yes | Array of database names this token can access. Example: ["database1", "database2"]. Use exact database names from your InfluxDB instance. | |
| description | Yes | Description/name for the resource token (e.g., "My App Token") | |
| expiry_secs | No | Optional expiration time in seconds (e.g., 3600 for 1 hour, 86400 for 1 day, 604800 for 1 week). If not specified, token never expires. |