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

All-ports Query Errors, Querying A Single Port

Page 67 highlights

Table 61 Port Property JSON Objects (continued) Member JSON Type API Type failoverState IPAddr number string iSCSIName string enodeMACAddr pfcMask string string portFailoverState Enum string Name223 MAC Hex Description :: format. (Since WSAPI 1.2) (Since WSAPI 1.2) For RCIP and iSCSI ports only; not included in the JSON object for other ports. (Since WSAPI 1.2) For iSCSI port only; not included in the JSON object for other ports. (Since WSAPI 1.2) Ethernet node MAC address. PFC mask. All-ports Query Errors The INT_SERV_ERR might be returned upon querying all volumes. For details about this error code, see Table 5 (page 17). For generic API error codes, see Table 5 (page 17). Querying A Single Port To query port information for a single instance, use the HTTP GET method in the URI, with no message body, where is the port :: value: https://:8080/api/v1/ports/ Single-port Query Success Upon success, the HTTP code 200 OK is returned. Unless an internal server error occurs, the response includes a message body as specified in Table 62 (page 67). Table 62 Port Collection Message Body for a Single-port Query JSON Type object API Type Port Property object Description Storage port properties. (Since WSAPI 1.2) Single-port Query Errors Possible errors for a single-port query response are shown in Table 63 (page 67). For generic API error codes, see Table 5 (page 17). Table 63 Single-port Query Error Codes API Code HTTP Code INV_INPUT_PORT_SPECIFICATION 400 Bad Request Description Incorrect port specification. (Since WSAPI 1.2) NON_EXISTENT_PORT 404 Not Found Port does not exist. (Since WSAPI 1.2) Querying A Single Port 67

  • 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

Table 61
Port Property
JSON Objects
(continued)
Description
API Type
JSON Type
Member
<Node>:<Slot>:<Port>
format.
(Since WSAPI 1.2)
(Since WSAPI 1.2)
portFailoverState Enum
number
failoverState
For RCIP and iSCSI ports
only; not included in the
JSON object for other ports.
string
string
IPAddr
(Since WSAPI 1.2)
For iSCSI port only; not
included in the JSON object
for other ports.
Name223
string
iSCSIName
(Since WSAPI 1.2)
Ethernet node MAC address.
MAC
string
enodeMACAddr
PFC mask.
Hex
string
pfcMask
All-ports Query Errors
The
INT_SERV_ERR
might be returned upon querying all volumes. For details about this error
code, see
Table 5 (page 17)
. For generic API error codes, see
Table 5 (page 17)
.
Querying A Single Port
To query port information for a single instance, use the HTTP GET method in the URI, with no
message body, where
<n:s:p>
is the port
<node>:<slot>:<port>
value:
https://
<storage system>
:8080/api/v1/ports/
<n:s:p>
Single-port Query Success
Upon success, the HTTP code
200 OK
is returned.
Unless an internal server error occurs, the response includes a message body as specified in
Table 62 (page 67)
.
Table 62 Port Collection Message Body for a Single-port Query
Description
API Type
JSON Type
Storage port properties.
Port Property
object
object
(Since WSAPI 1.2)
Single-port Query Errors
Possible errors for a single-port query response are shown in
Table 63 (page 67)
. For generic API
error codes, see
Table 5 (page 17)
.
Table 63 Single-port Query Error Codes
Description
HTTP Code
API Code
Incorrect port specification.
400 Bad Request
INV_INPUT_PORT_SPECIFICATION
(Since WSAPI 1.2)
Port does not exist.
404 Not Found
NON_EXISTENT_PORT
(Since WSAPI 1.2)
Querying A Single Port
67