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

Creating a CPG, CPG Creation Success

Page 33 highlights

Table 17 CPG DetailedState Enumeration Symbol SA_LIMIT_REACHED SD_LIMIT_REACHED SA_GROW_FAILED SD_GROW_FAILED SA_WARN_REACHED SD_WARN_REACHED Value 1 2 3 4 5 6 Description Admin space at limit. Copy space at limit. Admin space grow failed. Copy space grow failed. Admin space at warning level. Copy space at warning level. Creating a CPG To create a CPG, use the HTTP POST method in the URI: https://:8080/api/v1/cpgs with message body members as shown in Table 18 (page 33). NOTE: Any user with Super or Edit role, or any role granted the cpg_create right, can perform this operation. Access to all domains is required for this operation. Table 18 Message Body JSON Objects for CPG Creation and Modification Member name JSON Type string API Type name31 Ignored Values None Description Specifies the name of the CPG. For CPG creation only. growthIncrementMiB number igint32 Zero and negative values In WSAPI 1.2, 0 and negative values are ignored. Specifies the growth increment, in MiB, the amount of logical disk storage created on each auto-grow operation. growthLimitMiB number igint32 Negative values In WSAPI 1.2, zero and negative values are ignored. Specifies that the auto-grow operation is limited to the specified storage amount, in MiB, that sets the growth limit. usedLDWarningAlertMiB number igint32 Negative values In WSAPI 1.2, zero and negative values are ignored. Specifies that the threshold of used logical disk space, in MiB, when exceeded results in a warning alert. domain string name31 Null Specifies the name of the domain in which the object will reside. For CPG creation only. LDLayout object LDLayout Null object Specifies Logical Disk types to be used for this CPG. CPG Creation Success A successful operation returns the HTTP status code 201 Created. There is no message body. Upon successful creation of the CPG, the location portion of the response header contains the URI for the newly created CPG in the following format: /api/v1/cpgs/ Creating a CPG 33

  • 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 17 CPG
DetailedState
Enumeration
Description
Value
Symbol
Admin space at limit.
1
SA_LIMIT_REACHED
Copy space at limit.
2
SD_LIMIT_REACHED
Admin space grow failed.
3
SA_GROW_FAILED
Copy space grow failed.
4
SD_GROW_FAILED
Admin space at warning level.
5
SA_WARN_REACHED
Copy space at warning level.
6
SD_WARN_REACHED
Creating a CPG
To create a CPG, use the HTTP POST method in the URI:
https://
<storage system>
:8080/api/v1/cpgs
with message body members as shown in
Table 18 (page 33)
.
NOTE:
Any user with Super or Edit role, or any role granted the
cpg_create
right, can perform
this operation. Access to all domains is required for this operation.
Table 18 Message Body JSON Objects for CPG Creation and Modification
Description
Ignored Values
API Type
JSON Type
Member
Specifies the name of the
CPG.
None
name31
string
name
For CPG creation only.
Specifies the growth
increment, in MiB, the amount
Zero and negative values
In WSAPI 1.2, 0 and
negative values are
ignored.
igint32
number
growthIncrementMiB
of logical disk storage created
on each auto-grow operation.
Specifies that the auto-grow
operation is limited to the
Negative values
In WSAPI 1.2, zero and
negative values are
ignored.
igint32
number
growthLimitMiB
specified storage amount, in
MiB, that sets the growth limit.
Specifies that the threshold of
used logical disk space, in
Negative values
In WSAPI 1.2, zero and
negative values are
ignored.
igint32
number
usedLDWarningAlertMiB
MiB, when exceeded results
in a warning alert.
Specifies the name of the
domain in which the object
will reside.
Null
name31
string
domain
For CPG creation only.
Specifies Logical Disk types
to be used for this CPG.
Null
LDLayout
object
object
LDLayout
CPG Creation Success
A successful operation returns the HTTP status code
201 Created
. There is no message body.
Upon successful creation of the CPG, the location portion of the response header contains the URI
for the newly created CPG in the following format:
/api/v1/cpgs/<cpg name>
Creating a CPG
33