All Products
Search
Document Center

Data Management:CreateDataExportOrder

Last Updated:Oct 21, 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

There is currently no authorization information disclosed in the API.

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