All Products
Search
Document Center

Data Management:ListDDLPublishRecords

Last Updated:Aug 28, 2026

Queries the publishing details of a schema design ticket.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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:

  • EXEMPT_PASS: The ticket passes without approval.

  • TO_AUDIT: The ticket is pending approval.

  • CANCEL: The ticket is canceled.

  • SUCCESS: The ticket is approved.

  • FAIL: The ticket fails to pass the approval.

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:

  • true: The approval is terminated.

  • false: The approval is not terminated.

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:

  • START: The ticket is created.

  • ANALYZE: The ticket is under analysis.

  • AUDIT: The ticket is under approval.

  • DISPATCH: A task is generated for the ticket.

  • SUCCESS: The task is successful.

AUDIT

RiskLevel

string

The risk level of the operation. Valid values:

  • NONE_RISK: The operation does not have risks.

  • LOW_RISK: The operation is at low risk.

  • MIDDLE_RISK: The operation is at medium risk.

  • HIGH_RISK: The operation is at high risk.

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:

  • true: The database is a logical database.

  • false: The database is not a logical database.

false

PlanTime

string

The time to publish the ticket.

2020-12-14 20:52:38

PublishStrategy

string

The publishing policy. Valid values:

  • IMMEDIATELY: Publishes the ticket immediately.

  • REGULARLY: Publishes the ticket at a scheduled time.

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: The state of the task is unknown.

  • SUCCESS: The task is successful.

  • FAIL: The task fails.

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.