Creates a schema synchronization ticket.
Operation description
Available only for database instances in Security Collaboration control mode.
Try it now
Test
RAM authorization
|
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 |
Ticket remarks. |
test |
| RelatedUserList |
array |
No |
Stakeholder IDs. |
|
|
integer |
No |
Stakeholder ID. |
432*** |
|
| Param |
object |
Yes |
Ticket parameters. |
|
| Source |
object |
Yes |
Base database information. |
|
| DbId |
integer |
Yes |
Database ID. Call SearchDatabases to query this value. |
432**** |
| DbSearchName |
string |
Yes |
Database search name. Call SearchDatabases to query this value. |
test |
| Logic |
boolean |
No |
Whether this is a logical database. Valid values:
|
false |
| VersionId |
string |
No |
Schema version number. Defaults to the latest version. Manage schema versions. |
e179bbb8163dcdcfacda24858bedb4d8006ae2b8 |
| Target |
object |
Yes |
Target database for schema synchronization. |
|
| DbId |
integer |
Yes |
Database ID. Call SearchDatabases to query this value. |
432*** |
| DbSearchName |
string |
Yes |
Database search name. Call SearchDatabases to query this value. |
test |
| Logic |
boolean |
No |
Whether this is a logical database. Valid values:
|
false |
| VersionId |
string |
No |
Schema version number. Empty by default. Note
If specified, DMS only compares schemas between the two databases. |
e179bbb8163dcdcfacda24858bedb4d8006ae2b8 |
| IgnoreError |
boolean |
No |
Whether to skip errors during SQL execution. Valid values:
|
false |
| TableInfoList |
array<object> |
No |
Tables for schema synchronization. |
|
|
object |
No |
Table for schema synchronization. |
||
| 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 |
Attachment key returned after upload. Call GetUserUploadFileJob to query this value. |
upload_3c7edea3-e4c3-4403-857d-737043036f69_test.sql |
| Tid |
integer |
No |
The ID of the tenant. Note
To find the tenant ID, hover over the profile icon in the upper-right corner of the DMS console. Manage DMS tenants. |
3*** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The schema of the response. |
||
| RequestId |
string |
Request ID. |
4E1D2B4D-3E53-4ABC-999D-1D2520B3471A |
| Success |
boolean |
Whether the request succeeded. |
true |
| ErrorMessage |
string |
The error message. |
UnknownError |
| ErrorCode |
string |
The error code. |
UnknownError |
| CreateOrderResult |
array |
Ticket creation result. |
|
|
integer |
Ticket ID. |
432**** |
Examples
Success response
JSON format
{
"RequestId": "4E1D2B4D-3E53-4ABC-999D-1D2520B3471A",
"Success": true,
"ErrorMessage": "UnknownError",
"ErrorCode": "UnknownError",
"CreateOrderResult": [
0
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.