View data integration tasks.
Operation description
This operation requires DataWorks Basic Edition or later.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
integer |
No |
The ID of the DI job. |
11588 |
| WithDetails |
boolean |
No |
Specifies whether to return the detailed configuration, including |
true |
| ProjectId |
integer |
No |
The DataWorks workspace ID. You can call the |
10000 |
DIJobId
deprecated
|
integer |
No |
This field is deprecated. Use the |
11588 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The data returned. |
||
| RequestId |
string |
The request ID. You can use this ID to locate logs and troubleshoot issues. |
C99E2BE6-9DEA-5C2E-8F51-1DDCFEADE490 |
| PagingInfo |
object |
The details of the data integration job. |
|
| Id |
integer |
The job ID. |
32601 |
| Description |
string |
The description of the job. |
description |
| DestinationDataSourceSettings |
array<object> |
The settings for the destination data source. |
|
|
object |
The properties for a destination data source. |
||
| DataSourceName |
string |
The name of the destination data source. |
dw_mysql |
| DestinationDataSourceType |
string |
The type of the destination data source. Valid values: |
Hologres |
| JobName |
string |
The name of the job. |
imp_ods_dms_det_dealer_info_df |
| JobSettings |
object |
The job settings. |
|
| ChannelSettings |
string |
The settings for channel-related jobs. You can configure special settings for specific channels. The following channels are supported: Holo2Holo (data synchronization from Hologres to Hologres) and Holo2Kafka (data synchronization from Hologres to Kafka).
|
{"structInfo":"MANAGED","storageType":"TEXTFILE","writeMode":"APPEND","partitionColumns":[{"columnName":"pt","columnType":"STRING","comment":""}],"fieldDelimiter":""} |
| ColumnDataTypeSettings |
array<object> |
The column data type mappings. |
|
|
object |
A column data type mapping. |
||
| DestinationDataType |
string |
The data type in the destination, such as |
text |
| SourceDataType |
string |
The data type in the source, such as |
bigint |
| CycleScheduleSettings |
object |
The settings for periodic scheduling. |
|
| CycleMigrationType |
string |
The synchronization type for periodic scheduling. Valid values:
|
Full |
| ScheduleParameters |
string |
The scheduling parameters. |
bizdate=$bizdate |
| DdlHandlingSettings |
array<object> |
An array of settings for handling DDL messages. Each element specifies a DDL message type and the corresponding handling rule. |
|
|
object |
The rule for handling a DDL message type. |
||
| Action |
string |
The handling action. Valid values:
|
Ignore |
| Type |
string |
The DDL message type. Valid values:
|
CreateTable |
| RuntimeSettings |
array<object> |
The runtime settings. |
|
|
object |
A runtime setting. |
||
| Name |
string |
The name of the setting. Valid values:
|
runtime.offline.concurrent |
| Value |
string |
The value of the setting. |
1 |
| MigrationType |
string |
The synchronization type. Valid values:
|
FullAndRealtimeIncremental |
| JobType |
string |
The job type.
|
DatabaseRealtimeMigration |
| ProjectId |
integer |
The ID of the DataWorks workspace for the API call. You can obtain the workspace ID from the Workspace Configuration page in the DataWorks console. |
98330 |
| ResourceSettings |
object |
The resource settings. |
|
| OfflineResourceSettings |
object |
The resource settings for the offline synchronization job. |
|
| RequestedCu |
number |
The number of CUs from the data integration resource group for the offline synchronization job. |
2.0 |
| ResourceGroupIdentifier |
string |
The name of the data integration resource group used by the offline synchronization job. |
di_resourcegroup_v1 |
| RealtimeResourceSettings |
object |
The resource settings for the real-time synchronization job. |
|
| RequestedCu |
number |
The number of CUs from the data integration resource group for the real-time synchronization job. |
2.0 |
| ResourceGroupIdentifier |
string |
The name of the data integration resource group used by the real-time job. |
di_resourcegroup_v1 |
| ScheduleResourceSettings |
object |
The scheduling resource settings. |
|
| RequestedCu |
number |
The number of CUs from the scheduling resource group for the offline scheduling job. |
2.0 |
| ResourceGroupIdentifier |
string |
The name of the scheduling resource group used by the offline scheduling job. |
schedual_resourcegroup_v1 |
| SourceDataSourceSettings |
array<object> |
The settings for the source data source. |
|
|
array<object> |
The settings for a source data source. |
||
| DataSourceName |
string |
The name of the data source. |
dw_mysql |
| DataSourceProperties |
object |
The properties of the data source. |
|
| Encoding |
string |
The encoding of the database. |
UTF-8 |
| Timezone |
string |
The time zone. |
GMT+8 |
| SourceDataSourceType |
string |
The type of the source data source. Valid values: |
Mysql |
| TableMappings |
array<object> |
A list of mappings for object transformation. Each element in the list describes a set of selection rules for source objects and a set of transformation rules that apply to the selected objects. Note
[ { "SourceObjectSelectionRules":[ { "ObjectType":"Database", "Action":"Include", "ExpressionType":"Exact", "Expression":"biz_db" }, { "ObjectType":"Schema", "Action":"Include", "ExpressionType":"Exact", "Expression":"s1" }, { "ObjectType":"Table", "Action":"Include", "ExpressionType":"Exact", "Expression":"table1" } ], "TransformationRuleNames":[ { "RuleName":"my_database_rename_rule", "RuleActionType":"Rename", "RuleTargetType":"Schema" } ] } ] |
|
|
array<object> |
A mapping that defines the source objects and the transformation rules to apply. |
||
| SourceObjectSelectionRules |
array<object> |
Each rule selects a set of source objects to be synchronized. A combination of multiple rules selects one table. |
|
|
object |
Each rule can select different types of source objects to be synchronized, such as a source database or a source table. |
||
| Action |
string |
The selection action. Valid values: |
Include |
| Expression |
string |
The expression. |
mysql_table_1 |
| ExpressionType |
string |
The expression type. Valid values: |
Exact |
| ObjectType |
string |
The object type. Valid values:
|
Table |
| TransformationRules |
array<object> |
An array of object transformation rule definitions. |
|
|
object |
A transformation rule that is applied to the source object. |
||
| RuleName |
string |
The name of the rule. The rule name must be unique for a specific action type ( |
rename_rule_1 |
| RuleActionType |
string |
The action type. Valid values:
|
AddColumn |
| RuleTargetType |
string |
The target object type of the action. Valid values:
|
Table |
| TransformationRules |
array<object> |
A list of definitions for object transformation rules. Note
[ { "RuleName":"my_database_rename_rule", "RuleActionType":"Rename", "RuleTargetType":"Schema", "RuleExpression":"{\"expression\":\"${srcDatasoureName}_${srcDatabaseName}\"}" } ] |
|
|
object |
A definition for an object transformation rule. |
||
| RuleActionType |
string |
The action type. Valid values:
|
Rename |
| RuleExpression |
string |
The rule expression, in JSON string format.
|
{"expression":"${srcDatasoureName}_${srcDatabaseName}"} |
| RuleName |
string |
The name of the rule. The rule name must be unique for a specific action type ( |
rename_rule_1 |
| RuleTargetType |
string |
The target object type of the action. Valid values:
|
Table |
| JobStatus |
string |
The status of the job. Valid values:
|
Running |
DIJobId
deprecated
|
string |
This field is deprecated. Use the |
32601 |
| Owner |
string |
Examples
Success response
JSON format
{
"RequestId": "C99E2BE6-9DEA-5C2E-8F51-1DDCFEADE490",
"PagingInfo": {
"Id": 32601,
"Description": "description",
"DestinationDataSourceSettings": [
{
"DataSourceName": "dw_mysql"
}
],
"DestinationDataSourceType": "Hologres",
"JobName": "imp_ods_dms_det_dealer_info_df",
"JobSettings": {
"ChannelSettings": "{\"structInfo\":\"MANAGED\",\"storageType\":\"TEXTFILE\",\"writeMode\":\"APPEND\",\"partitionColumns\":[{\"columnName\":\"pt\",\"columnType\":\"STRING\",\"comment\":\"\"}],\"fieldDelimiter\":\"\"}",
"ColumnDataTypeSettings": [
{
"DestinationDataType": "text",
"SourceDataType": "bigint"
}
],
"CycleScheduleSettings": {
"CycleMigrationType": "Full",
"ScheduleParameters": "bizdate=$bizdate\n"
},
"DdlHandlingSettings": [
{
"Action": "Ignore",
"Type": "CreateTable"
}
],
"RuntimeSettings": [
{
"Name": "runtime.offline.concurrent\n",
"Value": "1"
}
]
},
"MigrationType": "FullAndRealtimeIncremental",
"JobType": "DatabaseRealtimeMigration",
"ProjectId": 98330,
"ResourceSettings": {
"OfflineResourceSettings": {
"RequestedCu": 2,
"ResourceGroupIdentifier": "di_resourcegroup_v1"
},
"RealtimeResourceSettings": {
"RequestedCu": 2,
"ResourceGroupIdentifier": "di_resourcegroup_v1"
},
"ScheduleResourceSettings": {
"RequestedCu": 2,
"ResourceGroupIdentifier": "schedual_resourcegroup_v1"
}
},
"SourceDataSourceSettings": [
{
"DataSourceName": "dw_mysql",
"DataSourceProperties": {
"Encoding": "UTF-8\n",
"Timezone": "GMT+8\n"
}
}
],
"SourceDataSourceType": "Mysql",
"TableMappings": [
{
"SourceObjectSelectionRules": [
{
"Action": "Include",
"Expression": "mysql_table_1",
"ExpressionType": "Exact",
"ObjectType": "Table"
}
],
"TransformationRules": [
{
"RuleName": "rename_rule_1",
"RuleActionType": "AddColumn",
"RuleTargetType": "Table"
}
]
}
],
"TransformationRules": [
{
"RuleActionType": "Rename",
"RuleExpression": "{\"expression\":\"${srcDatasoureName}_${srcDatabaseName}\"}",
"RuleName": "rename_rule_1",
"RuleTargetType": "Table"
}
],
"JobStatus": "Running",
"DIJobId": "32601",
"Owner": ""
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.