Skip to content

Query Process Task List API

API Information

  • Request Path: /processtask/query/page
  • Request Method: POST
  • Content-Type: application/json

Request Headers

ParameterTypeRequiredDescription
AuthorizationStringYesUser authentication token
Content-TypeStringYesMust be set to application/json

Request Body Parameters

DataProcessListReq Object

ParameterTypeRequiredDescriptionConstraints
keywordStringNoSearch keyword for filtering tasksOptional
taskStatusListList<Integer>NoList of task status codes to filter byOptional
taskTypeListList<Integer>NoList of task type codes to filter byOptional
pageNumberIntegerNoCurrent page numberDefault: 1
pageSizeIntegerNoNumber of items per pageDefault: 10

Parameter Example

json
{
  "keyword": "clip task",
  "taskStatusList": [3, 4],
  "taskTypeList": [3],
  "pageNumber": 1,
  "pageSize": 20
}

Response Body

CommonResponse Object

FieldTypeDescription
codeIntegerResponse status code
messageStringResponse message
dataDataProcessRespResponse data containing task list

DataProcessResp Object

FieldTypeDescription
taskListList<DataProcessVo>List of process task objects
pageNumberIntegerCurrent page number
pageSizeIntegerNumber of items per page
pageCountLongTotal number of pages
totalCountLongTotal number of items across all pages

DataProcessVo Object

FieldTypeDescription
idLongTask ID
taskNameStringTask name
taskTypeIntegerTask type
statusIntegerTask status
creatorStringCreator ID
creatorNameStringCreator display name
creatorAvatarUrlStringCreator avatar URL
ctimeLongCreation timestamp
outputDataFileIdLongOutput data file ID
reasonStringFailure reason (if applicable)

Response Examples

Success Response

json
{
  "code": 200,
  "message": "success",
  "data": {
    "taskList": [
      {
        "id": 12345,
        "taskName": "Clip Task 001",
        "taskType": 3,
        "status": 3,
        "creator": "user123",
        "creatorName": "John Doe",
        "creatorAvatarUrl": "https://example.com/avatar.jpg",
        "ctime": 1698765432000,
        "outputDataFileId": 67890,
        "reason": null
      },
      {
        "id": 12346,
        "taskName": "Mosaic Task 002",
        "taskType": 2,
        "status": 5,
        "creator": "user456",
        "creatorName": "Jane Smith",
        "creatorAvatarUrl": "https://example.com/avatar2.jpg",
        "ctime": 1698765433000,
        "outputDataFileId": null,
        "reason": null
      }
    ],
    "pageNumber": 1,
    "pageSize": 20,
    "pageCount": 5,
    "totalCount": 98
  }
}

Empty Result Response

json
{
  "code": 200,
  "message": "success",
  "data": {
    "taskList": [],
    "pageNumber": 1,
    "pageSize": 20,
    "pageCount": 0,
    "totalCount": 0
  }
}

Failure Response

json
{
  "code": 401,
  "message": "Unauthorized",
  "data": null
}

Error Code Description

Error CodeDescription
200Success
400Request parameter error
401Unauthorized
500Server internal error

Task Type Reference

ValueTask TypeDescription
0Extract InfoExtract metadata and information from data files
1FusionCombine multiple data sources into a single output
2MosaicCreate a mosaic from multiple overlapping images
3ClipExtract a specific region from the data
4Cloud RemovalRemove cloud cover from imagery
5Index CalculationCalculate spectral indices (NDVI, etc.)
6Band MergeCombine multiple bands into a single file

Task Status Reference

ValueTask StatusDescription
0Not StartedTask created but not yet started
1Downloading FilesDownloading required input files
2DownloadedAll input files downloaded successfully
3Processing CompleteData processing completed successfully
4Processing FailedData processing failed
5ProcessingData processing in progress
6PublishingPublishing output files
7Publish CompletePublishing completed successfully
8Publish FailedPublishing failed
9Download FailedFile download failed

Usage Instructions

  1. This API is used to query paginated lists of data processing tasks
  2. Optional filtering by keyword, task status, and task type is supported
  3. Pagination is handled through pageNumber and pageSize parameters
  4. User authentication is required, valid Authorization token must be included in request headers
  5. The response includes pagination metadata and detailed task information

Notes

  • All request parameters are optional
  • When no filters are provided, all tasks are returned (paginated)
  • Task status and type filters accept arrays of integer values
  • The keyword parameter searches in task names
  • Timestamps are returned as Unix timestamps in milliseconds
  • Failed tasks include a reason field with failure details