HP 3PAR StoreServ 7450 2-node HP 3PAR Web Service API 1.2 Developer's - Page 75

All-VLUNs Query Example, volumeWWN: 60002AC020D017D

Page 75 highlights

All-VLUNs Query Example The example lists all the VLUN templates or active VLUNs, including all active and template VLUNs on the storage system: HTTP Request GET /api/v1/vluns HTTP/1.1 Host: storsys1.example.com:8080 Accept: application/json Content-Type: application/json X-HP3PAR-WSAPI-SessionKey: 2-33fe8891e288b34b3f914410e7cc7907-a93d1c50 HTTP Response {"total": 2, "members": [ { "lun": 1, "volumeName": "vol1.0", "hostname": "host", "remoteName": "10000000C978500E", "portPos": { "node": 0, "slot": 4, "cardPort": 1 }, "type": 4, "volumeWWN": "60002AC0000000000000020D0000017D", "multipathing": 1, "failedPathPol": 1, "failedPathInterval": 0, "active": true }, { "lun": 10, "volumeName": "vol1.0", "portPos": { "node": 0, "slot": 4, "cardPort": 1 }, "type": 4, "volumeWWN": "60002AC0000000000000020D0000017D", "multipathing": 1, "failedPathPol": 1, "failedPathInterval": 0, "active": false } ] } All-VLUNs Query Errors Upon an unsuccessful query of all volumes, the INT_SERV_ERR might be returned. For details about this error code, see Table 5 (page 17). For generic API error codes, see Table 5 (page 17). Querying VLUNs 75

  • 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

All-VLUNs Query Example
The example lists all the VLUN templates or active VLUNs, including all active and template VLUNs
on the storage system:
HTTP Request
GET /api/v1/vluns HTTP/1.1
Host: storsys1.example.com:8080
Accept: application/json
Content-Type: application/json
X-HP3PAR-WSAPI-SessionKey: 2-33fe8891e288b34b3f914410e7cc7907-a93d1c50
HTTP Response
{"total": 2,
"members": [
{
"lun": 1,
"volumeName": "vol1.0",
"hostname": "host",
"remoteName": "10000000C978500E",
"portPos": {
"node": 0,
"slot": 4,
"cardPort": 1
},
"type": 4,
"volumeWWN": "60002AC0000000000000020D0000017D",
"multipathing": 1,
"failedPathPol": 1,
"failedPathInterval": 0,
"active": true
},
{
"lun": 10,
"volumeName": "vol1.0",
"portPos": {
"node": 0,
"slot": 4,
"cardPort": 1
},
"type": 4,
"volumeWWN": "60002AC0000000000000020D0000017D",
"multipathing": 1,
"failedPathPol": 1,
"failedPathInterval": 0,
"active": false
}
]
}
All-VLUNs Query Errors
Upon an unsuccessful query of all volumes, the
INT_SERV_ERR
might be returned. For details
about this error code, see
Table 5 (page 17)
. For generic API error codes, see
Table 5 (page 17)
.
Querying VLUNs
75