Membuat kueri daftar instans turunan dari sebuah instans per halaman.
Deskripsi operasi
Operasi API ini tersedia untuk semua edisi DataWorks.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
integer |
Yes |
ID instans. |
1234 |
| PageSize |
integer |
No |
Jumlah entri per halaman. Nilai default: 10. |
10 |
| PageNumber |
integer |
No |
Nomor halaman. Halaman dimulai dari halaman 1. Nilai default: 1. |
1 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
22C97E95-F023-56B5-8852-B1A77A17XXXX |
| PagingInfo |
object |
Informasi paginasi. |
|
| TaskInstances |
array<object> |
Instans. Parameter ini sudah usang dan digantikan oleh parameter DownstreamTaskInstances. |
|
|
array<object> |
|||
| StepType |
string |
The scheduling dependency type. Valid values:
|
Normal |
| TaskId |
integer |
The ID of the task for which the instance is generated. |
1234 |
| TaskType |
string |
The type of the task for which the instance is generated. |
ODPS_SQL |
| TaskName |
string |
The name of the task for which the instance is generated. |
SQL node |
| Description |
string |
The description. |
test |
| WorkflowId |
integer |
The ID of the workflow to which the instance belongs. |
1234 |
| WorkflowName |
string |
The name of the workflow to which the instance belongs. |
Test workflow |
| TriggerType |
string |
The method to trigger instance scheduling. Valid values:
Valid values:
|
Scheduler |
| TriggerRecurrence |
string |
The running mode of the instance after it is triggered. This parameter takes effect only if the TriggerType parameter is set to Scheduler. Valid values:
Valid values:
|
Normal |
| WorkflowInstanceId |
integer |
The workflow instance ID. |
1234 |
| WorkflowInstanceType |
string |
The type of the workflow instance. Valid values:
Valid values:
|
Normal |
| Timeout |
integer |
The timeout period of task running. Unit: seconds. Note: The value of this parameter is rounded up by hour. |
1 |
| RerunMode |
string |
The rerun mode. Valid values:
Valid values:
|
AllAllowed |
| RunNumber |
integer |
The number of times the instance is run. By default, the value starts from 1. |
1 |
| PeriodNumber |
integer |
The sequence number of the cycle. This parameter indicates the cycle of the task instance on the current day. |
1 |
| BaselineId |
integer |
The baseline ID. |
1234 |
| Priority |
integer |
The priority of the task. Valid values: 1 to 8. A larger value indicates a higher priority. Default value: 1. |
1 |
| RuntimeResource |
object |
The information about the resource group with which the instance is associated. |
|
| ResourceGroupId |
string |
The ID of the resource group for scheduling configured for task running. |
S_res_group_524258031846018_1684XXXXXXXXX |
| Image |
string |
The ID of the image configured for task running. |
i-xxxxxx |
| Cu |
string |
The default number of compute units (CUs) configured for task running. |
0.25 |
| Runtime |
object |
The runtime information about the instance. |
|
| ProcessId |
string |
The instance run ID. |
T3_123 |
| Gateway |
string |
The host for running. |
cn-shanghai.1.2 |
| DataSource |
object |
The information about the associated data source. |
|
| Name |
string |
The name of the data source. |
mysql_test |
| Status |
string |
The status of the instance. Valid values:
|
Success |
| TriggerTime |
integer |
The scheduling time. |
1710239005403 |
| Bizdate |
integer |
The data timestamp. |
1710239005403 |
| StartedTime |
integer |
The time when the instance started to run. |
1710239005403 |
| FinishedTime |
integer |
The time when the instance finished running. |
1710239005403 |
| Id |
integer |
The instance ID. |
1234 |
| ProjectId |
integer |
The workspace ID. |
100 |
ProjectEnv
deprecated
|
string |
The environment of the workspace. This parameter is deprecated and replaced by the EnvType parameter. Valid values: |
Prod |
| EnvType |
string |
The environment in which the data source is used. Valid values:
|
Prod |
| Owner |
string |
The account ID of the task owner. |
100 |
| CreateTime |
integer |
The creation time. |
1710239005403 |
| ModifyTime |
integer |
The modification time. |
1710239005403 |
| CreateUser |
string |
The account ID of the creator. |
1000 |
| ModifyUser |
string |
The account ID of the modifier. |
1000 |
| DownstreamTaskInstances |
array<object> |
Instans turunan. |
|
|
array<object> |
|||
| DependencyType |
string |
The scheduling dependency type. Valid values:
|
Normal |
| TaskInstance |
object |
The information about a task instance. |
|
| TaskId |
integer |
The ID of the task for which the instance is generated. |
1234 |
| TaskType |
string |
The type of the task for which the instance is generated. |
ODPS_SQL |
| TaskName |
string |
The name of the task for which the instance is generated. |
SQL node |
| Description |
string |
The description. |
test |
| WorkflowId |
integer |
The ID of the workflow to which the instance belongs. |
1234 |
| WorkflowName |
string |
The name of the workflow to which the instance belongs. |
Test workflow |
| TriggerType |
string |
The trigger type. Valid values:
|
Scheduler |
| TriggerRecurrence |
string |
The running mode of the instance after it is triggered. This parameter takes effect only if the TriggerType parameter is set to Scheduler. Valid values:
|
Normal |
| WorkflowInstanceId |
integer |
The workflow instance ID. |
1234 |
| WorkflowInstanceType |
string |
The type of the workflow instance. Valid values:
|
Normal |
| Timeout |
integer |
The timeout period of task running. Unit: seconds. Note: The value of this parameter is rounded up by hour. |
3600 |
| RerunMode |
string |
The rerun mode. |
AllAllowed |
| RunNumber |
integer |
The number of times the instance is run. By default, the value starts from 1. |
1 |
| PeriodNumber |
integer |
The sequence number of the cycle. This parameter indicates the cycle of the task instance on the current day. |
1 |
| BaselineId |
integer |
The baseline ID. |
1234 |
| Priority |
integer |
The priority of the task. Minimum value: 1. Maximum value: 8. A larger value indicates a higher priority. Default value: 1. |
1 |
| RuntimeResource |
object |
The configurations of the runtime environment, such as the resource group information. |
|
| ResourceGroupId |
string |
The ID of the resource group for scheduling configured for task running. |
S_res_group_524258031846018_1684XXXXXXXXX |
| Image |
string |
The ID of the image configured for task running. |
i-xxxxxx |
| Cu |
string |
The default number of compute units (CUs) configured for task running. |
0.25 |
| Runtime |
object |
The runtime information about the instance. |
|
| ProcessId |
string |
The instance run ID. |
T3_123 |
| Gateway |
string |
The host for running. |
cn-shanghai.1.2 |
| DataSource |
object |
The information about the associated data source. |
|
| Name |
string |
The name of the data source. |
mysql_test |
| Status |
string |
The status of the instance. Valid values:
|
Success |
| TriggerTime |
integer |
The scheduling time. |
1710239005403 |
| Bizdate |
integer |
The data timestamp. |
1710239005403 |
| StartedTime |
integer |
The time when the instance started to run. |
1710239005403 |
| FinishedTime |
integer |
The time when the instance finished running. |
1710239005403 |
| Id |
integer |
The instance ID. |
1234 |
| ProjectId |
integer |
The workspace ID. |
100 |
| EnvType |
string |
The environment in which the data source is used. Valid values:
|
Prod |
| Owner |
string |
The account ID of the task owner. |
1000 |
| CreateTime |
integer |
The creation time. |
1710239005403 |
| ModifyTime |
integer |
The modification time. |
1710239005403 |
| CreateUser |
string |
The account ID of the creator. |
1000 |
| ModifyUser |
string |
The account ID of the modifier. |
1000 |
| TotalCount |
integer |
Jumlah total entri yang dikembalikan. |
100 |
| PageSize |
integer |
Jumlah entri per halaman. |
10 |
| PageNumber |
integer |
Nomor halaman. |
1 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "22C97E95-F023-56B5-8852-B1A77A17XXXX",
"PagingInfo": {
"TaskInstances": [
{
"StepType": "Normal",
"TaskId": 1234,
"TaskType": "ODPS_SQL",
"TaskName": "SQL node\n",
"Description": "test",
"WorkflowId": 1234,
"WorkflowName": "Test workflow",
"TriggerType": "Scheduler",
"TriggerRecurrence": "Normal",
"WorkflowInstanceId": 1234,
"WorkflowInstanceType": "Normal",
"Timeout": 3600,
"RerunMode": "AllAllowed",
"RunNumber": 1,
"PeriodNumber": 1,
"BaselineId": 1234,
"Priority": 1,
"RuntimeResource": {
"ResourceGroupId": "S_res_group_524258031846018_1684XXXXXXXXX",
"Image": "i-xxxxxx",
"Cu": "0.25"
},
"Runtime": {
"ProcessId": "T3_123\n",
"Gateway": "cn-shanghai.1.2"
},
"DataSource": {
"Name": "mysql_test\n"
},
"Status": "Success",
"TriggerTime": 1710239005403,
"Bizdate": 1710239005403,
"StartedTime": 1710239005403,
"FinishedTime": 1710239005403,
"Id": 1234,
"ProjectId": 100,
"ProjectEnv": "Prod",
"EnvType": "Prod",
"Owner": "100",
"CreateTime": 1710239005403,
"ModifyTime": 1710239005403,
"CreateUser": "1000\n",
"ModifyUser": "1000\n"
}
],
"DownstreamTaskInstances": [
{
"DependencyType": "Normal",
"TaskInstance": {
"TaskId": 1234,
"TaskType": "ODPS_SQL",
"TaskName": "SQL node",
"Description": "test",
"WorkflowId": 1234,
"WorkflowName": "Test workflow",
"TriggerType": "Scheduler",
"TriggerRecurrence": "Normal",
"WorkflowInstanceId": 1234,
"WorkflowInstanceType": "Normal",
"Timeout": 3600,
"RerunMode": "AllAllowed",
"RunNumber": 1,
"PeriodNumber": 1,
"BaselineId": 1234,
"Priority": 1,
"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"
},
"Status": "Success",
"TriggerTime": 1710239005403,
"Bizdate": 1710239005403,
"StartedTime": 1710239005403,
"FinishedTime": 1710239005403,
"Id": 1234,
"ProjectId": 100,
"EnvType": "Prod",
"Owner": "1000",
"CreateTime": 1710239005403,
"ModifyTime": 1710239005403,
"CreateUser": "1000",
"ModifyUser": "1000"
}
}
],
"TotalCount": 100,
"PageSize": 10,
"PageNumber": 1
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.