HP 3PAR Web Service API 1.3.1 Developer's Guide

All-Tasks Status Query Errors
For error codes following a single-task status query, see Table 127 (page 133). For generic API
error codes, see Table 5 (page 22).
Querying the Status of a Single Task
To query the status of a single task, use the HTTP GET method on the following URI:
https://<storage_system>:8080/api/v1/tasks/<task_id>
where <task_id> is the task ID.
Successful Query of Single-Task Status
Upon a successful query of a single task, a message body is returned with JSON object members
as shown in Table 124 (page 131).
Table 124 Message Body JSON Object Members for Copy Single-Task Status Query
DescriptionAPI TypeJSON TypeMember
Task ID.numbernumberId
(Since WSAPI 1.3)
Task type.taskType Enumnumbertype
See Table 125 (page 132).
(Since WSAPI 1.3)
Task name.stringstringName
(Since WSAPI 1.3)
Task status.taskStatus EnumnumberStatus
See Table 126 (page 133).
(Since WSAPI 1.3)
For active tasks only; the
number of completed
phases.
numbernumbercompletedPhases
(Since WSAPI 1.3)
For active tasks only; the
total number of phases.
numbernumbertotalPhases
(Since WSAPI 1.3)
For active tasks only; the
number of completed steps.
numbernumbercompletedSteps
(Since WSAPI 1.3)
For active tasks only; the
total number of steps.
numbernumbertotalSteps
(Since WSAPI 1.3)
Task start time.timestringstartTime
(Since WSAPI 1.3)
Task end time.timestringfinishTime
(Since WSAPI 1.3)
Task priority. See
Table 104 (page 113).
taskPriority Enumnumberpriority
Getting Task Status 131