Submits an asynchronous full export node for inventory table assets.
Operation description
Submits an asynchronous export task with the same filter conditions as SearchInventoryAsset or ExportInventoryAsset. The API immediately returns an exportTaskId with the status set to RUNNING. After the system generates an XLSX file and uploads it to OSS in the background, you can 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:AsyncExportInventoryAsset |
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 asset information such as table names. |
order |
| SortBy |
string |
No |
The field by which to sort the results. 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 |
Indicates whether the call is successful. |
|
| ExportTaskId |
integer |
The ID of the asynchronous export task, which is used to poll the task status by calling GetInventoryExportTaskStatus. |
3b5ab724e92f4a0ba890c95fc459636f |
| 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 file. |
/crm-order-biz%3Bsrc%3Bmain%3Bresources%3Bmybatis%3Bmappers%3Brrscrm%3BOrderOutCountMapper.xml |
Examples
Success response
JSON format
{
"RequestId": "0C1CB646-1DE4-4AD0-B4A4-7D47DD52E931",
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"Success": true,
"Data": {
"ExportTaskId": 0,
"Status": "RUNNING",
"FileName": "/crm-order-biz%3Bsrc%3Bmain%3Bresources%3Bmybatis%3Bmappers%3Brrscrm%3BOrderOutCountMapper.xml"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.