Retrieves the details of an instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:* |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
integer |
Yes |
The instance ID. You can call the ListInstances operation to query the ID. |
1234 |
| ProjectEnv |
string |
Yes |
The environment of the workspace. Valid values: PROD and DEV. |
PROD |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| RequestId |
string |
The request ID. |
E6F0DBDD-5AD**** |
| ErrorMessage |
string |
The error message returned when the instance fails to be scheduled. |
test |
| Success |
boolean |
Indicates whether the request was successful. |
true |
| ErrorCode |
string |
The error code. |
0 |
| Data |
object |
The details of the instance. |
|
| Status |
string |
The status of the node that generates the instance. Valid values:
|
NOT_RUN |
| CycTime |
integer |
The scheduling time of the instance. |
1590422400000 |
| BeginRunningTime |
integer |
The time when the instance started to run. |
1590416703313 |
| FinishTime |
integer |
The time when the instance finished running. |
1590416703313 |
| CreateTime |
integer |
The time when the instance was generated. |
1590416703313 |
| DagId |
integer |
The workflow ID. |
338450167 |
| Priority |
integer |
The priority of the instance. Valid values: 1, 3, 5, 7, and 8. A greater value indicates a higher priority. Default value: 1. |
1 |
| TaskType |
string |
The scheduling type of the node that generates the instance. Valid values:
|
NORMAL(0) |
| ParamValues |
string |
The parameters related to the node. |
bizdate=$bizdate tbods=$tbods tbdw=$tbdw tbpmic=$tbpmic tbpidx=$tbpidx tbptcif=$tbptcif |
| Connection |
string |
The connection string. |
odps_first |
| BaselineId |
integer |
The baseline ID. |
123123 |
| DqcType |
integer |
Whether the instance is associated with a Data Quality monitoring rule. Valid values:
|
1 |
| DagType |
string |
The type of the workflow. Valid values:
|
DAILY |
| BusinessId |
integer |
The workflow ID. |
123 |
| TaskRerunTime |
integer |
The remaining rerun count. Can be empty or a non-negative integer.
|
0 |
| PeriodNumber |
integer |
The sequence number of the instance's scheduling cycle on the current day. |
1 |
| ModifyTime |
integer |
The time when the instance was last modified. |
1590416703313 |
| Repeatability |
boolean |
Indicates whether the node that generates the instance can be rerun. |
true |
| RepeatInterval |
integer |
The rerun interval after a failure, in milliseconds. |
60000 |
| InstanceId |
integer |
The instance ID. |
11713307578 |
| BeginWaitResTime |
integer |
The time when the instance started to wait for resources. |
1590416703313 |
| RelatedFlowId |
integer |
The ID of the workflow to which the node belongs. |
123123 |
| Bizdate |
integer |
The data timestamp of the instance. Typically one day before the instance run time. |
1590336000000 |
| NodeName |
string |
The name of the node. |
kzh |
| BeginWaitTimeTime |
integer |
The time when the instance started to wait to be scheduled. |
1590416703313 |
| DqcDescription |
string |
The table and partition filter expression in Data Quality associated with the node. |
[{"projectName":"ztjy_dim","tableName":"dim_user_agent_manage_area_a","partition":"ds\u003d$[yyyy-mm-dd-1]"}] |
| NodeId |
integer |
The node ID. |
33115 |
| CreateUser |
string |
The creator of the instance. |
111 |
| Owner |
string |
The owner of the instance. |
111 |
Examples
Success response
JSON format
{
"HttpStatusCode": 200,
"RequestId": "E6F0DBDD-5AD****",
"ErrorMessage": "test",
"Success": true,
"ErrorCode": "0",
"Data": {
"Status": "NOT_RUN",
"CycTime": 1590422400000,
"BeginRunningTime": 1590416703313,
"FinishTime": 1590416703313,
"CreateTime": 1590416703313,
"DagId": 338450167,
"Priority": 1,
"TaskType": "NORMAL(0)",
"ParamValues": "bizdate=$bizdate tbods=$tbods tbdw=$tbdw tbpmic=$tbpmic tbpidx=$tbpidx tbptcif=$tbptcif",
"Connection": "odps_first",
"BaselineId": 123123,
"DqcType": 1,
"DagType": "DAILY",
"BusinessId": 123,
"TaskRerunTime": 0,
"PeriodNumber": 1,
"ModifyTime": 1590416703313,
"Repeatability": true,
"RepeatInterval": 60000,
"InstanceId": 11713307578,
"BeginWaitResTime": 1590416703313,
"RelatedFlowId": 123123,
"Bizdate": 1590336000000,
"NodeName": "kzh",
"BeginWaitTimeTime": 1590416703313,
"DqcDescription": "[{\"projectName\":\"ztjy_dim\",\"tableName\":\"dim_user_agent_manage_area_a\",\"partition\":\"ds\\u003d$[yyyy-mm-dd-1]\"}]",
"NodeId": 33115,
"CreateUser": "111",
"Owner": "111"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.