Queries the information about a data change ticket in Data Management (DMS).
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:GetDataCorrectOrderDetail |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Tid |
integer |
No |
The ID of the tenant. You can call the GetUserActiveTenant or ListUserTenants operation to obtain the tenant ID. |
3*** |
| OrderId |
integer |
Yes |
The ID of the ticket. You can call the ListOrders operation to obtain the ticket ID. |
420**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The ID of the request. |
427688B8-ADFB-4C4E-9D45-EF5C1FD6E23D |
| DataCorrectOrderDetail |
object |
The information about the data change ticket. |
|
| PreCheckDetail |
object |
||
| TaskCheckDO |
array<object> |
The precheck details of the ticket. |
|
|
object |
|||
| UserTip |
string |
The message that appears when a check step is executed. |
tip messsage |
| CheckStatus |
string |
The state of the precheck. Valid values:
|
SUCCESS |
| CheckStep |
string |
The check step of the precheck. Valid values:
|
PERMISSION_CHECK |
| OrderDetail |
object |
The details of the ticket. |
|
| RbSQL |
string |
The SQL statements used to roll back the data change. |
empty |
| RbAttachmentName |
string |
The name of the attachment that contains the SQL statements used to roll back the data change. |
test |
| Classify |
string |
The category of the reason for the data change. |
test |
| ExeSQL |
string |
The executed SQL statements. |
update t1 set name = 'xxx' where id <= 100 |
| EstimateAffectRows |
integer |
The estimated number of affected rows. |
100 |
| RbSQLType |
string |
The format of the SQL statements used to roll back the data change. Valid values:
|
text |
| ActualAffectRows |
integer |
The number of affected rows that is obtained by the precheck. |
100 |
| IgnoreAffectRows |
boolean |
Indicates whether the precheck result is ignored. Valid values:
|
false |
| AttachmentName |
string |
The name of the attachment that contains the SQL statements used to change data. |
xxx |
| SqlType |
string |
The format of the SQL statements used to change data. Valid values:
|
text |
| IgnoreAffectRowsReason |
string |
The reason why the precheck result is ignored. |
test |
| DatabaseList |
object |
||
| Database |
array<object> |
The information about the database in which data is changed. |
|
|
object |
|||
| DbId |
integer |
The database ID. |
1860**** |
| DbType |
string |
The engine of the database. |
mysql |
| Logic |
boolean |
Indicates whether the database is a logical database. Valid values:
|
false |
| SearchName |
string |
The name that is used to search for the database. |
xxx@xxx:3306 |
| EnvType |
string |
The type of the environment to which the database belongs. Valid values:
|
product |
| Status |
string |
The specific state of the data change ticket. Valid values: Note
The state of the ticket is not exactly equivalent to the status code for the ticket. To query the status code of the ticket, you can call the GetOrderBaseInfo operation and check the value of StatusCode in the response.
|
approved |
| ExecMode |
string |
The execution mode of the ticket after the ticket is approved. Valid values:
|
COMMITOR |
| ConfigDetail |
object |
The configurations of the ticket. This parameter is used to store the configuration information specific to a data change ticket type. |
|
| DetailType |
string |
The type of the ticket. Valid values:
|
BIG_FILE |
| FileType |
string |
The type of the file to be imported. This parameter is valid if the value of DetailType is BIG_FILE. Valid values:
|
CSV |
| CsvTableName |
string |
The name of the table to which data is to be imported. This parameter is valid only if the value of DetailType is BIG_FILE. If the value of FileType is SQL, this parameter is empty. |
tb_import_tb_name |
| FileEncoding |
string |
The encoding method of the file. This parameter may be empty, which indicates the value of AUTO. Valid values:
|
UTF-8 |
| Cron |
boolean |
Indicates whether the task is a scheduled task for historical data cleanup. This parameter is a reserved parameter and is valid only if the value of DetailType is CRON_CLEAR_DATA. |
true |
| CronCallTimes |
integer |
The number of times the scheduled task is run. This parameter is valid only if the value of DetailType is CRON_CLEAR_DATA. |
0 |
| CronFormat |
string |
The CRON expression of the scheduled task. This parameter is valid only if the value of DetailType is CRON_CLEAR_DATA. |
0 0 2 * * ? |
| Duration |
integer |
The execution duration of the scheduled task. Unit: hour. This parameter is valid only if the value of DetailType is CRON_CLEAR_DATA. If the value is greater than 0, an execution duration is set. |
1 |
| CronStatus |
string |
The state of the scheduled task. If this parameter is empty, the task is not run. Valid values:
|
SUCCESS |
| CronLastCallStartTime |
string |
The time when the task was last run. |
2024-04-19 02:00:00.0 |
| CronNextCallTime |
string |
The time when the task is run next time. This parameter is returned only if the value of CronStatus is SUCCESS. |
2024-04-19 02:00:00 |
| CurrentTaskId |
integer |
The ID of the current data change task. This is a reserved parameter and can be ignored. |
13*** |
| ImportExtConfig |
object |
The additional configuration information about data import. This parameter is valid if the value of DetailType is BIG_FILE. |
|
| InsertType |
string |
The mode in which data is to be imported to the destination table. Valid values:
Note
This parameter is valid if the value of FileType is CSV or EXCEL. |
INSERT |
| CsvFirstRowIsColumnDef |
boolean |
Indicates whether the first row of the CSV file contains field names. Valid values:
Note
This parameter is valid if the value of FileType is CSV or EXCEL. |
true |
| IgnoreError |
boolean |
Indicates whether an error that occurs is ignored. Valid values:
|
false |
| ImportMode |
string |
The import mode. Valid values:
|
FAST_MODE |
| CronExtConfig |
object |
The additional configuration information about historical data cleanup. This parameter is valid only if the value of DetailType is CRON_CLEAR_DATA. |
|
| OptimizeTableAfterEveryClearTimes |
integer |
Indicates whether the Periodically Optimize Table feature is enabled. Valid values:
|
0 |
| CurrentClearTaskCount |
integer |
The number of times defragmentation is performed. This parameter is valid only if the value of OptimizeTableAfterEveryClearTimes is greater than 0. |
0 |
| ErrorCode |
string |
The error code returned if the request fails. |
UnknownError |
| ErrorMessage |
string |
The error message returned if the request fails. |
UnknownError |
| Success |
boolean |
Indicates whether the operation was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "427688B8-ADFB-4C4E-9D45-EF5C1FD6E23D",
"DataCorrectOrderDetail": {
"PreCheckDetail": {
"TaskCheckDO": [
{
"UserTip": "tip messsage",
"CheckStatus": "SUCCESS",
"CheckStep": "PERMISSION_CHECK"
}
]
},
"OrderDetail": {
"RbSQL": "empty",
"RbAttachmentName": "test",
"Classify": "test",
"ExeSQL": "update t1 set name = 'xxx' where id <= 100",
"EstimateAffectRows": 100,
"RbSQLType": "text",
"ActualAffectRows": 100,
"IgnoreAffectRows": false,
"AttachmentName": "xxx",
"SqlType": "text",
"IgnoreAffectRowsReason": "test"
},
"DatabaseList": {
"Database": [
{
"DbId": 0,
"DbType": "mysql",
"Logic": false,
"SearchName": "xxx@xxx:3306",
"EnvType": "product"
}
]
},
"Status": "approved",
"ExecMode": "COMMITOR",
"ConfigDetail": {
"DetailType": "BIG_FILE",
"FileType": "CSV",
"CsvTableName": "tb_import_tb_name",
"FileEncoding": "UTF-8",
"Cron": true,
"CronCallTimes": 0,
"CronFormat": "0 0 2 * * ?",
"Duration": 1,
"CronStatus": "SUCCESS",
"CronLastCallStartTime": "2024-04-19 02:00:00.0",
"CronNextCallTime": "2024-04-19 02:00:00\n",
"CurrentTaskId": 0,
"ImportExtConfig": {
"InsertType": "INSERT",
"CsvFirstRowIsColumnDef": true,
"IgnoreError": false,
"ImportMode": "FAST_MODE"
},
"CronExtConfig": {
"OptimizeTableAfterEveryClearTimes": 0,
"CurrentClearTaskCount": 0
}
}
},
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.