All Products
Search
Document Center

Data Management:CreateStructSyncOrder

Last Updated:Dec 02, 2026

Creates a schema synchronization 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:CreateStructSyncOrder

create

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

Comment

string

Yes

The remarks of the ticket.

test

RelatedUserList

array

No

The IDs of the stakeholders.

integer

No

The ID of a stakeholder.

432***

Param

object

Yes

The parameters of the ticket.

Source

object

Yes

The information about the base database.

DbId

integer

Yes

The ID of the database. You can call the SearchDatabases operation to query the ID of the database.

432****

DbSearchName

string

Yes

The name that is used to search for the database. You can call the SearchDatabases operation to query the name of the database.

test

Logic

boolean

No

Specifies 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

VersionId

string

No

The version number of the schema. The default value is the latest schema version number. For more information, see Manage schema versions.

e179bbb8163dcdcfacda24858bedb4d8006ae2b8

Target

object

Yes

The information about the database to which you want to synchronize the schema of a table.

DbId

integer

Yes

The ID of the database. You can call the SearchDatabases operation to query the ID of the database.

432***

DbSearchName

string

Yes

The name that is used to search for the database. You can call the SearchDatabases operation to query the name of the database.

test

Logic

boolean

No

Specifies 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

VersionId

string

No

The version number. By default, this parameter is left empty.

Note

If you specify the schema version number of the destination database, Data Management (DMS) only compares the schemas of the two databases.

e179bbb8163dcdcfacda24858bedb4d8006ae2b8

IgnoreError

boolean

No

Specifies whether to skip an error that occurs in executing an SQL statement. Valid values:

  • true: continues to execute subsequent SQL statements if an error occurs in executing an SQL statement.

  • false: stops executing subsequent SQL statements if an error occurs in executing an SQL statement.

false

TableInfoList

array<object>

No

The information about the table of which you want to synchronize the schema.

object

No

The table of which you want to synchronize the schema.

SourceTableName

string

No

The name of the source table.

test_tbl

TargetTableName

string

No

The name of the destination table.

test_tbl

AttachmentKey

string

No

The key of an attachment that is returned after the attachment is uploaded. You can call the GetUserUploadFileJob operation to query the key of the attachment.

upload_3c7edea3-e4c3-4403-857d-737043036f69_test.sql

Tid

integer

No

The ID of the tenant.

Note

To view the tenant ID, move the pointer over the profile picture in the upper-right corner of the DMS console. For more information, see Manage DMS tenants.

3***

Response elements

Element

Type

Description

Example

object

The schema of the response.

RequestId

string

The ID of the request.

4E1D2B4D-3E53-4ABC-999D-1D2520B3471A

Success

boolean

Indicates whether the request is successful.

true

ErrorMessage

string

The error message.

UnknownError

ErrorCode

string

The error code.

UnknownError

CreateOrderResult

array

The result of creating the ticket.

integer

The ID of the ticket.

432****

Examples

Success response

JSON format

{
  "RequestId": "4E1D2B4D-3E53-4ABC-999D-1D2520B3471A",
  "Success": true,
  "ErrorMessage": "UnknownError",
  "ErrorCode": "UnknownError",
  "CreateOrderResult": [
    4325353
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.