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

Querying a Single VLUN, Single-VLUN Query Success

Page 76 highlights

Querying a Single VLUN To query a single VLUN, use the HTTP GET method on the following URL: https://:8080/api/v1/vluns/ where: • is the VLUN identifier returned in the location header after the VLUN was created. • format can be one of the following: ◦ ,,, ◦ ,, ◦ ,, The and fields are mandatory. The and fields are optional, but one or both of them must be specified. NOTE: The use of patterns or sets in querying volumes and hosts is not supported in WSAPI 1.2. In order to query a single instance of a VLUN object, the specific volume name and host name must be specified. Single-VLUN Query Success Upon a successful VLUN query, the HTTP code 200 OK is returned. Table 74 Message Body JSON Objects for Single-VLUN Query Response Member total JSON Type number API Type int32 Description Number of VLUN objects returned. members array of objects array of VLUN Property objects VLUN properties. (Since WSAPI 1.2 As with all collection queries, the total is the number objects in the collection. NOTE: If no VLUN is specified with the volume name, LUN, and host and/or port, a NON_EXISTENT_VLUN error is returned. The members object is a JSON array of zero or more JSON objects as listed in Table 75 (page 76). Table 75 JSON Objects for members object in Single-VLUN Query Response Member lun JSON Type number API Type int32 Description LUN ID. (Since WSAPI 1.2) volumeName string name31 Volume name. (Since WSAPI 1.2) hostname string name31 Host name. (Since WSAPI 1.2) remoteName string name31 Host WWN, or iSCSI name, or SAS addr, depending on the port type. 76 Working with Virtual LUNs

  • 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

Querying a Single VLUN
To query a single VLUN, use the HTTP GET method on the following URL:
https://
<storage system>
:8080/api/v1/vluns/
<vlun id>
where:
<vlun id>
is the VLUN identifier returned in the location header after the VLUN was created.
<vlun id>
format can be one of the following:
<vvname>,<lunID>,<hostname>,<portPos>
<vvname>,<lunID>,<hostname>
<vvname>,<lunID>,<portPos>
The
<vvname>
and
<lunID>
fields are mandatory. The
<hostname>
and
<portPos>
fields
are optional, but one or both of them must be specified.
NOTE:
The use of patterns or sets in querying volumes and hosts is not supported in WSAPI 1.2.
In order to query a single instance of a VLUN object, the specific volume name and host name
must be specified.
Single-VLUN Query Success
Upon a successful VLUN query, the HTTP code
200 OK
is returned.
Table 74 Message Body JSON Objects for Single-VLUN Query Response
Description
API Type
JSON Type
Member
Number of VLUN objects
returned.
int32
number
total
VLUN properties.
array of VLUN Property
objects
array of objects
members
(Since WSAPI 1.2
As with all collection queries, the total is the number objects in the collection.
NOTE:
If no VLUN is specified with the volume name, LUN, and host and/or port, a
NON_EXISTENT_VLUN
error is returned.
The
members
object is a JSON array of zero or more JSON objects as listed in
Table 75 (page
76)
.
Table 75 JSON Objects for
members
object in Single-VLUN Query Response
Description
API Type
JSON Type
Member
LUN ID.
int32
number
lun
(Since WSAPI 1.2)
Volume name.
name31
string
volumeName
(Since WSAPI 1.2)
Host name.
name31
string
hostname
(Since WSAPI 1.2)
Host WWN, or iSCSI name,
or SAS addr, depending on
the port type.
name31
string
remoteName
76
Working with Virtual LUNs