HP 3PAR StoreServ 7400 4-node HP 3PAR Web Service API 1.2 Developer's - Page 56

Host Modification Success, Table 45 Host, Enumeration, Table 46 Host Modification Error Codes

Page 56 highlights

Table 45 Host hostPersona Enumeration (continued) Symbol Value ONTAP_LEGACY 7 VMWARE 8 OPENVMS 9 Description Persona with capability of SoftInq. Persona with capability of SubLun, ALUA. Persona with capability of UARepLun, Lun0SCC. Host Modification Success Upon successful modification of a host, the HTTP code 200 OK is returned, and there is no message body. The URI of the updated host will be returned in the location portion of the response header: /api/v1/hosts/ Host Modification Errors Possible error codes following a host modification request are shown in Table 46 (page 56). For generic API error codes, see Table 5 (page 17). Table 46 Host Modification Error Codes API Error INV_INPUT INV_INPUT_PARAM_CONFLICT HTTP Code 400 Bad Request 400 Bad Request Description Missing host name. If pathOperation is specified, then the following descriptors cannot be specified: newName persona chapOperation If chapOperation is specified, then the following descriptors cannot be specified: newName persona pathOperation forcePathRemoval is specified and pathOperation is Add. forcePathRemoval can be used only with path removal. Both iSCSINames and FCWWNs are specified. The system can handle either FC WWN or iSCSI names in one operation, but not both. (Multiple FC WWN or iSCSI names can be specified.) chapOperation is Add, and chapRemoveTargetOnly is specified. chapRemoveTargetOnly is for chap removal only. chapOperation is remove, and chapSecret, chapOperationMode, chapName, or chapSecretHex is specified. 56 Working with Hosts

  • 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 45 Host
hostPersona
Enumeration
(continued)
Description
Value
Symbol
Persona with capability of
SoftInq
.
7
ONTAP_LEGACY
Persona with capability of
SubLun
,
ALUA
.
8
VMWARE
Persona with capability of
UARepLun
,
Lun0SCC
.
9
OPENVMS
Host Modification Success
Upon successful modification of a host, the HTTP code
200 OK
is returned, and there is no message
body. The URI of the updated host will be returned in the location portion of the response header:
/api/v1/hosts/<host name>
Host Modification Errors
Possible error codes following a host modification request are shown in
Table 46 (page 56)
. For
generic API error codes, see
Table 5 (page 17)
.
Table 46 Host Modification Error Codes
Description
HTTP Code
API Error
Missing host name.
400 Bad Request
INV_INPUT
If
pathOperation
is specified, then
the following descriptors cannot be
specified:
400 Bad Request
INV_INPUT_PARAM_CONFLICT
newName
persona
chapOperation
If
chapOperation
is specified, then
the following descriptors cannot be
specified:
newName
persona
pathOperation
forcePathRemoval
is specified and
pathOperation
is
Add
.
forcePathRemoval
can be used only
with path removal.
Both
iSCSINames
and
FCWWNs
are
specified.
The system can handle either FC WWN
or iSCSI names in one operation, but
not both. (Multiple FC WWN or iSCSI
names can be specified.)
chapOperation
is
Add
, and
chapRemoveTargetOnly
is specified.
chapRemoveTargetOnly
is for chap
removal only.
chapOperation
is
remove
, and
chapSecret
,
chapOperationMode
,
chapName
, or
chapSecretHex
is
specified.
56
Working with Hosts