Scanning
Scan a database to get a physical data model (PDM)
It scans a database and transforms its metadata to a declarative definition of the physical data model (PDM). The result of the request contains the mentioned physical data model (PDM) of a database within warning, for example, about unsupported columns.
post/api/v1/actions/dataSources/{dataSourceId}/scan
Request
- Base URLhttps://www.gooddata.ai
- Authnone declared
Path parameters
dataSourceIdstring required
Data source id
Request body
Example request
{
"scanTables": true,
"scanViews": true,
"schemata": [
"tpch",
"demo"
],
"separator": "__",
"tablePrefix": "out_table",
"viewPrefix": "out_view"
}Response
The result of the scan.
Example response
{
"pdm": {
"tables": [
{
"columns": [
{
"dataType": "INT",
"defaultLabelOf": "gender",
"description": "Customer unique identifier",
"name": "customer_id",
"referencedTableColumn": "customer_id",
"referencedTableId": "customers"
}
],
"id": "customers",
"namePrefix": "out_gooddata",
"path": [
"table_schema",
"table_name"
],
"type": "TABLE"
}
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.