GetDataPackageTableColumns - GET
|
Path |
/api/projects/{projectId}/metavault/sourcesystems/{sourceNameOrId}/datapackages/{dataPackageNameOrId}/tables/{tableNameOrId}/columns |
|---|---|
|
Http Method |
GET |
Overview
Retrieve the list of columns from a datapackage table.
Required permissions
-
Read access to the Source module. SOURCE READ
Request
Path parameters
|
Parameter |
Type |
Required |
Description |
Example |
|---|---|---|---|---|
|
sourceNameOrId |
string |
Yes |
The name of the source or the technical id of the source where the column lives. |
"e605eb83-d483-4738-a56f-f5b848f2f54d" |
|
dataPackageNameOrId |
string |
Yes |
The name or the id of the datapackage where the column lives. |
"f134eb83-d483-4738-a56f-f5b848f2f54d" |
|
tableNameOrId |
string |
Yes |
The name or the id of the table in which the column is. |
"ee55eb83-d483-4738-a56f-f5b848f2f54d" |
Response
Success response (200 OK)
Before 7.0.0 :
{
"_embedded": {
"stagingColumns": [
{
"id": "5ae62e588c954c1089fe54ce7e4f7b26",
"name": "mail",
"dataType": "String",
"length": 255,
"baseType": {
"dataType": "String",
"length": 255
},
"nullable": true,
"primaryKey": false,
"typeFullName": "VARCHAR(255)"
},
{
"id": "4850cc5b2f784254b4c3a5275e1f737a",
"name": "name",
"dataType": "String",
"length": 255,
"baseType": {
"dataType": "String",
"length": 255
},
"nullable": true,
"primaryKey": false,
"typeFullName": "VARCHAR(255)"
}
]
},
"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 table columns, see response of: Metavault API - Create data package table.
Response fields
|
Field |
Type |
Description |
|---|---|---|
|
_embedded.stagingColumns |
array |
The list of columns. See a single column in:Metavault API - Create data package table. |