HP 3PAR StoreServ 7450 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

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

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107

Table 71 VLUN Removal Error Codes
Description
HTTP Code
API Error
Incomplete VLUN information.
400 Bad Request
INV_INPUT
Invalid URL percent encoding.
(Since WSAPI 1.2)
Specified hostname not found.
404 Not Found
NON_EXISTENT_HOST
Incorrect
LUN
or
volumeName
404 Not Found
NON_EXISTENT_VLUN
Specified port is invalid.
400 Bad Request
INV_INPUT_PORT_SPECIFICATION
The LUN specified exceeds expected range.
400 Bad Request
INV_INPUT_EXCEEDS_RANGE
Incomplete VLUN info.
Missing
volumeName
or
lun
, or both hostname and
port.
400 Bad Request
INV_INPUT_MISSING_REQUIRED
Incorrect
LUN
or
volumeName
404 Not Found
NON_EXISTENT_VLUN
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://
<storage system>
: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