Queries the information about an instance.
Debugging
Request parameters
Parameter |
Type |
Required |
Example |
Description |
Action | String | Yes | GetInstance | The operation that you want to perform. Set the value to GetInstance. |
InstanceId | Long | Yes | 1234 | The instance ID. You can call the ListInstances operation to obtain the instance ID. |
ProjectEnv | String | Yes | PROD | The environment of the workspace. Valid values: PROD and DEV. The value PROD indicates the production environment, and the value DEV indicates the development environment. |
Response parameters
Parameter |
Type |
Example |
Description |
HttpStatusCode | Integer | 200 | The HTTP status code. |
RequestId | String | E6F0DBDD-5AD**** | The request ID. |
ErrorMessage | String | test | The error message returned when the instance fails to be scheduled. |
Success | Boolean | true | Indicates whether the request was successful. |
ErrorCode | String | 0 | The error code. |
Data | Object | The details of the instance. |
|
Status | String | NOT_RUN | The status of the node that generates the instance. Valid values:
|
CycTime | Long | 1590422400000 | The scheduling time of the instance. |
BeginRunningTime | Long | 1590416703313 | The time when the instance started to run. |
FinishTime | Long | 1590416703313 | The time when the running of the instance was complete. |
CreateTime | Long | 1590416703313 | The time when the instance was generated. |
DagId | Long | 338450167 | The workflow ID. |
Priority | Integer | 1 | The priority of the instance. Valid values: 1, 3, 5, 7, and 8. A greater value indicates a higher priority. Default value: 1. |
TaskType | String | NORMAL(0) | The scheduling type of the node that generates the instance. Valid values:
|
ParamValues | String | bizdate=$bizdate tbods=$tbods tbdw=$tbdw tbpmic=$tbpmic tbpidx=$tbpidx tbptcif=$tbptcif | The parameters related to the node. |
Connection | String | odps_source | The connection string. |
BaselineId | Long | 123123 | The baseline ID. |
DqcType | Integer | 1 | Indicates whether the instance is associated with a monitoring rule in Data Quality. Valid values:
|
DagType | String | DAILY | The type of the workflow. Valid values:
|
BusinessId | Long | 123 | The workflow ID. |
TaskRerunTime | Integer | 0 | The number of times the node can be rerun. The value of this parameter can be empty or an integer that is greater than or equal to 0.
|
ModifyTime | Long | 1590416703313 | The time when the instance was last modified. |
Repeatability | Boolean | true | Indicates whether the node that generates the instance can be rerun. |
RepeatInterval | Long | 60000 | The interval at which the node is rerun after the node fails to run. Unit: milliseconds. |
InstanceId | Long | 11713307578 | The instance ID. |
BeginWaitResTime | Long | 1590416703313 | The time when the instance started to wait for resources. |
RelatedFlowId | Long | 123123 | The ID of the workflow to which the node belongs. |
Bizdate | Long | 1590336000000 | The data timestamp of the instance. In most cases, the value is one day before the time when the instance was run. |
NodeName | String | kzh | The name of the node. |
BeginWaitTimeTime | Long | 1590416703313 | The time when the instance started to wait to be scheduled. |
DqcDescription | String | [{"projectName":"ztjy_dim","tableName":"dim_user_agent_manage_area_a","partition":"ds\u003d$[yyyy-mm-dd-1]"}] | The table and partition filter expression in Data Quality that are associated with the node. |
NodeId | Long | 33115 | The node ID. |
CreateUser | String | 111 | The creator of the instance. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=GetInstance
&InstanceId=1234
&ProjectEnv=PROD
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<GetInstanceResponse>
<HttpStatusCode>200</HttpStatusCode>
<RequestId>E6F0DBDD-5AD****</RequestId>
<ErrorMessage>test</ErrorMessage>
<Success>true</Success>
<ErrorCode>0</ErrorCode>
<Data>
<Status>NOT_RUN</Status>
<CycTime>1590422400000</CycTime>
<BeginRunningTime>1590416703313</BeginRunningTime>
<FinishTime>1590416703313</FinishTime>
<CreateTime>1590416703313</CreateTime>
<DagId>338450167</DagId>
<Priority>1</Priority>
<TaskType>NORMAL(0)</TaskType>
<ParamValues>bizdate=$bizdate tbods=$tbods tbdw=$tbdw tbpmic=$tbpmic tbpidx=$tbpidx tbptcif=$tbptcif</ParamValues>
<Connection>odps_source</Connection>
<BaselineId>123123</BaselineId>
<DqcType>1</DqcType>
<DagType>DAILY</DagType>
<BusinessId>123</BusinessId>
<TaskRerunTime>0</TaskRerunTime>
<ModifyTime>1590416703313</ModifyTime>
<Repeatability>true</Repeatability>
<RepeatInterval>60000</RepeatInterval>
<InstanceId>11713307578</InstanceId>
<BeginWaitResTime>1590416703313</BeginWaitResTime>
<RelatedFlowId>123123</RelatedFlowId>
<Bizdate>1590336000000</Bizdate>
<NodeName>kzh</NodeName>
<BeginWaitTimeTime>1590416703313</BeginWaitTimeTime>
<DqcDescription>[{"projectName":"ztjy_dim","tableName":"dim_user_agent_manage_area_a","partition":"ds\u003d$[yyyy-mm-dd-1]"}]</DqcDescription>
<NodeId>33115</NodeId>
<CreateUser>111</CreateUser>
</Data>
</GetInstanceResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"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_source",
"BaselineId" : 123123,
"DqcType" : 1,
"DagType" : "DAILY",
"BusinessId" : 123,
"TaskRerunTime" : 0,
"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
}
}
Error codes
For a list of error codes, see Service error codes.