Queries the information about an instance.
Operation description
This API operation is available for all DataWorks editions.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Id | long | Yes | The instance ID. | 1234 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "22C97E95-F023-56B5-8852-B1A77A17XXXX\n",
"TaskInstance": {
"TaskId": 1234,
"TaskType": "ODPS_SQL",
"TaskName": "",
"Description": "test",
"WorkflowId": 1234,
"WorkflowName": "",
"TriggerType": "Scheduler",
"TriggerRecurrence": "Normal",
"WorkflowInstanceId": 1234,
"WorkflowInstanceType": "Normal",
"Timeout": 1,
"RerunMode": "AllAllowed",
"RunNumber": 1,
"PeriodNumber": 1,
"BaselineId": 1234,
"Priority": 1,
"Script": {
"Content": "echo \"helloWorld\"",
"Parameters": "para1=$bizdate"
},
"RuntimeResource": {
"ResourceGroupId": "S_res_group_524258031846018_1684XXXXXXXXX",
"Image": "i-xxxxxx",
"Cu": "0.25"
},
"Runtime": {
"ProcessId": "T3_123",
"Gateway": "cn-shanghai.1.2"
},
"DataSource": {
"Name": "mysql_test"
},
"Inputs": {
"Variables": [
{
"Name": "Key1",
"Type": "Constant",
"Value": "Value1"
}
]
},
"Outputs": {
"TaskOutputs": [
{
"Output": "pre.odps_sql_demo_0"
}
],
"Variables": [
{
"Name": "key1",
"Type": "Constant",
"Value": "value1"
}
]
},
"Tags": [
{
"Key": "key1",
"Value": "value1"
}
],
"Status": "Success",
"TriggerTime": 1710239005403,
"Bizdate": 1710239005403,
"StartedTime": 1710239005403,
"FinishedTime": 1710239005403,
"Id": 1234,
"TenantId": 1,
"ProjectId": 100,
"ProjectEnv": "Prod",
"Owner": "1000",
"CreateTime": 1710239005403,
"ModifyTime": 1710239005403,
"CreateUser": "1000",
"ModifyUser": "1000"
}
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-11-20 | The response structure of the API has changed | View Change Details |