Queries the task flow list corresponding to business scenarios in a DMS data warehouse development project workspace.
Operation description
Before you begin: You must have access permissions on the target project workspace. If you do not have access permissions on the project workspace, a DMS administrator, DBA, or storage management administrator can invoke AddLhMembers to add you as a member of the target project workspace.
Additional information: If your user role is DMS administrator or storage management administrator, you can specify a user ID to query the common scenarios and node flow list associated with that user in a project workspace.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:ListLhTaskFlowAndScenario |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SpaceId |
integer |
Yes |
The project workspace ID (Id). You can call GetLhSpaceByName to obtain this parameter. |
24 |
| UserId |
integer |
No |
The user ID. You can call ListUsers or GetUser to obtain this parameter. |
51**** |
| Tid |
integer |
No |
The tenant ID. You can call GetUserActiveTenant or ListUserTenants to obtain this parameter. |
3*** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RawDAGList |
object |
||
| Dag |
array<object> |
The task flow list of the default business scenario. |
|
|
object |
The task flow list of the default business scenario. |
||
| Id |
integer |
The task flow ID. |
134137**** |
| CreatorId |
string |
The user ID of the creator. |
51**** |
| IsDeleted |
boolean |
Indicates whether the task flow has been deleted. Valid values:
|
false |
| DemoId |
string |
The extension field. This field is currently not used. |
- |
| DeployId |
integer |
The ID of the most recent deployment record. |
12** |
| DataFlowId |
integer |
The extension field. This field is currently not used. |
- |
| ScenarioId |
integer |
The common scenarios ID. |
2** |
| SpaceId |
integer |
The project workspace ID. |
1 |
| CreatorNickName |
string |
The nickname of the creator. |
Creator_Name |
| DagOwnerNickName |
string |
The nickname of the task flow owner. |
Owner_Name |
| CanEdit |
boolean |
Indicates whether the task flow can be edited. Valid values:
|
true |
| Status |
integer |
The status of the task flow. Valid values:
|
2 |
| LatestInstanceStatus |
integer |
The status of the most recent run record. Valid values:
|
0 |
| LatestInstanceTime |
integer |
The creation time of the most recent run record. |
2022-04-14 |
| DagName |
string |
The name of the task flow. |
Dag_Name |
| DagOwnerId |
string |
The user ID of the task flow owner. |
51**** |
| ScenarioDAGList |
object |
||
| ScenarioDAG |
array<object> |
The task flow list of other business scenarios. |
|
|
array<object> |
The task flow list of the business scenario. |
||
| Scenario |
object |
The business scenario information. |
|
| ScenarioName |
string |
The common scenarios name. |
Scenario_2 |
| CreatorId |
string |
The user ID of the creator. |
51**** |
| Description |
string |
The description. |
test |
| DagList |
object |
||
| Dag |
array<object> |
The task flow information list. |
|
|
object |
The task flow information list. |
||
| Id |
integer |
The task flow ID. |
9*** |
| CreatorId |
string |
The user ID of the creator. |
51**** |
| IsDeleted |
boolean |
Indicates whether the task flow has been deleted. Valid values:
|
false |
| DemoId |
string |
The extension field. This field is currently not used. |
- |
| DeployId |
integer |
The ID of the most recent deployment record. |
12** |
| DataFlowId |
integer |
The extension field. This field is currently not used. |
- |
| ScenarioId |
integer |
The common scenarios ID. |
2** |
| SpaceId |
integer |
The project workspace ID. |
1 |
| CreatorNickName |
string |
The nickname of the creator. |
Creator_Name |
| DagOwnerNickName |
string |
The nickname of the task flow owner. |
Owner_Name |
| CanEdit |
boolean |
Indicates whether the task flow can be edited. Valid values:
|
true |
| Status |
integer |
The status of the task flow. Valid values:
|
1 |
| LatestInstanceStatus |
integer |
The status of the most recent run instance. Valid values:
|
1 |
| LatestInstanceTime |
integer |
The creation time of the most recent run record. |
2022-04-14 |
| DagName |
string |
The name of the task flow. |
Dag_Name |
| DagOwnerId |
string |
The user ID of the task flow owner. |
51**** |
| RequestId |
string |
The request ID. |
48602B78-0DDF-414C-8688-70CAB6070115 |
| ErrorCode |
string |
The error code. |
UnknownError |
| ErrorMessage |
string |
The error message. |
UnknownError |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"RawDAGList": {
"Dag": [
{
"Id": 0,
"CreatorId": "51****",
"IsDeleted": false,
"DemoId": "-",
"DeployId": 0,
"DataFlowId": 0,
"ScenarioId": 0,
"SpaceId": 1,
"CreatorNickName": "Creator_Name",
"DagOwnerNickName": "Owner_Name",
"CanEdit": true,
"Status": 2,
"LatestInstanceStatus": 0,
"LatestInstanceTime": 0,
"DagName": "Dag_Name",
"DagOwnerId": "51****"
}
]
},
"ScenarioDAGList": {
"ScenarioDAG": [
{
"Scenario": {
"ScenarioName": "Scenario_2",
"CreatorId": "51****",
"Description": "test"
},
"DagList": {
"Dag": [
{
"Id": 0,
"CreatorId": "51****",
"IsDeleted": false,
"DemoId": "-",
"DeployId": 0,
"DataFlowId": 0,
"ScenarioId": 0,
"SpaceId": 1,
"CreatorNickName": "Creator_Name",
"DagOwnerNickName": "Owner_Name",
"CanEdit": true,
"Status": 1,
"LatestInstanceStatus": 1,
"LatestInstanceTime": 0,
"DagName": "Dag_Name",
"DagOwnerId": "51****"
}
]
}
}
]
},
"RequestId": "48602B78-0DDF-414C-8688-70CAB6070115",
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.