Query task details

View the export task, its target configuration and file statistics.

HTTP
POST $CLOUDSIGMA_API_BASE/export/task/info

Before you call

Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region. Get the task ID from Query Export Task List. Prepare personal access token and target workspace ID that can access the target workspace.

Request body

Replace $CLOUDSIGMA_API_KEY, $WORKSPACE_ID and $TASK_ID with actual values.

Shell
curl -X POST "$CLOUDSIGMA_API_BASE/export/task/info" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID" \
  -H 'Content-Type: application/json' \
  -d @- <<EOF
{
    "id": "$TASK_ID"
  }
EOF

Parameter

Type

Required

Description

id

string

Yes

The export task ID to read.

Successful response

JSON
{
  "code": "OK",
  "msg": "OK",
  "data": {
    "id": "export-task-123",
    "name": "export-to-s3",
    "creator": "data-engineer",
    "connector_name": "target-s3",
    "type": 5,
    "status": 2,
    "config": {
      "s3_config": {
        "path": "exports/",
        "need_compress": false,
        "compress_method": ""
      }
    },
    "create_time": "2026-08-28T10:00:00.000000+0000",
    "end_time": "2026-08-28T10:02:00.000000+0000",
    "file_stats": {
      "total": 4,
      "pending": 0,
      "running": 0,
      "failed": 1,
      "completed": 3
    },
    "fileSuccess": 3,
    "fileFail": 1
  }
}

Field

Type

Description

code

string

OK on success.

msg

string

OK on success.

data

object

Export task details.

data.id

string

Task ID.

data.name

string

Task name.

data.creator

string

Creator ID.

data.connector_name

string

Target connector name.

data.type

integer

Export target type.

data.status

integer

Task status.

data.config.s3_config

object

Object storage target configuration.

data.config.s3_config.path

string

target path.

data.config.s3_config.need_compress

boolean

Whether to compress exported content.

data.config.s3_config.compress_method

string

Compression method.

data.create_time

string or null

Creation time.

data.end_time

string or null

end time.

data.file_stats

object

Summary of file count.

data.file_stats.total

integer

Total number of files.

data.file_stats.pending

integer

Number of files to be processed. and running are both 0, this processing has ended.

data.file_stats.running

integer

The number of files being exported.

data.file_stats.failed

integer

Number of failed files. When it is 0 and the processing has ended, it means that all files are successful.

data.file_stats.completed

integer

Number of completed files.

data.fileSuccess

integer

The number of files successfully exported.

data.fileFail

integer

The number of files that failed to export.

Error response

JSON
{
  "code": "ErrServer",
  "msg": "未找到导出任务",
  "data": null
}

Field

Type

Description

code

string

error code.

msg

string

Readable error message.

data

null

The error response is null.

Last updated on