All Products
Search
Document Center

Data Management:GetStructSyncOrderDetail

Last Updated:Oct 21, 2024

Queries the details of a schema synchronization ticket.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
OrderIdlongYes

The ID of the ticket.

43****
TidlongNo

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 Data Management (DMS) console. For more information, see Manage DMS tenants.
1

Response parameters

ParameterTypeDescriptionExample
object

The schema of the response.

RequestIdstring

The ID of the request.

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

Indicates whether the request was successful.

true
ErrorMessagestring

The error message.

UnknownError
ErrorCodestring

The error code.

UnknownError
StructSyncOrderDetailobject

The details of the schema synchronization ticket.

SourceDatabaseInfoobject

The information about the source database.

DbIdlong

The ID of the source database.

432532
SearchNamestring

The name that is used to search for the database.

test
DbTypestring

The type of the database engine.

MySQL
EnvTypestring

The type of the environment to which the database instance belongs. For more information, see Change the environment type of an instance.

dev
Logicboolean

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
TargetDatabaseInfoobject

The information about the destination database.

DbIdlong

The ID of the destination database.

432543
SearchNamestring

The name that is used to search for the database.

test
DbTypestring

The type of the database engine.

MySQL
EnvTypestring

The type of the environment to which the database instance belongs. For more information, see Change the environment type of an instance.

dev
Logicboolean

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
SourceTypestring

The schema version of the source database. Valid values:

  • DATASOURCE: the default latest version of the system
  • VERSION: a previous schema version that you manually specify
VERSION
SourceVersionInfoobject

The version information about the source instance.

Note This parameter is displayed only when the value of the SourceType parameter is VERSION.
VersionIdstring

The version number.

e179bbb8163dcdcfacda24858bedb4d8006ae2b8
TargetTypestring

The schema version of the destination database. Valid values:

  • DATASOURCE: the default latest version of the system
  • VERSION: a previous schema version that you manually specify
DATASOURCE
TargetVersionInfoobject

The version information about the destination instance.

Note This parameter is displayed only when the value of the SourceType parameter is VERSION.
VersionIdstring

The version number.

e179bbb8163dcdcfacda24858bedb4d8006ae2b8
TableInfoListarray<object>

The information about the table whose schema you want to synchronize.

TableInfoobject

The table whose schema you want to synchronize.

SourceTableNamestring

The name of the table whose schema you want to synchronize.

test_tbl
TargetTableNamestring

The name of the table to which you want to synchronize the schema of a table.

test_tbl
IgnoreErrorboolean

Indicates whether to skip errors. Valid values:

  • true: skips the error and continues to execute SQL statements.
  • false: stops executing SQL statements.
false

Examples

Sample success responses

JSONformat

{
  "RequestId": "4E1D2B4D-3E53-4ABC-999D-1D2520B3471A",
  "Success": true,
  "ErrorMessage": "UnknownError",
  "ErrorCode": "UnknownError",
  "StructSyncOrderDetail": {
    "SourceDatabaseInfo": {
      "DbId": 432532,
      "SearchName": "test",
      "DbType": "MySQL",
      "EnvType": "dev",
      "Logic": false
    },
    "TargetDatabaseInfo": {
      "DbId": 432543,
      "SearchName": "test",
      "DbType": "MySQL",
      "EnvType": "dev",
      "Logic": false
    },
    "SourceType": "VERSION",
    "SourceVersionInfo": {
      "VersionId": "e179bbb8163dcdcfacda24858bedb4d8006ae2b8"
    },
    "TargetType": "DATASOURCE",
    "TargetVersionInfo": {
      "VersionId": "e179bbb8163dcdcfacda24858bedb4d8006ae2b8"
    },
    "TableInfoList": [
      {
        "SourceTableName": "test_tbl",
        "TargetTableName": "test_tbl"
      }
    ],
    "IgnoreError": false
  }
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history