Consulta el resultado del análisis de una tarea de sincronización de esquemas.
Pruébelo ahora
Test
Autorización de RAM
|
Action |
Nivel de acceso |
Tipo de recurso |
Clave de condición |
Acción dependiente |
|
dms:GetStructSyncJobAnalyzeResult |
get |
*All Resource
|
Ninguna | Ninguna |
Parámetros de la solicitud
|
Parámetro |
Tipo |
Obligatorio |
Descripción |
Ejemplo |
| OrderId |
integer |
Sí |
El ID del ticket. |
1342355 |
| CompareType |
string |
No |
El tipo de comparación. Valores válidos:
|
CREATE_TABLE |
| PageNumber |
integer |
No |
El número de la página a devolver. |
1 |
| PageSize |
integer |
No |
El número de entradas a devolver en cada página. |
20 |
| Tid |
integer |
No |
The ID of the tenant. Nota
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 |
Elementos de la respuesta
|
Elemento |
Tipo |
Descripción |
Ejemplo |
|
object |
El esquema de la respuesta. |
||
| RequestId |
string |
El ID de la solicitud. |
1810E635-A2D7-428B-BAA9-85DAEB9B1A77 |
| Success |
boolean |
Indica si la solicitud se realizó correctamente. |
true |
| ErrorMessage |
string |
El mensaje de error. |
UnknownError |
| ErrorCode |
string |
El código de error. |
UnknownError |
| StructSyncJobAnalyzeResult |
object |
El resultado del análisis de la tarea de sincronización de esquemas. |
|
| SummaryList |
array<object> |
Las estadísticas de los resultados del análisis. |
|
|
object |
Las estadísticas de un resultado del análisis. |
||
| CompareType |
string |
El tipo de comparación. Valores válidos:
|
CREATE_TABLE |
| Count |
integer |
El número de tablas. |
1 |
| ResultList |
array<object> |
Los detalles de los resultados del análisis. |
|
|
object |
Los detalles de un resultado del análisis. |
||
| SourceTableName |
string |
El nombre de la tabla de origen. |
helloz_bak |
| TargetTableName |
string |
El nombre de la tabla de destino. |
helloz_bak |
| Script |
string |
El script SQL. |
/* origin table[helloz_bak] exist, target table[helloz_bak] not exist */\n/* generate [helloz_bak] create table sql */\ncreate table `helloz_bak`(\n\t`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键',\n\t`gmt_create` datetime NOT NULL COMMENT '创建时间',\n\t`gmt_modified` datetime NOT NULL COMMENT '修改时间',\n\t`num` int(11) NOT NULL COMMENT '编号',\n\t`addr` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '地址',\n\tPRIMARY KEY (`id`)\n)\nDEFAULT CHARACTER SET=utf8 COLLATE=utf8_general_ci\nCOMMENT='test'\n\n; |
Ejemplos
Respuesta exitosa
JSON Formato
{
"RequestId": "1810E635-A2D7-428B-BAA9-85DAEB9B1A77",
"Success": true,
"ErrorMessage": "UnknownError",
"ErrorCode": "UnknownError",
"StructSyncJobAnalyzeResult": {
"SummaryList": [
{
"CompareType": "CREATE_TABLE",
"Count": 1
}
],
"ResultList": [
{
"SourceTableName": "helloz_bak",
"TargetTableName": "helloz_bak",
"Script": "/* origin table[helloz_bak] exist, target table[helloz_bak] not exist */\\n/* generate [helloz_bak] create table sql */\\ncreate table `helloz_bak`(\\n\\t`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键',\\n\\t`gmt_create` datetime NOT NULL COMMENT '创建时间',\\n\\t`gmt_modified` datetime NOT NULL COMMENT '修改时间',\\n\\t`num` int(11) NOT NULL COMMENT '编号',\\n\\t`addr` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '地址',\\n\\tPRIMARY KEY (`id`)\\n)\\nDEFAULT CHARACTER SET=utf8 COLLATE=utf8_general_ci\\nCOMMENT='test'\\n\\n;"
}
]
}
}
Códigos de error
Consulte Códigos de error para ver la lista completa.
Notas de la versión
Consulte Notas de la versión para ver la lista completa.