Creates a data import ticket.
Operation description
Only database instances whose control mode is set to Security Collaboration can call this API operation.
For more information about this feature, see Data import.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:CreateDataImportOrder |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Comment |
string |
Yes |
The business background of the data import, which helps reduce communication costs. |
test |
| RelatedUserList |
array |
No |
The list of relevant users. |
|
|
integer |
No |
The user ID of a relevant user. The specified relevant users can view the ticket and collaborate on it. Users who are not specified cannot view the ticket, except for administrators and DBAs. |
51**** |
|
| Param |
object |
Yes |
The ticket parameters. |
|
| Classify |
string |
No |
The reason for the data import. |
test |
| AttachmentName |
string |
Yes |
The attachment key of the imported data. You can call the GetUserUploadFileJob operation to obtain the value of this parameter. |
upload_big_file_test_orders |
| DbItemList |
array<object> |
Yes |
The list of databases to which data is to be imported. Currently, you can import data to only one database at a time. |
|
|
object |
No |
The database information. |
||
| DbId |
integer |
Yes |
The ID of the database. Databases are classified into physical databases and logical databases:
|
1860**** |
| Logic |
boolean |
Yes |
Specifies whether the database is a logical database. Valid values:
Note
If you set this parameter to true, the destination database must be a logical database. |
false |
| FileType |
string |
Yes |
The type of the file. Valid values:
Valid values:
|
CSV |
| FileEncoding |
string |
No |
The encoding format of the file. Valid values:
|
AUTO |
| TableName |
string |
No |
The name of the destination table to which data in the CSV file is imported. Note
If FileType is set to CSV, this parameter is required. |
Table_text |
| InsertType |
string |
No |
The insert type. Valid values:
Note
If FileType is set to CSV, this parameter is required. |
INSERT |
| CsvFirstRowIsColumnDef |
boolean |
No |
Specifies whether the first row of the CSV file contains column names. Valid values:
Note
If FileType is set to CSV, this parameter is required. |
true |
| IgnoreError |
boolean |
No |
Specifies whether to ignore errors. Valid values:
|
false |
| ImportMode |
string |
No |
The import mode. Valid values:
|
FAST_MODE |
| RollbackSQL |
string |
No |
The rollback SQL statement. Note
If RollbackSqlType is set to TEXT, this parameter is required. |
empty |
| RollbackAttachmentName |
string |
No |
The attachment key of the rollback SQL statement. You can call the GetUserUploadFileJob operation to obtain the value of this parameter. Note
If RollbackSqlType is set to ATTACHMENT, this parameter is required. |
rollback.sql |
| RollbackSqlType |
string |
No |
The submission method of the rollback SQL statement. Valid values:
|
TEXT |
| ExecMode |
string |
No |
The execution method of the ticket. Valid values:
|
COMMITOR |
| AttachmentKey |
string |
No |
The attachment key of the ticket, which is used to supplement the ticket information. You can call the GetUserUploadFileJob operation to obtain the value of this parameter. |
order_attachment.txt |
| Tid |
integer |
No |
The tenant ID. You can call the GetUserActiveTenant or ListUserTenants operation to obtain the value of this parameter. |
3*** |
| RealLoginUserUid |
string |
No |
The UID of the Alibaba Cloud account that actually calls the API operation. |
21400447956867**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
0C1CB646-1DE4-4AD0-B4A4-7D47DD52E931 |
| Success |
boolean |
Indicates whether the request is successful. Valid values:
|
true |
| ErrorMessage |
string |
The error message. |
UnknownError |
| ErrorCode |
string |
The error code. |
UnknownError |
| CreateOrderResult |
array |
The ticket creation result. |
|
|
integer |
The ticket ID. |
1**** |
Examples
Success response
JSON format
{
"RequestId": "0C1CB646-1DE4-4AD0-B4A4-7D47DD52E931",
"Success": true,
"ErrorMessage": "UnknownError",
"ErrorCode": "UnknownError",
"CreateOrderResult": [
0
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.