Asynchronously submits a full export task for inventory knowledge.
Operation description
Submits an asynchronous export task with the same filter conditions as SearchInventoryKnowledge or ExportInventoryKnowledge. The API immediately returns an exportTaskId with the status set to RUNNING. After the backend generates an XLSX file and uploads it to OSS, poll the task status by calling GetInventoryExportTaskStatus. When the status is SUCCESS, a pre-signed downloadUrl is returned. The Size and Offset parameters are not required. A maximum of 50,000 records can be exported in a single task.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:AsyncExportInventoryKnowledge |
none |
*All Resource
|
None | None |
Request syntax
POST / HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| JobId |
integer |
Yes |
The ID of the inventory task. |
1001 |
| Query |
string |
No |
The search keyword used for fuzzy matching of knowledge content. |
Order |
| ShowType |
string |
No |
The filter for knowledge display types, such as TABLE, COLUMN, SQL, SEG, LINEAGE, and TERM. |
TABLE |
| SortBy |
string |
No |
The field used for sorting. Valid values: confidence and entityId. Default value: confidence. |
confidence |
| SortOrder |
string |
No |
The sort order. Valid values: asc for ascending order and desc for descending order. Default value: desc. |
desc |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response content. |
||
| RequestId |
string |
Id of the request |
0C1CB646-1DE4-4AD0-B4A4-7D47DD52E931 |
| ErrorCode |
string |
The error code. |
UnknownError |
| ErrorMessage |
string |
The error message. |
UnknownError |
| Success |
boolean |
Indicates whether the request is successful. Valid values:
|
true |
| Data |
object |
The ID of the inventory task. |
|
| ExportTaskId |
integer |
The ID of the asynchronous export task, which is used to poll the task status by calling GetInventoryExportTaskStatus. |
4b3a9729-bf4f-4a5f-ad34-579f06e45cc9 |
| Status |
string |
The status of the task. The value is RUNNING when the task is successfully submitted. |
RUNNING |
| FileName |
string |
The recommended file name for saving the exported data. |
insert.sql |
Examples
Success response
JSON format
{
"RequestId": "0C1CB646-1DE4-4AD0-B4A4-7D47DD52E931",
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"Success": true,
"Data": {
"ExportTaskId": 0,
"Status": "RUNNING",
"FileName": "insert.sql"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.