Get Tasks Status

Get Tasks Status

In general, to get the status of any long running operations, the operation
must have been initiated through the VMware Cloud Foundation Operations REST API.
This API endpoint returns the details of the long running tasks that were submitted via the API only.
Furthermore, the list of tasks that this API returns includes tasks for long running operations such
as Adapter Installation, Describe etc. This API does not return the tasks created when any
Remediation Actions are executed in the system either via the UI or via the API.

Request
URI
GET
https://{api_host}/suite-api/api/tasks
COPY
Query Parameters
of task-state array
taskState
Optional

States of the tasks

string of array
taskId
Optional

The task ids


Authentication
This operation uses the following authentication methods.
Responses
200

List of Tasks' Statuses

Returns task-statuses of type(s) application/json
"{\n  \"taskStatusList\" : [ {\n    \"taskId\" : \"a14761bf-e291-4010-aaf5-d9331db0d70f\",\n    \"statusMessage\" : \"Distributed Task Execution for ADAPTER_INSTALL\",\n    \"taskState\" : \"RUNNING\",\n    \"createdTime\" : 0,\n    \"lastUpdateTime\" : 1744473856273,\n    \"errorMessages\" : [ ]\n  } ]\n}"
array of object
taskStatusList
Optional

Collection of task statuses


Code Samples
COPY
                    curl -H 'Authorization: <value>' https://{api_host}/suite-api/api/tasks