HP 3PAR StoreServ 7450 4-node HP 3PAR Web Service API 1.2 Developer's - Page 48

Removing a Storage Volume, Storage Volume Removal Success, Querying Volume Information

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

  • 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

Removing a Storage Volume
To remove a volume, use the HTTP DELETE method in the URI, with no message body:
https://
<storage system>
:8080/api/v1/volumes/
<volume name>
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
Description
HTTP Code
API Error
The volume does not exist.
404 Not Found
NON_EXISTENT_VOL
Volume retention time has not expired.
409 Conflict
RETAINED
Volume has read-only child.
409 Conflict
HAS_RO_CHILD
Insufficient privileges.
403 Forbidden
PERM_DENIED
Volume has child VV.
409 Conflict
HAS_CHILD
(Since WSAPI 1.2)
Volume in use by VV set, VLUN, etc.
409 Conflict
IN_USE
(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://
<storage system>
: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
Description
API Type
JSON Type
Member
VV identifier.
int32
number
id
UUID that was automatically
assigned to the volume at creation.
uuid string
string
uuid
VV name
name31
string
name
VV domain
name31
string
domain
The provisioning for the VV.
provisioningType enum
number
provisioningType
Indicates the copy type of the VV.
copyType enum
number
copyType
48
Working with Storage Volumes