HP 3PAR StoreServ 7200 2-node HP 3PAR Web Service API 1.2 Developer's - Page 58
Removing a Host, Host Removal Success, Querying Hosts, Host Query Success
View all HP 3PAR StoreServ 7200 2-node manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 58 highlights
Table 46 Host Modification Error Codes (continued) API Error HTTP Code EXPORTED_VLUN 409 Conflict NON_EXISTENT_PATH LUN_HOSTPERSONA_CONFLICT 400 Bad Request 409 Conflict INV_INPUT_DUP_PATH 404 Bad Request Description Setting persona with active export; remove a host path on an active export. Removing a non-existent path. LUN number and persona capability conflict. Duplicate path specified. Removing a Host To remove a host, use the HTTP DELETE method. Use the following URI: https://:8080/api/v1/hosts/ 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 47 (page 58) shows the errors that can occur following a request for host removal. For generic API error codes, see Table 5 (page 17). Table 47 Host Removal Error Codes API Error NON_EXISTENT_HOST HOST_IN_SET HTTP Code 404 Not Found 409 Conflict Description Host not found. Host is a member of a set. (Since WSAPI 1.2) Querying Hosts Query hosts using the HTTP GET method. Use the following URI with no message body: https://:8080/api/v1/hosts To query a single host, use the following URI with no message body: https://:8080/api/v1/hosts/ Host Query Success Unless an error occurs, the response will include a message body that is a JSON array of zero or more JSON objects, as shown in Table 48 (page 58). Table 48 Host Query JSON Objects Member name JSON Type string API Type name31 Description Specifies the name of the host. (Since WSAPI 1.2) persona number HostPersona Enum ID of the persona to assigned to the host. 58 Working with Hosts