Queries the data lineage of a data work, including datasets referenced by each component and query field information. Supported data works: dashboards, workbooks, and self-service data retrieval.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
quickbi-public:QueryWorksBloodRelationship |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| WorksId |
string |
Yes |
The ID of the data work. |
abcd**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| Success |
boolean |
Indicates whether the request is successful. Valid values:
|
true |
| RequestId |
string |
The ID of the request. |
D787E1A3-A93C-424A-B626-C2B05DF8D885 |
| Result |
array<object> |
The data lineage information of the work. |
|
|
array<object> |
|||
| ComponentId |
string |
The ID of the component. |
0696083a-ca72-4d89-8e7a-c017910e0*** |
| ComponentName |
string |
The name of the component. |
线图 |
| ComponentType |
integer |
The type of the component. |
3 |
| ComponentTypeName |
string |
The name of the component type. |
LINE |
| ComponentTypeCnName |
string |
The Chinese name of the component type. |
交叉表 |
| DatasetId |
string |
The ID of the dataset. |
dc78a4ed-880d-452e-b017-90cfc10c83e5_company_sales_record |
| QueryParams |
array<object> |
The query fields referenced by the component. |
|
|
object |
|||
| AreaId |
string |
The ID of the area where the field is located. |
area_column |
| AreaName |
string |
The name of the area where the field is located. |
列(度量) |
| Caption |
string |
The display name of the field. |
order_number |
| DataType |
string |
The type of the field. Valid values:
|
number |
| IsMeasure |
boolean |
Indicates whether the field is a measure. Valid values: true false |
true |
| PathId |
string |
The globally unique PathId. |
schema7d1944eb-443e-48c6-8123-bf45a99e7e74.dc78a4ed-880d-452e-b017-90cfc10c83e5_company_sales_record.[Ndc78a4_order_level].[Ndc78a4_order_level].[Ndc78a4_order_level] |
| Uid |
string |
The unique ID of the field. |
Ndc78a4_order_number |
| Expression |
string |
The calculated field expression. |
BI_DATEADD([时间], 100, 'day') |
Examples
Success response
JSON format
{
"Success": true,
"RequestId": "D787E1A3-A93C-424A-B626-C2B05DF8D885",
"Result": [
{
"ComponentId": "0696083a-ca72-4d89-8e7a-c017910e0***",
"ComponentName": "线图",
"ComponentType": 3,
"ComponentTypeName": "LINE",
"ComponentTypeCnName": "交叉表",
"DatasetId": "dc78a4ed-880d-452e-b017-90cfc10c83e5_company_sales_record",
"QueryParams": [
{
"AreaId": "area_column",
"AreaName": "列(度量)",
"Caption": "order_number",
"DataType": "number",
"IsMeasure": true,
"PathId": "schema7d1944eb-443e-48c6-8123-bf45a99e7e74.dc78a4ed-880d-452e-b017-90cfc10c83e5_company_sales_record.[Ndc78a4_order_level].[Ndc78a4_order_level].[Ndc78a4_order_level]",
"Uid": "Ndc78a4_order_number",
"Expression": "BI_DATEADD([时间], 100, 'day')"
}
]
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Invalid.Works.Empty | This work does not exist. It may have been deleted. Work ID is %s. | |
| 400 | Invalid.WorksId.Not.Publish | Works %s is not published yet. | |
| 400 | Invalid.Workspace | The workspace is not owned by the organization. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.