HP 3PAR StoreServ 7400 2-node HP 3PAR Web Service API 1.2 Developer's - Page 71

VLUN Creation Example, HTTP Request, Table 69 VLUN Creation Error Codes

Page 71 highlights

Table 69 VLUN Creation Error Codes (continued) API Error HTTP Code Description Since WSAPI 1.2. INV_INPUT 400 Bad Request Missing volumeName or LUN or both hostname and portPos members. Incomplete port info, specifying override option without hostname. NON_EXISTENT_VOL NON_EXISTENT_HOST NON_EXISTENT_PORT 404 Not found Specified volume does not exist. 404 Not found Specified hostname not found. 404 Not found Specified port does not exist. (Since WSAPI 1.2) MISSING_VLUN_EXPORT_INFO 400 Bad Request Missing both hostname and portPos for VLUN creation. BAD_PORT_TYPE 404 Not found Specified port is of invalid port type. EXISTENT_LUN 409 Conflict LUN already exists. INV_INPUT_PORT_SPECIFICATION 400 Bad Request Incorrect portPos specification or the node or slot or cardPort in portPos object maybe out of range. INV_INPUT_PARAM_CONFLICT 400 Bad Request OverrideLowerPriority is being specified without hostname. TOO_LARGE 400 Bad Request LUN is greater than 16384. AUTO_LUN_ID_UNAVAILABLE 409 Conflict LUN ID cannot be assigned within the specified range. (Since WSAPI 1.2) LUN_HOSTPERSONA_CONFLICT LUN_HOSTPERSONA_CONFLICT 409 Conflict LUN number and the host persona capability conflict. (Since WSAPI 1.2) INV_OPERATION_VLUN_PCOPY_TARGET_VV 409 Conflict Volume is a target of physical copy. VLUN Creation Example The following example creates a matched VLUN type template for test_vv02 volume. HTTP Request POST /api/v1/vluns HTTP/1.1 Host: storsys1.example.com:8080 Accept: application/json Content-Type: application/json X-HP3PAR-WSAPI-SessionKey: 2-33fe8891e288b34b3f914410e7cc7907-a93d1c50 { "volumeName":"test_vv02", "lun":252, "hostname":"mysystem", "portPos":{ "node": 2, "slot": 2, "cardPort": 4 }, "noVcn":false, Creating a VLUN 71

  • 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 69 VLUN Creation Error Codes
(continued)
Description
HTTP Code
API Error
Since WSAPI 1.2.
Missing
volumeName
or LUN or both
hostname
and
portPos
members.
400 Bad
Request
INV_INPUT
Incomplete port info, specifying override option without
hostname.
Specified volume does not exist.
404 Not found
NON_EXISTENT_VOL
Specified hostname not found.
404 Not found
NON_EXISTENT_HOST
Specified port does not exist.
404 Not found
NON_EXISTENT_PORT
(Since WSAPI 1.2)
Missing both
hostname
and
portPos
for VLUN
creation.
400 Bad
Request
MISSING_VLUN_EXPORT_INFO
Specified port is of invalid port type.
404 Not found
BAD_PORT_TYPE
LUN already exists.
409 Conflict
EXISTENT_LUN
Incorrect
portPos
specification or the node or slot or
cardPort
in
portPos
object maybe out of range.
400 Bad
Request
INV_INPUT_PORT_SPECIFICATION
OverrideLowerPriority
is being specified without
hostname
.
400 Bad
Request
INV_INPUT_PARAM_CONFLICT
LUN is greater than 16384.
400 Bad
Request
TOO_LARGE
LUN ID cannot be assigned within the specified range.
409 Conflict
AUTO_LUN_ID_UNAVAILABLE
(Since WSAPI 1.2)
LUN number and the host persona capability conflict.
409 Conflict
LUN_HOSTPERSONA_CONFLICT
LUN_HOSTPERSONA_CONFLICT
(Since WSAPI 1.2)
Volume is a target of physical copy.
409 Conflict
INV_OPERATION_VLUN_PCOPY_TARGET_VV
VLUN Creation Example
The following example creates a matched VLUN type template for
test_vv02
volume.
HTTP Request
POST /api/v1/vluns HTTP/1.1
Host: storsys1.example.com:8080
Accept: application/json
Content-Type: application/json
X-HP3PAR-WSAPI-SessionKey: 2-33fe8891e288b34b3f914410e7cc7907-a93d1c50
{
"volumeName":"test_vv02",
"lun":252,
"hostname":"mysystem",
"portPos":{
"node": 2,
"slot": 2,
"cardPort": 4
},
"noVcn":false,
Creating a VLUN
71