Read a custom database role
database_role_getRetrieve a custom database role’s authorization definition, including inherited roles and resource-action grants, by cluster, database, and exact role name.
Instructions
Read a custom database role
Returns the selected authorization definition, including name, database, inherited roles and resource-action grants. Use the database and name fields from database_roles_list to identify the definition; provider lookup failures are returned as errors.
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": {
"cluster": "<cluster>",
"database": "<database>",
"role": "<role>"
},
"name": "database_role_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | Exact name field from database_roles_list or database_role_get, a nonempty string of at most 128 characters within the selected database. | |
| cluster | Yes | Managed cluster name; the RBAC object is namespace/cluster. | |
| database | Yes | Exact database field from database_roles_list or database_role_get, a nonempty string of at most 128 characters that scopes the custom role. | |
| namespace | No | Namespace of the requested object; defaults to default for single-object routes and creation. On collection routes (/clusters, /operations, /events, /events/stream, /orphaned-volumes, /backup-storages and root /metrics), absence includes all authorized namespaces and a value filters to that namespace. A nonexistent explicit namespace returns 404 not_found with resource namespace and its name only when the authenticated caller has a permission in that namespace. Otherwise collections remain empty and object requests retain their normal 403 response without revealing existence. Public and unauthenticated authentication routes do not resolve the parameter. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| roles | Yes | ||
| database | Yes | ||
| privileges | Yes | ||
| operationId | No |