HP 3PAR StoreServ 7400 4-node HP 3PAR Web Service API 1.2 Developer's - Page 73
VLUN Removal Example, HTTP Request, HTTP Response, Querying VLUNs, All-VLUNs Query Success
View all HP 3PAR StoreServ 7400 4-node manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 73 highlights
Table 71 VLUN Removal Error Codes API Error HTTP Code INV_INPUT 400 Bad Request NON_EXISTENT_HOST 404 Not Found NON_EXISTENT_VLUN 404 Not Found INV_INPUT_PORT_SPECIFICATION 400 Bad Request INV_INPUT_EXCEEDS_RANGE 400 Bad Request INV_INPUT_MISSING_REQUIRED 400 Bad Request NON_EXISTENT_VLUN 404 Not Found Description Incomplete VLUN information. Invalid URL percent encoding. (Since WSAPI 1.2) Specified hostname not found. Incorrect LUN or volumeName Specified port is invalid. The LUN specified exceeds expected range. Incomplete VLUN info. Missing volumeName or lun, or both hostname and port. Incorrect LUN or volumeName VLUN Removal Example In the following example, the VLUN for volume test_vv02 with LUN 252, which is exported to mysystem through port 2:5:2, is deleted. The optional port information is also sent because the VLUN is of matched type. HTTP Request DELETE /api/v1/vluns/test_vv02,252,mysystem,2:2:4 HTTP/1.1 Host: storsys1.example.com:8080 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://:8080/api/v1/vluns All-VLUNs Query Success A successful query returns the HTTP status code 200 OK and a response body with members as shown in Table 72 (page 74). Querying VLUNs 73