Get details of multiple tasks

This call will return statistics for all specified tasks i.e. task IDs.

Request

https://cavatica-api.sbgenomics.com/v2/bulk/tasks/get

Example request

POST v2/bulk/tasks/get
Host: cavatica-api.sbgenomics.com
X-SBG-Auth-Token: e5030ffa-9c6a-4464-9a1a-ab003acb05e1
curl -X POST \
  https://api.sbgenomics.com/v2/bulk/tasks/get \
  -H 'Content-Type: application/json' \
  -H 'Postman-Token: e5030ffa-9c6a-4464-9a1a-ab003acb05e1' \
  -H 'X-SBG-Auth-Token: 4459c50e1ac9416ea8f5263279340f74' \
  -H 'cache-control: no-cache' \
  -d '{
    "task_ids": [
        "49a218ef-066f-4c1c-8f91-5bcdbc15b9e5", "2bc5ce5e-f109-416e-b4b8-7e824f258cb1"
    ]
}
'

Header Fields

Name

Description

X-SBG-Auth-Token
required

Your CAVATICA authentication token.

Content-Type
required

application/json

Request body

Key

Data type

Description

task_id

array

The IDs of the tasks you are requesting the statistics for.

Response

See a list of CAVATICA-specific response codes that may be contained in the body of the response.

Response body

The response contains statistics for all specified tasks.

Example response body

{
    "items": [
        {
            "resource": {
                "href": "https://cavatica-api.sbgenomics.com/v2/tasks/49a128ef-066f-4c1c-8f91-5bcdbc15b9e5",
                "id": "49a228ef-066f-4c1c-8f91-5bcdbc15b8e5",
                "name": "star index and align run - 08-11-15 16:28:02",
                "status": "ABORTED",
                "project": "rfranklin/star-dev",
                "app": "rfranklin/star-dev/star-index-and-align/1",
                "type": "v2",
                "created_by": "rfranklin",
                "executed_by": "rfranklin",
                "start_time": "2015-08-11T16:28:02Z",
                "end_time": "2015-08-12T11:43:00Z",
                "batch": false,
                "batch_group": {
                    "fields": {}
                },
                "use_interruptible_instances": false,
                "execution_settings": {},
                "execution_status": {
                    "steps_completed": 0,
                    "steps_total": 0,
                    "system_limit": false,
                    "account_limit": false,
                    "instance_init": false,
                    "queued_duration": 0,
                    "running_duration": 69111383,
                    "execution_duration": 0,
                    "duration": 69111383
                },
                "errors": [],
                "warnings": [],
                "inputs": {},
                "outputs": {},
                "created_time": "2015-08-11T16:28:02Z"
            }
        },
        {
            "resource": {
                "href": "https://cavatica-api.sbgenomics.com/v2/tasks/2cb5ce5e-f109-416e-b4b8-7e824f258cb1",
                "id": "2bb5ce5e-f109-416e-b3b8-7e824f258cb1",
                "name": "star index and align run - 08-12-15 11:32:39",
                "status": "FAILED",
                "project": "rfranklin/star-dev",
                "app": "rfranklin/star-dev/star-index-and-align/1",
                "type": "v2",
                "created_by": "rfranklin",
                "executed_by": "rfranklin",
                "start_time": "2015-08-12T11:32:39Z",
                "end_time": "2015-08-12T11:41:05Z",
                "batch": false,
                "batch_group": {
                    "fields": {}
                },
                "use_interruptible_instances": false,
                "execution_settings": {},
                "execution_status": {
                    "steps_completed": 0,
                    "steps_total": 0,
                    "system_limit": false,
                    "account_limit": false,
                    "instance_init": false,
                    "queued_duration": 0,
                    "running_duration": 497286,
                    "execution_duration": 0,
                    "duration": 497286
                },
                "errors": [],
                "warnings": [],
                "inputs": {},
                "outputs": {},
                "created_time": "2015-08-12T11:32:39Z"
            }
        }
    ]
}
Language
Click Try It! to start a request and see the response here!