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

Querying CPG Information, Querying All CPGs

Page 36 highlights

Table 21 CPG Removal Error Codes API Error HTTP Code NON_EXISTENT_CPG 404 Not Found IN_USE 409 Conflict Description CPG not found. The CPG cannot be removed because it is in use by a volume. Querying CPG Information You can query for information about all the CPGs on the storage system or for information about a single CPG. Querying All CPGs To query for CPG information, use the HTTP GET method in the URI, with no message body: https://:8080/api/v1/cpgs The body of the response is an object with total and members as described below. As is the case with all collection queries, the total object is the number of objects in the collection. The members object is a JSON array of zero or more JSON objects as listed in Table 22 (page 36). Table 22 CPG Query members JSON Objects Member id uuid name domain warningPct JSON Type number string string string number numTPVVs number numFPVVs number UsrUsage SAUsage SDUsage SAGrowth SDGrowth state failedStates object object object object object number array of numbers API Type Description uint32 CPG ID uuid string UUID that was automatically assigned to the CPG at creation. name31 CPG name. name31 Domain to which the CPG belongs. uint32 Percentage usage at which to issue an alert. This is set with the CLI createcpg -aw parameter, which is deprecated and not exposed by this API. uint32 Number of thinly-provisioned virtual volumes allocated in the CPG. uint32 Number of fully-provisioned virtual volumes allocated in the CPG. UsrUsage object User data space usage. SAUsage object Snapshot administration usage. SDUsage object Snapshot data space usage. SAGrowth object Snapshot administration space auto-growth parameters. SDGrowth object Snapshot data space auto-growth parameters. state enum Overall state of the CPG array of DetailedState enum Detailed state of CPG. 36 Working with Common Provisioning Groups

  • 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 21 CPG Removal Error Codes
Description
HTTP Code
API Error
CPG not found.
404 Not Found
NON_EXISTENT_CPG
The CPG cannot be removed because it is in use by
a volume.
409 Conflict
IN_USE
Querying CPG Information
You can query for information about all the CPGs on the storage system or for information about
a single CPG.
Querying All CPGs
To query for CPG information, use the HTTP GET method in the URI, with no message body:
https://
<storage system>
:8080/api/v1/cpgs
The body of the response is an object with
total
and
members
as described below.
As is the case with all collection queries, the
total
object is the number of objects in the collection.
The
members
object is a JSON array of zero or more JSON objects as listed in
Table 22 (page
36)
.
Table 22 CPG Query
members
JSON Objects
Description
API Type
JSON Type
Member
CPG ID
uint32
number
id
UUID that was automatically assigned to the CPG at
creation.
uuid string
string
uuid
CPG name.
name31
string
name
Domain to which the CPG belongs.
name31
string
domain
Percentage usage at which to issue an alert. This is set with
the CLI
createcpg
aw
parameter, which is deprecated
and not exposed by this API.
uint32
number
warningPct
Number of thinly-provisioned virtual volumes allocated in
the CPG.
uint32
number
numTPVVs
Number of fully-provisioned virtual volumes allocated in the
CPG.
uint32
number
numFPVVs
User data space usage.
UsrUsage object
object
UsrUsage
Snapshot administration usage.
SAUsage object
object
SAUsage
Snapshot data space usage.
SDUsage object
object
SDUsage
Snapshot administration space auto-growth parameters.
SAGrowth object
object
SAGrowth
Snapshot data space auto-growth parameters.
SDGrowth object
object
SDGrowth
Overall state of the CPG
state enum
number
state
Detailed state of CPG.
array of
DetailedState
enum
array of
numbers
failedStates
36
Working with Common Provisioning Groups