HP 3PAR StoreServ 7400 2-node HP 3PAR Web Service API 1.2 Developer's - Page 37

CPG Query Success, CPG Query Errors, Querying a Single CPG

Page 37 highlights

Table 22 CPG Query members JSON Objects (continued) Member JSON Type API Type Description degradedStates array of numbers array of DetailedState enum Detailed state of CPG. additionalStates array of numbers array of DetailedState enum Detailed state of CPG. CPG Query Success Upon success, the HTTP status code 200: OK is returned. CPG Query Errors Possible error codes are shown in Table 23 (page 37). For generic API error codes, see Table 5 (page 17). Table 23 CPG Query Error Codes API Error INT_SERV_ERR HTTP Code 500 Internal Server Error Description Internal server error. Querying a Single CPG This section defines API operations to query a single CPG on the storage system. To query a single CPG, use the HTTP GET method on the following URI, with no message body: https://:8080/api/vi/cpgs/ where is the CPG to query. Single-CPG Query Success Upon a successful single-CPG query, the HTTP code 200 OK is returned. Unless an error occurs, the response includes JSON objects as specified in Table 22 (page 36). Single-CPG Query Errors Possible error codes for a single-CPG query are shown in Table 24 (page 37). For generic API error codes, see Table 5 (page 17). Table 24 Single-CPG Query Error Codes API Error NON_EXISTENT_CPG HTTP Code 404 Not Found Description CPG does not exist. (Since WSAPI 1.2) INV_INPUT_ILLEGAL_CHAR 400 Bad Request CPG name contains invalid character. (Since WSAPI 1.2) Querying CPG Information 37

  • 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 22 CPG Query
members
JSON Objects
(continued)
Description
API Type
JSON Type
Member
Detailed state of CPG.
array of
DetailedState
enum
array of
numbers
degradedStates
Detailed state of CPG.
array of
DetailedState
enum
array of
numbers
additionalStates
CPG Query Success
Upon success, the HTTP status code
200: OK
is returned.
CPG Query Errors
Possible error codes are shown in
Table 23 (page 37)
. For generic API error codes, see
Table 5 (page 17)
.
Table 23 CPG Query Error Codes
Description
HTTP Code
API Error
Internal server error.
500 Internal Server Error
INT_SERV_ERR
Querying a Single CPG
This section defines API operations to query a single CPG on the storage system.
To query a single CPG, use the HTTP GET method on the following URI, with no message body:
https://
<storage system>
:8080/api/vi/cpgs/
<cpg name>
where
<cpg name>
is the CPG to query.
Single-CPG Query Success
Upon a successful single-CPG query, the HTTP code
200 OK
is returned.
Unless an error occurs, the response includes JSON objects as specified in
Table 22 (page 36)
.
Single-CPG Query Errors
Possible error codes for a single-CPG query are shown in
Table 24 (page 37)
. For generic API
error codes, see
Table 5 (page 17)
.
Table 24 Single-CPG Query Error Codes
Description
HTTP Code
API Error
CPG does not exist.
404 Not Found
NON_EXISTENT_CPG
(Since WSAPI 1.2)
CPG name contains invalid character.
400 Bad Request
INV_INPUT_ILLEGAL_CHAR
(Since WSAPI 1.2)
Querying CPG Information
37