HP 3PAR Web Service API 1.3.1 Developer's Guide

Accept: application/json
Content-Type: application/json
X-HP3PAR-WSAPI-SessionKey: 2-33fe8891e288b34b3f914410e7cc7907-a93d1c50
HTTP Response
HTTP/1.1 200 OK
Date: Mon, 16 Apr 2012 07:16:39 GMT
Server: hp3par-wsapi
Cache-Control: no-cache
Pragma: no-cache
Connection: close
Querying VLUNs
The VLUN query collects information about all the VLUN templates and active VLUNs on the system.
Querying All VLUNs
To query for VLUN information, use the HTTP GET method in the URI. The syntax is as follows:
https://<storage_system>:8080/api/v1/vluns
All-VLUNs Query Success
Upon success of an all-VLUNs query, the HTTP code 200 OK is returned.
As of WSAPI 1.3, in order to support a large number of volumes and VLUNs in the HP 3PAR OS,
HTTP chunked transfer encoding is used to send a response in chunked format. The HTTP response
header will look like the following:
HTTP/1.1 200 OK
Date: Fri, 22 May 2013 18:05:43 GMT
Server: hp3par-wsapi
Cache-Control: no-cache
Pragma: no-cache
Content-Type: application/json
Connection: close
Transfer-Encoding: chunked
Each chunk starts with the chunk-size field, which is a string of hexadecimal digits and a CRLF
sequence followed by the chunk data. The chunk is terminated by CRLF. The last chunk is a regular
chunk, except that its length is zero.
A successful query returns the HTTP status code 200 OK and a response body with members as
shown in Table 97 (page 106).
Table 97 All-VLUNs Query JSON Objects
DescriptionAPI TypeJSON TypeMember
Number of VLUN objects
returned.
int32numbertotal
VLUN properties.array of VLUN Property
objects
array of objectsmembers
The members object is a JSON array of zero or more JSON objects – one for each VLUN on the
system. These objects are described in Table 98 (page 107).
106 Working with Virtual LUNs