HP 3PAR StoreServ 7400 2-node HP 3PAR Web Service API 1.2 Developer's - Page 48
Removing a Storage Volume, Storage Volume Removal Success, Querying Volume Information
View all HP 3PAR StoreServ 7400 2-node manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 48 highlights
Removing a Storage Volume To remove a volume, use the HTTP DELETE method in the URI, with no message body: https://:8080/api/v1/volumes/ Storage Volume Removal Success A successful storage-volume removal returns the HTTP status code 200 OK. Storage Volume Removal Errors An error condition returns an error code as shown in Table 36 (page 48). For generic API error codes, see Table 5 (page 17). Table 36 Storage Volume Removal Error Codes API Error NON_EXISTENT_VOL RETAINED HTTP Code 404 Not Found 409 Conflict Description The volume does not exist. Volume retention time has not expired. HAS_RO_CHILD 409 Conflict Volume has read-only child. PERM_DENIED HAS_CHILD 403 Forbidden 409 Conflict Insufficient privileges. Volume has child VV. (Since WSAPI 1.2) IN_USE 409 Conflict Volume in use by VV set, VLUN, etc. (Since WSAPI 1.2) Querying Volume Information Querying All Volumes To query for storage volume information, use the HTTP GET method in the URI, with no message body: https://:8080/api/v1/volumes All-Volumes Query Success Unless an error occurs, the response includes a message body with JSON objects total and members. The total object is the number of objects in the members array. The members object contains an array of zero or more JSON objects, one for each volume on the system. JSON object members are shown in Table 37 (page 48) Table 37 Message Body JSON Objects for Volume Query Member id uuid name domain provisioningType copyType JSON Type number string API Type int32 uuid string string string number number name31 name31 provisioningType enum copyType enum Description VV identifier. UUID that was automatically assigned to the volume at creation. VV name VV domain The provisioning for the VV. Indicates the copy type of the VV. 48 Working with Storage Volumes