Queries the publishing details of a schema design ticket.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:ListDDLPublishRecords |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| OrderId |
integer |
Yes |
The ID of the ticket. Note
You can create a schema design ticket in the Data Management (DMS) console. For more information, see Design schemas. You can also call the CreateOrder operation to create a schema design ticket and obtain the ID of the ticket. |
3214325 |
| Tid |
integer |
No |
The ID of the tenant. Note
To view the ID of the tenant, log on to the DMS console and move the pointer over the profile picture in the upper-right corner. For more information, see Manage DMS tenants. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The schema of the response. |
||
| RequestId |
string |
The ID of the request. |
A1549FB0-D4B8-4140-919F-17322C1072B8 |
| Success |
boolean |
Indicates whether the request is successful. |
true |
| ErrorMessage |
string |
The error message returned if the request failed. |
UnknownError |
| ErrorCode |
string |
The error code returned if the request failed. |
UnknownError |
| DDLPublishRecordList |
array<object> |
The details of the publishing records. |
|
|
array<object> |
The publishing record. |
||
| AuditStatus |
string |
The approval state of the ticket. Valid values:
|
CANCEL |
| AuditExpireTime |
string |
The time when the approval expires. |
2020-12-14 20:52:38 |
| CreatorId |
integer |
The ID of the user who created the ticket. You can obtain the user ID by calling the GetUser operation and querying the value of the UserId parameter. This value is not the unique ID (UID) of the Alibaba Cloud account. |
1423 |
| Finality |
boolean |
Indicates whether the approval is terminated. Valid values:
Note
The approval can be terminated for multiple reasons, such as withdrawing the application or the ticket not being approved before the specified time. |
true |
| FinalityReason |
string |
The reason for the termination. |
CANCEL |
| PublishStatus |
string |
The publishing state of the ticket. Valid values:
|
AUDIT |
| RiskLevel |
string |
The risk level of the operation. Valid values:
|
LOW_RISK |
| StatusDesc |
string |
The description of the publishing state. |
CANCEL |
| WorkflowInstanceId |
integer |
The ID of the approval process. |
432153 |
| Comment |
string |
Release remarks. |
发布备注 |
| PublishTaskInfoList |
array<object> |
The list of publishing tasks. |
|
|
array<object> |
The information about the publishing task. |
||
| DbId |
integer |
The ID of the database. |
4325 |
| Logic |
boolean |
Indicates whether the database is a logical database. Valid values:
|
false |
| PlanTime |
string |
The time to publish the ticket. |
2020-12-14 20:52:38 |
| PublishStrategy |
string |
The publishing policy. Valid values:
|
IMMEDIATELY |
| StatusDesc |
string |
The description of the state. |
NONE |
| TaskJobStatus |
string |
The state of the task. |
NONE |
| PublishJobList |
array<object> |
The list of the publishing tasks. |
|
|
object |
The details of the publishing task. |
||
| ExecuteCount |
integer |
The number of executed SQL statements. |
0 |
| Scripts |
string |
The script for data changes. |
ALTER TABLE test_toolkit_rename_table_after_rename MODIFY COLUMN gmt_modified datetime NOT NULL |
| TableName |
string |
The name of the table after the change. |
test_toolkit_rename_table_after_rename |
| StatusDesc |
string |
The description of the state. |
NONE |
| TaskJobStatus |
string |
The state of the publishing task. Valid values:
|
NONE |
| DBTaskGroupId |
integer |
The ID of the SQL task group. |
423515 |
Examples
Success response
JSON format
{
"RequestId": "A1549FB0-D4B8-4140-919F-17322C1072B8",
"Success": true,
"ErrorMessage": "UnknownError",
"ErrorCode": "UnknownError",
"DDLPublishRecordList": [
{
"AuditStatus": "CANCEL",
"AuditExpireTime": "2020-12-14 20:52:38",
"CreatorId": 1423,
"Finality": true,
"FinalityReason": "CANCEL",
"PublishStatus": "AUDIT",
"RiskLevel": "LOW_RISK",
"StatusDesc": "CANCEL",
"WorkflowInstanceId": 432153,
"Comment": "发布备注",
"PublishTaskInfoList": [
{
"DbId": 4325,
"Logic": false,
"PlanTime": "2020-12-14 20:52:38",
"PublishStrategy": "IMMEDIATELY",
"StatusDesc": "NONE",
"TaskJobStatus": "NONE",
"PublishJobList": [
{
"ExecuteCount": 0,
"Scripts": "ALTER TABLE test_toolkit_rename_table_after_rename MODIFY COLUMN gmt_modified datetime NOT NULL",
"TableName": "test_toolkit_rename_table_after_rename",
"StatusDesc": "NONE",
"TaskJobStatus": "NONE",
"DBTaskGroupId": 423515
}
]
}
]
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.