You can call CreateStructSyncOrder to create a schema synchronization ticket.
Debugging
request parameters
| Parameter | Type | Is it required? | Example | Description |
|---|---|---|---|---|
| Comment | String | Yes | test |
The remarks about the ticket. |
| RelatedUserList | Array of Long | No | 432435 |
The related person has passed. |
| Param | Object | Yes |
The parameter of the ticket. |
|
| Source | Object | Yes |
The information about the base database. |
|
| DbId | Long | Yes | 4324532 |
Library creation method, callable SearchDatabases interface to get. |
| DbSearchName | String | Yes | test |
Library search name, callable SearchDatabases interface to get. |
| Logic | Boolean | No | false |
indicates whether the database is a logical database. Valid values:
|
| VersionId | String | No | e179bbb8163dcdcfacda24858bedb4d8006ae2b8 |
The version number. the default value is the latest table structure version. For more information, see manage table schema versions . |
| Target | Object | Yes |
The information about the destination database. |
|
| DbId | Long | Yes | 432432 |
Library creation method, callable SearchDatabases interface to get. |
| DbSearchName | String | Yes | test |
Library search name, callable SearchDatabases interface to get. |
| Logic | Boolean | No | false |
indicates whether the database is a logical database. Valid values:
|
| VersionId | String | No | e179bbb8163dcdcfacda24858bedb4d8006ae2b8 |
The version number. This field is empty by default. Note When you enter the table structure version number of the destination database, the
ticket compares only the table structures between the two databases.
|
| IgnoreError | Boolean | No | false |
Specifies whether to ignore error reports. Valid values:
|
| TableInfoList | Array | No |
The list of information about the tables to be synchronized. |
|
| SourceTableName | String | No | test_tbl |
The name of the source table. |
| TargetTableName | String | No | test_tbl |
The name of the destination table. |
| AttachmentKey | String | No | upload_3c7edea3-e4c3-4403-857d-737043036f69_test.sql |
The attachment returned after the attachment is uploaded successfully. you can call GetUserUploadFileJob interface to get. |
| Tid | Long | No | 1 |
The tenant has expired. Note The information of the tenant's chart is taken from the avatar in the upper-right
corner of the system. For more information, see View tenant information .
|
| RegionId | String | No | cn-hangzhou |
Select the service region of the destination region to call this operation. For more information about the valid values, see switchegionfigure parameter description . Note select based on the location of the application nearby.
|
return data
| Parameter | Type | Example | Description |
|---|---|---|---|
| RequestId | String | 4E1D2B4D-3E53-4ABC-999D-1D2520B3471A |
The error message returned because the request already exists. |
| Success | Boolean | true |
Whether the request is successful. |
| ErrorMessage | String | UnknownError |
Error message. |
| ErrorCode | String | UnknownError |
Error code. |
| CreateOrderResult | Array of Long | 4325353 |
The ticket number. |
Examples
Sample requests
http(s)://dms-enterprise.aliyuncs.com/? <oment=Test&RelatedUserList=[432435] &<ARAM={"producource":{"describancd":4324532,"describanceasame":"test","producogic":false,"consumersionizd":"orderd"},"creatarget":{"bolbancedd":432432,"bolearcherd":"false","> test"> "feature"},"domainyncprojectype":"********************","descrignorror":false,"availablenamenforegionist":[{"SourceTableName":"test_tbl","TargetTableName":"test_tbl"}]&examachttmentey=-1¶meter_id=common request parameters&id=1
Sample success responses
XML Format
HTTP/1.1 200 OK Content-Type:application/xml <CreateStructSyncOrderResponse> <CreateOrderResult>2000000</CreateOrderResult> <RequestId>0DF19315-DCAF-4376-8006-1CEB0BBC6B13</RequestId> <Success>true</Success> </CreateStructSyncOrderResponse>
JSON Format
HTTP/1.1 200 OK Content-Type:application/json { "CreateOrderResult" : [ 2000000 ], "RequestId" : "0DF19315-DCAF-4376-8006-1CEB0BBC6B13", "Success" : true }
Error code
Access error Center For more information, see error codes.