HP 3PAR Web Service API 1.3.1 Developer's Guide

Table 57 Host Modification Error Codes (continued)
DescriptionHTTP CodeAPI Error
Any error from host or iSCSI name
parsing.
400 Bad RequestINV_INPUT_ILLEGAL_CHAR
New host name is already used.409 ConflictEXISTENT_HOST
Host to be modified does not exist.404 Not FoundNON_EXISTENT_HOST
More than 1024 WWNs or iSCSI
names are specified.
400 Bad RequestINV_INPUT_TOO_MANY_WWN_OR_iSCSI
Input value is of the wrong type.400 Bad RequestINV_INPUT_WRONG_TYPE
WWN name or iSCSI name is already
claimed by other host.
409 ConflictEXISTENT_PATH
CHAP hex secret length is not 16 bytes,
or chap ASCII secret length is not
12–16 characters.
400 Bad RequestINV_INPUT_BAD_LENGTH
Setting target CHAP without initiator
CHAP.
404 Not FoundNO_INITIATOR_CHAP
Remove non-existing CHAP.404 Not FoundNON_EXISTENT_CHAP
CHAP secret is not unique.409 ConflictNON_UNIQUE_CHAP_SECRET
Setting persona with active export.409 ConflictEXPORTED_VLUN
Remove a host path on an active
export.
Removing a non-existent path.400 Bad RequestNON_EXISTENT_PATH
LUN number and persona capability
conflict:
409 ConflictLUN_HOSTPERSONA_CONFLICT
Duplicate path specified.404 Bad RequestINV_INPUT_DUP_PATH
Removing a Host
To remove a host, use the HTTP DELETE method. Use the following URI:
https://<storage_system>:8080/api/v1/hosts/<host_name>
NOTE: Any user with Super or Edit role, or any role granted the host_remove right, can perform
this operation. Access to all domains is required for this operation.
Host Removal Success
Upon success, the HTTP code 200 OK is returned with no message body.
Host Removal Errors
Table 58 (page 79) shows the errors that can occur following a request for host removal. For
generic API error codes, see Table 5 (page 22).
Table 58 Host Removal Error Codes
DescriptionHTTP CodeAPI Error
Host not found.404 Not FoundNON_EXISTENT_HOST
Host is a member of a set.409 ConflictHOST_IN_SET
(Since WSAPI 1.2)
Removing a Host 79