GetDataPackageTables - GET
|
Path |
/api/projects/{projectId}/metavault/sourcesystems/{sourceNameOrId}/datapackages/{dataPackageNameOrId}/tables |
|---|---|
|
Http Method |
GET |
Overview
Retrieve the list of datapackage tables in a datapackage, in a source system.
Required permissions
-
Read access to the Source module. BUILD read
Response
Success response (200 OK)
Before 7.0.0 :
JSON
{
"_embedded": {
"dataPackageTables": [
{
"_embedded": {
"columns": [
{
"id": "5ae62e588c954c1089fe54ce7e4f7b26",
"name": "mail",
"dataType": "String",
"length": 255,
"baseType": {
"isText": true,
"isBinary": false,
"type": "String",
"dataType": "String",
"length": 255,
"autoIncrement": false
},
"nullable": true,
"primaryKey": false,
"typeFullName": "VARCHAR(255)"
},
{
"id": "4850cc5b2f784254b4c3a5275e1f737a",
"name": "name",
"dataType": "String",
"length": 255,
"baseType": {
"isText": true,
"isBinary": false,
"type": "String",
"dataType": "String",
"length": 255,
"autoIncrement": false
},
"nullable": true,
"primaryKey": false,
"typeFullName": "VARCHAR(255)"
}
]
},
"id": "b27526087e1241bc9b654dee38bdfaf0",
"tableName": "ss1_dp1_employee",
"targetTableName": "ss1_dp1_employee",
"targetSchemaName": "stg",
"sourceSystemId": "e605eb83-d483-4738-a56f-f5b848f2f54d",
"dataPackageId": "d7d5c678-be2e-4ff9-b4d6-a2e6d40c37f9",
"query": "",
"queryType": "Table",
"isQueryBased": false
},
{
"_embedded": {
"columns": [
{
"id": "4708b9d354a04606863f1f0d9b293e18",
"name": "mail",
"dataType": "String",
"length": 255,
"baseType": {
"isText": true,
"isBinary": false,
"type": "String",
"dataType": "String",
"length": 255,
"autoIncrement": false
},
"nullable": true,
"primaryKey": false,
"typeFullName": "VARCHAR(255)"
},
{
"id": "a3f62bc3632d48d9a8b0b842234f896c",
"name": "team_name",
"dataType": "String",
"length": 255,
"baseType": {
"isText": true,
"isBinary": false,
"type": "String",
"dataType": "String",
"length": 255,
"autoIncrement": false
},
"nullable": true,
"primaryKey": false,
"typeFullName": "VARCHAR(255)"
}
]
},
"id": "2ff90de59dab4c41b6499ab34ff5d739",
"tableName": "ss1_dp1_employee_team",
"targetTableName": "ss1_dp1_employee_team",
"targetSchemaName": "stg",
"sourceSystemId": "e605eb83-d483-4738-a56f-f5b848f2f54d",
"dataPackageId": "d7d5c678-be2e-4ff9-b4d6-a2e6d40c37f9",
"query": "",
"queryType": "Table",
"isQueryBased": false
}
]
},
"sort": [],
"index": 0,
"limit": 10,
"expand": [],
"total": 2
}
Starting from 7.0.0 (new column/HR types definitions respect the formalism defined in Metavault API - General concepts | Column types) For specifics of data package tables, see response of: Metavault API - Create data package table:
JSON
{
"_embedded": {
"dataPackageTables": [
{
"_embedded": {
"columns": [
{
"id": "5ae62e588c954c1089fe54ce7e4f7b26",
"name": "mail",
"nullable": true,
"primaryKey": false,
"dataType": "String",
"dataTypeCustom": null,
"length": 255,
"precision": null,
"scale": null,
"typeFullName": "VARCHAR(255)",
"baseDataType": "String",
"baseDataTypeCustom": null,
"baseLength": 255,
"basePrecision": null,
"baseScale": null,
"baseTypeFullName": "VARCHAR(255)",
"hardRuleDataType": null,
"hardRuleDataTypeCustom": null,
"hardRuleLength": null,
"hardRulePrecision": null,
"hardRuleScale": null,
"hardRuleTypeFullName": null
},
{
"id": "4850cc5b2f784254b4c3a5275e1f737a",
"name": "name",
"nullable": true,
"primaryKey": false,
"dataType": "String",
"dataTypeCustom": null,
"length": 255,
"precision": null,
"scale": null,
"typeFullName": "VARCHAR(255)",
"baseDataType": "String",
"baseDataTypeCustom": null,
"baseLength": 255,
"basePrecision": null,
"baseScale": null,
"baseTypeFullName": "VARCHAR(255)",
"hardRuleDataType": null,
"hardRuleDataTypeCustom": null,
"hardRuleLength": null,
"hardRulePrecision": null,
"hardRuleScale": null,
"hardRuleTypeFullName": null
}
]
},
"id": "b27526087e1241bc9b654dee38bdfaf0",
"tableName": "ss1_dp1_employee",
"targetTableName": "ss1_dp1_employee",
"targetSchemaName": "stg",
"sourceSystemId": "e605eb83-d483-4738-a56f-f5b848f2f54d",
"dataPackageId": "d7d5c678-be2e-4ff9-b4d6-a2e6d40c37f9",
"query": "",
"queryType": "Table",
"isQueryBased": false
},
{
"_embedded": {
"columns": [
{
"id": "4708b9d354a04606863f1f0d9b293e18",
"name": "mail",
"nullable": true,
"primaryKey": false,
"dataType": "String",
"dataTypeCustom": null,
"length": 255,
"precision": null,
"scale": null,
"typeFullName": "VARCHAR(255)",
"baseDataType": "String",
"baseDataTypeCustom": null,
"baseLength": 255,
"basePrecision": null,
"baseScale": null,
"baseTypeFullName": "VARCHAR(255)",
"hardRuleDataType": null,
"hardRuleDataTypeCustom": null,
"hardRuleLength": null,
"hardRulePrecision": null,
"hardRuleScale": null,
"hardRuleTypeFullName": null
},
{
"id": "a3f62bc3632d48d9a8b0b842234f896c",
"name": "team_name",
"nullable": true,
"primaryKey": false,
"dataType": "String",
"dataTypeCustom": null,
"length": 255,
"precision": null,
"scale": null,
"typeFullName": "VARCHAR(255)",
"baseDataType": "String",
"baseDataTypeCustom": null,
"baseLength": 255,
"basePrecision": null,
"baseScale": null,
"baseTypeFullName": "VARCHAR(255)",
"hardRuleDataType": null,
"hardRuleDataTypeCustom": null,
"hardRuleLength": null,
"hardRulePrecision": null,
"hardRuleScale": null,
"hardRuleTypeFullName": null
}
]
},
"id": "2ff90de59dab4c41b6499ab34ff5d739",
"tableName": "ss1_dp1_employee_team",
"targetTableName": "ss1_dp1_employee_team",
"targetSchemaName": "stg",
"sourceSystemId": "e605eb83-d483-4738-a56f-f5b848f2f54d",
"dataPackageId": "d7d5c678-be2e-4ff9-b4d6-a2e6d40c37f9",
"query": "",
"queryType": "Table",
"isQueryBased": false
}
]
},
"sort": [],
"index": 0,
"limit": 10,
"expand": [],
"total": 2
}