All Products
Search
Document Center

Data Management:CreateDataExportOrder

Last Updated:Nov 28, 2024

Creates a ticket to export an SQL result set.

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

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
dms:CreateDataExportOrdercreate
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ParentIdlongNo

The ID of the parent ticket.

877****
CommentstringYes

The purpose or objective of the ticket. This parameter helps reduce unnecessary communication.

business_test
AttachmentKeystringNo

The key of the attachment that provides more instructions for the ticket. You can call the GetUserUploadFileJob operation to obtain the attachment key.

order_attachment.txt
RelatedUserListarrayNo

The stakeholders involved in this operation.

longNo

The user ID of the stakeholder. This ID is a user ID and is not the ID of an Alibaba Cloud account. The stakeholders involved in this export. All the specified stakeholders can view the ticket details and take part in the approval process. Irrelevant users other than Data Management (DMS) administrators and database administrators (DBAs) are not allowed to view the ticket details.

2452345113****
PluginParamobjectYes

The parameters of the ticket.

AffectRowslongYes

The estimated number of data rows to be affected.

1
ClassifystringYes

The reason for the export ticket.

test
InstanceIdlongYes

The instance ID.

132****
DbIdlongYes

The database ID.

18****
LogicbooleanYes

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

  • true
  • false
Note If you set this parameter to true, the database that you specify must be a logical database.
true
IgnoreAffectRowsbooleanYes

Specifies whether to skip verification. Valid values:

  • true
  • false
true
IgnoreAffectRowsReasonstringNo

The reason for skipping verification. This parameter is required if you set IgnoreAffectRows to true.

Test only, does not affect the business, and does not require verification.
ExeSQLstringYes

The SQL statements that can be executed.

SELECT * FROM DMS_test LIMIT 20;
WatermarkobjectNo

The information about the watermarks.

WatermarkTypesarrayNo

The methods in which the watermark is embedded.

stringNo

The method in which the watermark is embedded. Valid values:

  • DATA: embeds identification information into data.
  • FILE: embeds identification information into files.

For more information about watermarks, see Use data watermarks.

DATA
KeysarrayNo

One or more primary keys or unique keys.

stringNo

The primary keys or unique keys. Separate multiple keys with commas (,).

ID
ColumnNamestringNo

The field into which the watermark is to be embedded.

user_number
DataWatermarkstringNo

The information to be embedded as a watermark into data.

test
FileWatermarkstringNo

The information to be embedded as a watermark into files.

test
TidlongNo

The tenant ID.

Note To view the ID of the tenant, move the pointer over the profile picture in the upper-right corner of the DMS console. For more information, see the View information about the current tenant section of the "Manage DMS tenants" topic.
3***
RealLoginUserUidstringNo

The UID of the Alibaba Cloud account that actually calls the API.

21400447956867****

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID. You can use the ID to query logs and troubleshoot issues.

7FAD400F-7A5C-4193-8F9A-39D86C4F0231
ErrorCodestring

The error code.

UnknownError
ErrorMessagestring

The error message returned if the request failed.

UnknownError
CreateOrderResultarray

The content of the ticket.

CreateOrderResultlong

The ticket ID.

819****
Successboolean

Indicates whether the request was successful. Valid values:

  • true
  • false
true

Examples

Sample success responses

JSONformat

{
  "RequestId": "7FAD400F-7A5C-4193-8F9A-39D86C4F0231",
  "ErrorCode": "UnknownError",
  "ErrorMessage": "UnknownError",
  "CreateOrderResult": {
    "CreateOrderResult": [
      0
    ]
  },
  "Success": true
}

Error codes

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

Change history

Change timeSummary of changesOperation
2024-07-11The request parameters of the API has changedView Change Details