Use this API to list the tables in a GitLab database and retrieve the database dictionary entry for a single table.
Retrieving the entry for a single table requires administrator access to the instance.
Retrieve dictionary details
GET /api/v4/admin/databases/{database_name}/dictionary/tables/{table_name}
Parameters
| Name | Type | Description |
|---|---|---|
database_Path, | String | The database name Allowed values: main,ciMinimum length: 1 |
table_Path, | String | The table name |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
401 | 401 Unauthorized | — |
403 | 403 Forbidden | — |
404 | 404 Not found | — |
List dictionary tables
GET /api/v4/databases/{database_name}/dictionary/tables
Returns database dictionary tables filtered by database and optional table size
Parameters
| Name | Type | Description |
|---|---|---|
database_Path, | String | The database name Allowed values: main,ci,secMinimum length: 1 |
table_Query | String | Filter by table size classification Allowed values: small,medium,large,over_ |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
401 | 401 Unauthorized | — |
403 | 403 Forbidden | — |
404 | Not Found | — |
Schemas
Objects returned by the operations above and objects nested in their request bodies.
APIEntitiesDictionaryTable
| Property | Type | Description |
|---|---|---|
feature_ | Array of strings | Example:["database"] |
table_ | String | Example:users |
table_ | String | Example:small |