Queries the execution records of a task flow.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
dms:ListTaskFlowInstance | list | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
DagId | long | Yes | The ID of the task flow. You can call the ListTaskFlow or ListLhTaskFlowAndScenario operation to obtain the ID of the task flow. | 7*** |
TriggerType | integer | No | The mode in which the task flow is triggered. Valid values:
| 1 |
StartTimeBegin | string | No | The beginning of the time range to query the execution records of the task flow. Specify the time in the yyyy-MM-DD format. | 2022-01-07 |
StartTimeEnd | string | No | The end of the time range to query the execution records of the task flow. Specify the time in the yyyy-MM-DD format. | 2022-04-08 |
PageIndex | integer | Yes | The number of the page to return. | 1 |
PageSize | integer | Yes | The number of entries to return on each page. | 20 |
Tid | long | No | The ID of the tenant. You can call the GetUserActiveTenant or ListUserTenants operation to obtain the tenant ID. | 3*** |
UseBizDate | boolean | No | Adjust filter conditions:
| true |
Status | integer | No | The running status of the task node. Valid values:
| 3 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "8CFF2295-8249-5287-B888-DBD4F0D76CB0",
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"Success": true,
"DAGInstanceList": {
"DAGInstance": [
{
"Id": 9234,
"BusinessTime": "2021-11-10 14:37:26",
"startTime": "2021-11-11 14:35:57\n",
"EndTime": "2021-11-11 14:38:57",
"DagId": "7***",
"TriggerType": 1,
"Status": 4,
"Message": "test",
"HistoryDagId": 0,
"DagName": "Spark_SQL_test",
"OwnerName": "test_name",
"DagVersion": "[]"
}
]
},
"TotalCount": 1
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2023-05-25 | The request parameters of the API has changed. The response structure of the API has changed | View Change Details |