Get export status
Query the export task status and download link. Downloadable only when export_status is success and link is non-null.
Prerequisites
Configure the endpoint and authentication first. See API overview and authentication.
Endpoint
/export_statusQuery the export task status and download link. Downloadable only when export_status is success and link is non-null.
Query parameters
export_idintegerRequiredExport task ID, from the export alerts response
Response fields
export_statusstringinit / exporting / success. Downloadable only when success and link is non-null
progressintegerExport progress percentage, 0-100
current_countintegerNumber of records exported so far
total_countintegerTotal number of records in the export task
linkstringExcel download link, null when the task is incomplete or failed
messagestringResult message, fixed to success on completion
Request example
curl -X GET "$BASE_URL/export_status?export_id=131231" \
-H "Authorization: Bearer $BAILIAN_API_KEY"
BASE_URL is https://{workspace_id}.cn-beijing.maas.aliyuncs.com/api/v1/agentstudio/security, and BAILIAN_API_KEY is your Alibaba Cloud Bailian API Key.
Response example
{
"success": true,
"data": {
"export_status": "exporting",
"progress": 20,
"current_count": 20,
"total_count": 100,
"link": null,
"message": null
}
}