Queries the information about a data change ticket in Data Management (DMS).
Debugging
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| Action | String | Yes | GetDataCorrectOrderDetail |
The operation that you want to perform. Set the value to GetDataCorrectOrderDetail. |
| Tid | Long | No | 3*** |
The ID of the tenant. You can call the GetUserActiveTenant or ListUserTenants operation to obtain the tenant ID. |
| OrderId | Long | Yes | 420**** |
The ID of the ticket. You can call the ListOrders operation to obtain the ticket ID. |
| RegionId | String | No | cn-hangzhou |
The ID of the region in which DMS is activated. For more information, see RegionID parameter. |
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| RequestId | String | 427688B8-ADFB-4C4E-9D45-EF5C1FD6E23D |
The ID of the request. |
| DataCorrectOrderDetail | Object |
The information about the data change ticket. |
|
| PreCheckDetail | Array of TaskCheckDO |
The precheck details of the ticket. |
|
| TaskCheckDO | |||
| UserTip | String | tip messsage |
The message that indicates a check step. |
| CheckStatus | String | SUCCESS |
The status of the precheck. Valid values:
|
| CheckStep | String | PERMISSION_CHECK |
The check step of the precheck. Valid values:
|
| OrderDetail | Object |
The details of the ticket. |
|
| RbSQL | String | empty |
The SQL statements used to roll back the data change. |
| RbAttachmentName | String | test |
The name of the attachment that contains the SQL statements used to roll back the data change. |
| Classify | String | test |
The category of the reason for the data change. |
| ExeSQL | String | update t1 set name = 'xxx' where id <= 100 |
The executed SQL statements. |
| EstimateAffectRows | Long | 100 |
The estimated number of affected rows. |
| RbSQLType | String | text |
The format of the SQL statements used to roll back the data change. Valid values:
|
| ActualAffectRows | Long | 100 |
The number of affected rows that is obtained by the precheck. |
| IgnoreAffectRows | Boolean | false |
Indicates whether the precheck result is ignored. Valid values:
|
| AttachmentName | String | xxx |
The name of the attachment that contains the SQL statements used to change data. |
| SqlType | String | text |
The format of the SQL statements used to change data. Valid values:
|
| IgnoreAffectRowsReason | String | test |
The reason why the precheck result is ignored. |
| DatabaseList | Array of Database |
The information about the database in which data is changed. |
|
| Database | |||
| DbId | Integer | 1860**** |
The ID of the database. |
| DbType | String | mysql |
The engine of the database. |
| Logic | Boolean | false |
Indicates whether the database is a logical database. Valid values:
|
| SearchName | String | xxx@xxx:3306 |
The name that is used to search for the database. |
| EnvType | String | product |
The type of the environment to which the database belongs. Valid values:
|
| Status | String | approved |
The status of the ticket. Valid values:
|
| ExecMode | String | COMMITOR |
The execution mode of the ticket after the ticket is approved. Valid values:
|
| ErrorCode | String | UnknownError |
The error code returned if the request fails. |
| ErrorMessage | String | UnknownError |
The error message returned if the request fails. |
| Success | Boolean | true |
Indicates whether the request is successful. Valid values:
|
Examples
Sample requests
http(s)://dms-enterprise.aliyuncs.com/?Action=GetDataCorrectOrderDetail
&Tid=3***
&OrderId=420****
&<Common request parameters>
Sample success responses
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<GetDataCorrectOrderDetailResponse>
<RequestId>427688B8-ADFB-4C4E-9D45-EF5C1FD6E23D</RequestId>
<DataCorrectOrderDetail>
<PreCheckDetail>
<UserTip>tip messsage</UserTip>
<CheckStatus>SUCCESS</CheckStatus>
<CheckStep>PERMISSION_CHECK</CheckStep>
</PreCheckDetail>
<OrderDetail>
<RbSQL>empty</RbSQL>
<RbAttachmentName>test</RbAttachmentName>
<Classify>test</Classify>
<ExeSQL>update t1 set name = 'xxx' where id <= 100</ExeSQL>
<EstimateAffectRows>100</EstimateAffectRows>
<RbSQLType>text</RbSQLType>
<ActualAffectRows>100</ActualAffectRows>
<IgnoreAffectRows>false</IgnoreAffectRows>
<AttachmentName>xxx</AttachmentName>
<SqlType>text</SqlType>
<IgnoreAffectRowsReason>test</IgnoreAffectRowsReason>
</OrderDetail>
<DatabaseList>
<DbId>1860****</DbId>
<DbType>mysql</DbType>
<Logic>false</Logic>
<SearchName>xxx@xxx:3306</SearchName>
<EnvType>product</EnvType>
</DatabaseList>
<Status>approved</Status>
<ExecMode>COMMITOR</ExecMode>
</DataCorrectOrderDetail>
<Success>true</Success>
</GetDataCorrectOrderDetailResponse>
JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "427688B8-ADFB-4C4E-9D45-EF5C1FD6E23D",
"DataCorrectOrderDetail" : {
"PreCheckDetail" : [ {
"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" : [ {
"DbId" : "1860****",
"DbType" : "mysql",
"Logic" : false,
"SearchName" : "xxx@xxx:3306",
"EnvType" : "product"
} ],
"Status" : "approved",
"ExecMode" : "COMMITOR"
},
"Success" : true
}
Error codes
For a list of error codes, visit the API Error Center.