Tous les produits
Search
Centre de documentation

:GetDataCorrectOrderDetail

Dernière mise à jour :Aug 07, 2026

Consulte les informations relatives à un ticket de modification de données dans Data Management (DMS).

Testez maintenant

Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale. Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale.

Test

Autorisation RAM

Le tableau ci-dessous décrit les autorisations nécessaires pour appeler cette API. Vous pouvez les définir dans une politique Resource Access Management (RAM). Les colonnes du tableau sont détaillées ci-dessous :

  • Action : les actions peuvent être utilisées dans l'élément Action des instructions de politique de permissions RAM pour accorder les autorisations nécessaires à l'exécution de l'opération.

  • API : l'API que vous pouvez appeler pour exécuter l'action.

  • Niveau d'accès : le niveau d'accès prédéfini accordé pour chaque API. Valeurs valides : create, list, get, update et delete.

  • Type de ressource : le type de ressource qui prend en charge l'autorisation pour exécuter l'action. Il indique si l'action prend en charge les permissions au niveau de la ressource. La ressource spécifiée doit être compatible avec l'action. Sinon, la politique sera inefficace.

    • Pour les API avec permissions au niveau de la ressource, les types de ressource requis sont marqués d'un astérisque (*). Spécifiez l'Alibaba Cloud Resource Name (ARN) correspondant dans l'élément Resource de la politique.

    • Pour les API sans permissions au niveau de la ressource, la valeur All Resources est affichée. Utilisez un astérisque (*) dans l'élément Resource de la politique.

  • Clé de condition : les clés de condition définies par le service. La clé permet un contrôle granulaire, applicable aux actions seules ou aux actions associées à des ressources spécifiques. En plus des clés de condition propres au service, Alibaba Cloud fournit un ensemble de clés de condition communes applicables à tous les services pris en charge par RAM.

  • Action dépendante : les actions dépendantes requises pour exécuter l'action. Pour mener à bien l'opération, l'utilisateur RAM ou le rôle RAM doit disposer des permissions pour toutes les actions dépendantes.

dms:GetDataCorrectOrderDetail

get

*All Resource

*

Aucune Aucune

Paramètres de requête

Paramètre

Type

Requis

Description

Exemple

Tid

integer

Non

L'identifiant du locataire. Vous pouvez appeler l'opération GetUserActiveTenant ou ListUserTenants pour obtenir l'identifiant du locataire.

3***

OrderId

integer

Oui

L'identifiant du ticket. Vous pouvez appeler l'opération ListOrders pour obtenir l'identifiant du ticket.

420****

Éléments de réponse

Élément

Type

Description

Exemple

object

Les paramètres de réponse.

RequestId

string

L'identifiant de la requête.

427688B8-ADFB-4C4E-9D45-EF5C1FD6E23D

DataCorrectOrderDetail

object

Les informations relatives au ticket de modification de données.

PreCheckDetail

object

TaskCheckDO

array<object>

The precheck details of the ticket.

object

UserTip

string

The message that appears when a check step is executed.

tip messsage

CheckStatus

string

The state of the precheck. Valid values:

  • WAITING: The ticket is pending precheck.

  • RUNNING: The ticket is being prechecked.

  • SUCCESS: The ticket passes the precheck.

  • FAIL: The ticket fails the precheck.

SUCCESS

CheckStep

string

The check step of the precheck. Valid values:

  • SQL_PARSE: The system checks the syntax of the SQL statement.

  • SQL_TYPE_CHECK: The system checks the type of the SQL statement.

  • PERMISSION_CHECK: The system checks the permissions required for the data change.

  • ROW_CHECK: The system checks the number of affected rows.

PERMISSION_CHECK

OrderDetail

object

Les détails du ticket.

RbSQL

string

The SQL statements used to roll back the data change.

empty

RbAttachmentName

string

The name of the attachment that contains the SQL statements used to roll back the data change.

test

Classify

string

The category of the reason for the data change.

test

ExeSQL

string

The executed SQL statements.

update t1 set name = 'xxx' where id <= 100

EstimateAffectRows

integer

The estimated number of affected rows.

100

RbSQLType

string

The format of the SQL statements used to roll back the data change. Valid values:

  • TEXT: text

  • ATTACHMENT: attachment

text

ActualAffectRows

integer

The number of affected rows that is obtained by the precheck.

100

IgnoreAffectRows

boolean

Indicates whether the precheck result is ignored. Valid values:

  • true: The precheck result is ignored.

  • false: The precheck result is not ignored.

false

AttachmentName

string

The name of the attachment that contains the SQL statements used to change data.

xxx

SqlType

string

The format of the SQL statements used to change data. Valid values:

  • TEXT: text

  • ATTACHMENT: attachment

text

IgnoreAffectRowsReason

string

The reason why the precheck result is ignored.

test

DatabaseList

object

Database

array<object>

The information about the database in which data is changed.

object

DbId

integer

The database ID.

1860****

DbType

string

The engine of the database.

mysql

Logic

boolean

Indicates whether the database is a logical database. Valid values:

  • true.: The database is a logical database.

  • false: The database is a physical database.

false

SearchName

string

The name that is used to search for the database.

xxx@xxx:3306

EnvType

string

The type of the environment to which the database belongs. Valid values:

  • product: production environment.

  • dev: development environment.

  • pre: pre-release environment.

  • test: test environment.

  • sit: system integration testing (SIT) environment

  • uat: user acceptance testing (UAT) environment.

  • pet: stress testing environment.

  • stag: staging environment.

product

Status

string

L'état spécifique du ticket de modification de données. Valeurs valides :

approved

ExecMode

string

Le mode d'exécution du ticket après son approbation. Valeurs valides :

COMMITOR

ConfigDetail

object

Les configurations du ticket. Ce paramètre est utilisé pour stocker les informations de configuration spécifiques à un type de ticket de modification de données.

DetailType

string

The type of the ticket. Valid values:

  • COMMON: regular data change.

  • CHUNK_DML: lock-free data change.

  • BIG_FILE: large data import.

  • CRON_CLEAR_DATA: historical data cleanup.

  • PROCEDURE: programmable object change.

BIG_FILE

FileType

string

The type of the file to be imported. This parameter is valid if the value of DetailType is BIG_FILE. Valid values:

  • SQL: an SQL file.

  • CSV: a CSV file.

  • EXCEL: an Excel file.

  • JSON: a JSON file, which is supported only by MongoDB databases.

CSV

CsvTableName

string

The name of the table to which data is to be imported. This parameter is valid only if the value of DetailType is BIG_FILE. If the value of FileType is SQL, this parameter is empty.

tb_import_tb_name

FileEncoding

string

The encoding method of the file. This parameter may be empty, which indicates the value of AUTO. Valid values:

  • AUTO: automatic identification.

  • UTF-8: UTF-8 encoding.

  • GBK: GBK encoding.

  • ISO-8859-1: ISO-8859-1 encoding.

UTF-8

Cron

boolean

Indicates whether the task is a scheduled task for historical data cleanup. This parameter is a reserved parameter and is valid only if the value of DetailType is CRON_CLEAR_DATA.

true

CronCallTimes

integer

The number of times the scheduled task is run. This parameter is valid only if the value of DetailType is CRON_CLEAR_DATA.

0

CronFormat

string

The CRON expression of the scheduled task. This parameter is valid only if the value of DetailType is CRON_CLEAR_DATA.

0 0 2 * * ?

Duration

integer

The execution duration of the scheduled task. Unit: hour. This parameter is valid only if the value of DetailType is CRON_CLEAR_DATA. If the value is greater than 0, an execution duration is set.

1

CronStatus

string

The state of the scheduled task. If this parameter is empty, the task is not run. Valid values:

  • PAUSE: The task is suspended.

  • WAITING: The task is waiting to be run.

  • SUCCESS: The task is run.

SUCCESS

CronLastCallStartTime

string

The time when the task was last run.

2024-04-19 02:00:00.0

CronNextCallTime

string

The time when the task is run next time. This parameter is returned only if the value of CronStatus is SUCCESS.

2024-04-19 02:00:00

CurrentTaskId

integer

The ID of the current data change task. This is a reserved parameter and can be ignored.

13***

ImportExtConfig

object

The additional configuration information about data import. This parameter is valid if the value of DetailType is BIG_FILE.

InsertType

string

The mode in which data is to be imported to the destination table. Valid values:

  • INSERT: The database checks the primary key during data insertion. If the primary key is duplicated, an error is reported.

  • INSERT_IGNORE: If the imported data contains data records that are the same as those in the destination table, the new data records are ignored.

  • REPLACE_INTO: If the imported data contains a row that has the same value for the primary key or unique index as an existing row in the destination table, the system deletes the existing row and inserts the new row into the destination table.

Remarque

This parameter is valid if the value of FileType is CSV or EXCEL.

INSERT

CsvFirstRowIsColumnDef

boolean

Indicates whether the first row of the CSV file contains field names. Valid values:

  • true: The first row in the CSV file contains field names.

  • false: The first row in the CSV file contains data.

Remarque

This parameter is valid if the value of FileType is CSV or EXCEL.

true

IgnoreError

boolean

Indicates whether an error that occurs is ignored. Valid values:

  • true: If an error occurs when SQL statements are being executed, DMS skips the current SQL statement and continues to execute subsequent SQL statements.

  • false: If an error occurs when SQL statements are being executed, DMS stops executing subsequent SQL statements.

false

ImportMode

string

The import mode. Valid values:

  • FAST_MODE: fast mode. In the Execute step, the uploaded file is read and SQL statements are executed to import data to the specified destination database. Compared with the security mode, this mode can be used to import data in a less secure but more efficient manner.

  • SAFE_MODE: security mode. In the Precheck step, the uploaded file is parsed, and SQL statements or CSV file data is cached. In the Execute step, the cached SQL statements are read and executed to import data, or the cached CSV file data is read and imported to the specified destination database. Compared with the fast mode, this mode can be used to import data in a more secure but less efficient manner.

FAST_MODE

CronExtConfig

object

The additional configuration information about historical data cleanup. This parameter is valid only if the value of DetailType is CRON_CLEAR_DATA.

OptimizeTableAfterEveryClearTimes

integer

Indicates whether the Periodically Optimize Table feature is enabled. Valid values:

  • 0 (default): The feature is disabled.

  • A value greater than 0: The feature is enabled. The value indicates the number of cleanups after which the system performs defragmentation.

0

CurrentClearTaskCount

integer

The number of times defragmentation is performed. This parameter is valid only if the value of OptimizeTableAfterEveryClearTimes is greater than 0.

0

ErrorCode

string

Le code d'erreur renvoyé si la requête échoue.

UnknownError

ErrorMessage

string

Le message d'erreur renvoyé si la requête échoue.

UnknownError

Success

boolean

Indique si l'opération a réussi. Valeurs valides :

true

Exemples

JSON format

{
  "RequestId": "427688B8-ADFB-4C4E-9D45-EF5C1FD6E23D",
  "DataCorrectOrderDetail": {
    "PreCheckDetail": {
      "TaskCheckDO": [
        {
          "UserTip": "tip messsage",
          "CheckStatus": "SUCCESS",
          "CheckStep": "PERMISSION_CHECK"
        }
      ]
    },
    "OrderDetail": {
      "RbSQL": "empty",
      "RbAttachmentName": "test",
      "Classify": "test",
      "ExeSQL": "update t1 set name = 'xxx' where id <= 100",
      "EstimateAffectRows": 100,
      "RbSQLType": "text",
      "ActualAffectRows": 100,
      "IgnoreAffectRows": false,
      "AttachmentName": "xxx",
      "SqlType": "text",
      "IgnoreAffectRowsReason": "test"
    },
    "DatabaseList": {
      "Database": [
        {
          "DbId": 0,
          "DbType": "mysql",
          "Logic": false,
          "SearchName": "xxx@xxx:3306",
          "EnvType": "product"
        }
      ]
    },
    "Status": "approved",
    "ExecMode": "COMMITOR",
    "ConfigDetail": {
      "DetailType": "BIG_FILE",
      "FileType": "CSV",
      "CsvTableName": "tb_import_tb_name",
      "FileEncoding": "UTF-8",
      "Cron": true,
      "CronCallTimes": 0,
      "CronFormat": "0 0 2 * * ?",
      "Duration": 1,
      "CronStatus": "SUCCESS",
      "CronLastCallStartTime": "2024-04-19 02:00:00.0",
      "CronNextCallTime": "2024-04-19 02:00:00\n",
      "CurrentTaskId": 0,
      "ImportExtConfig": {
        "InsertType": "INSERT",
        "CsvFirstRowIsColumnDef": true,
        "IgnoreError": false,
        "ImportMode": "FAST_MODE"
      },
      "CronExtConfig": {
        "OptimizeTableAfterEveryClearTimes": 0,
        "CurrentClearTaskCount": 0
      }
    }
  },
  "ErrorCode": "UnknownError",
  "ErrorMessage": "UnknownError",
  "Success": true
}

Codes d'erreur

Consultez Codes d'erreur pour la liste complète.

Notes de version

Consultez Notes de version pour la liste complète.