HP 3PAR Web Service API 1.3.1 Developer's Guide

Table 121 Message Body JSON Objects for WSAPI Configuration Query (continued)
DescriptionValue RangeJSON TypeMember
sessions that the WSAPI
server can handle,
theoretically, at any given
time.
Example: 240
(Since WSAPI 1.3)
The following sample response shows the SRU (systemResourceUsage) as 144 concurrent
sessions:
Response: {
httpState: "Enabled"
httpPort: 8008
httpsState: Enabled
httpsPort: 8080
version: 1.3.1
sessionsInUse: 0
systemResourceUsage: 144
}
WSAPI Configuration Query Errors
Upon an unsuccessful query of WSAPI configuration information, an error code as shown in
Table 122 (page 130) might be returned. For generic API error codes, see Table 5 (page 22)
Table 122 WSAPI Configuration Query Response Error Codes
DescriptionHTTP CodeAPI Error
Other miscellaneous errors.400 Bad RequestOTHER
Memory allocation failure.500 Internal Server ErrorINT_SERV_ERR
Communication with CLI failed.
Getting Task Status
Querying the Status of All Tasks
To query the status of all tasks, use the HTTP GET method, with no message body, on the following
URI:
https://<storage_system>:8080/api/v1/tasks
Successful Query of Tasks Status
Upon a successful query, a message body is returned with members as shown in Table 123 (page
130).
Table 123 Message Body JSON Objects for All-Tasks Status Query
DescriptionAPI TypeJSON TypeMember
Number of tasks returned.int32numberTotal
All task information.array of task objectsarray of objectsMembers
Total is the number of objects in the collection. The Members object is a JSON array of zero or
more JSON objects—one for each task. The task fields are the same as for the single task for
physical copy. The tasks shown are tasks started within the last 24 hours.
130 Working with System, Version, and Task Information