GetDIJob
Queries the configuration of a data integration (DI) synchronization job.
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 |
Whether to return detailed configuration ( |
true |
|
ProjectId |
integer |
No |
The DataWorks workspace ID. Call |
10000 |
|
DIJobId |
integer |
No |
This field is deprecated. Use the |
11588 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The data returned. |
||
|
RequestId |
string |
The request ID. Used for log tracing and troubleshooting. |
C99E2BE6-9DEA-5C2E-8F51-1DDCFEADE490 |
| PagingInfo |
object |
The pagination information of the 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 |
Channel-specific settings. Supported channels: Holo2Holo (Hologres to Hologres) and Holo2Kafka (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> |
DDL message handling settings. Each element maps a DDL type to a 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 DataWorks workspace ID. Available in the DataWorks console workspace settings. |
98330 |
| ResourceSettings |
object |
The resource settings. |
|
| OfflineResourceSettings |
object |
Resource settings for offline synchronization. |
|
|
RequestedCu |
number |
CUs allocated from the DI resource group for offline synchronization. |
2.0 |
|
ResourceGroupIdentifier |
string |
DI resource group name for offline synchronization. |
di_resourcegroup_v1 |
| RealtimeResourceSettings |
object |
Resource settings for real-time synchronization. |
|
|
RequestedCu |
number |
CUs allocated from the DI resource group for real-time synchronization. |
2.0 |
|
ResourceGroupIdentifier |
string |
DI resource group name for real-time synchronization. |
di_resourcegroup_v1 |
| ScheduleResourceSettings |
object |
The scheduling resource settings. |
|
|
RequestedCu |
number |
CUs allocated from the scheduling resource group for offline scheduling. |
2.0 |
|
ResourceGroupIdentifier |
string |
Scheduling resource group name for offline scheduling. |
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> |
Object transformation mappings. Each element defines source object selection rules and the transformation rules applied to them. 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> |
Rules that select source objects for synchronization. Combined rules select a single table. |
|
|
object |
Selects source objects (database, schema, or table) for synchronization. |
||
|
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 |
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.