Creates a ticket for importing data to Data Management (DMS).
Operation description
For more information about the Large Data Import feature, see Import data.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Comment | string | Yes | The purpose or objective of the data import. This parameter is used to help reduce unnecessary communication. | test |
RelatedUserList | array | No | The stakeholders of the data import. All stakeholders can view the ticket details and assist in the approval process. Irrelevant users other than DMS administrators and database administrators (DBAs) are not allowed to view the ticket details. | |
long | No | 51**** | ||
Param | object | Yes | The parameters of the ticket. | |
Classify | string | No | The reason for the data import. | test |
AttachmentName | string | Yes | The key of the attachment that contains the SQL statements used to import data. You can call the GetUserUploadFileJob operation to the attachment key from the value of the AttachmentKey parameter. | order_text |
DbItemList | array<object> | Yes | The database to which you want to import data. You can specify only one database. | |
object | No | |||
DbId | long | Yes | The ID of the database. The database can be a physical database or a logical database.
| 1860**** |
Logic | boolean | Yes | Specifies whether the database is a logical database. Valid values:
Note
If you set this parameter to true, the database that you specify must be a logical database.
| false |
FileType | string | Yes | The format of the file for the data import. Valid values:
| CSV |
FileEncoding | string | No | The encoding algorithm to be used by the destination database. Valid values:
| AUTO |
TableName | string | No | The destination table to which you want to import the data in the CSV format. Note
This parameter is required if you set the FileType parameter to CSV.
| Table_text |
InsertType | string | No | The mode in which the data in the CSV format is to be written to the destination table. Valid values:
Note
This parameter is required if you set the FileType parameter to CSV.
| INSERT |
CsvFirstRowIsColumnDef | boolean | No | The type of the CSV file. Valid values:
Note
This parameter is required if you set the FileType parameter to CSV.
| true |
IgnoreError | boolean | No | Specifies whether to skip an error that occurs. Valid values:
| false |
ImportMode | string | No | The import mode. Valid values:
| FAST_MODE |
RollbackSQL | string | No | The SQL statements used to roll back the data import. Note
This parameter is required if you set the RollbackSqlType parameter to TEXT.
| empty |
RollbackAttachmentName | string | No | The key of the attachment that contains the SQL statements used to roll back the data import. You can call the GetUserUploadFileJob operation to obtain the attachment key from the value of the AttachmentKey parameter. Note
This parameter is required if you set the RollbackSqlType parameter to ATTACHMENT.
| rollback.sql |
RollbackSqlType | string | No | The format of the SQL statements used to roll back the data import. Valid values:
| TEXT |
AttachmentKey | string | No | The key of the attachment that provides more instructions for the ticket. You can call the GetUserUploadFileJob operation to obtain the attachment key from the value of the AttachmentKey parameter. | order_attachment.txt |
Tid | long | No | The ID of the tenant. You can call the GetUserActiveTenant or ListUserTenants operation to obtain the tenant ID. | 3*** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "0C1CB646-1DE4-4AD0-B4A4-7D47DD52E931",
"Success": true,
"ErrorMessage": "UnknownError",
"ErrorCode": "UnknownError",
"CreateOrderResult": [
0
]
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|