---
title: "Get task list"
method: GET
path: "/tasks"
tags: ["Tasks"]
---

# Get task list

`GET /tasks`

## Request

- Base URL: `https://sort.veritas.com/infoscale/api/2.0`
- URL: `https://sort.veritas.com/infoscale/api/2.0/tasks`
- Auth: none declared
- TypeScript: <https://skmtc.dev/veritas/apis/veritas-infoscale-api/docs/tasks/get.ts> (a function with typed inputs; its response is checked against the schema)

Get task list

## Query parameters

- `PageIndex` integer, required
- `PageSize` integer, required

## Headers

- `token` string

## Response `200`

Information related to task/process

- TaskResourceList
  - `TotalPage` integer: How many pages we have for task resources
  - `CurPage` integer: Current page which is displayed
  - `TaskResources` TaskResource[]: Task resource list
    - `TaskId` string: Taskid is actually the task description including resource and operation
    - `ResourceId` string: resource id
    - `TaskStatus` 'INITIATED' | 'COMPLETED' | 'FAILED': Status of the task to show whether it is running or not
    - `StartTime` integer: when this task is started
    - `EndTime` integer: when this task is finished
    - `TargetNode` string: where the task is executed
    - `Detail` string: Detail contains the task URL

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/veritas/apis/veritas-infoscale-api.md) - [All operations](https://skmtc.dev/veritas/apis/veritas-infoscale-api/llms.txt) - [OpenAPI document](https://skmtc.dev/veritas/apis/veritas-infoscale-api/revisions/1e3d3f7145bb?raw)
