Get export status

Updated at:

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

GET/export_status

Query the export task status and download link. Downloadable only when export_status is success and link is non-null.

Query parameters

export_idintegerRequired

Export task ID, from the export alerts response

Response fields

export_statusstring

init / exporting / success. Downloadable only when success and link is non-null

progressinteger

Export progress percentage, 0-100

current_countinteger

Number of records exported so far

total_countinteger

Total number of records in the export task

linkstring

Excel download link, null when the task is incomplete or failed

messagestring

Result 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
  }
}