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

Creating a Storage Volume, Creating Base Volumes, Message Body Members

Page 41 highlights

Creating a Storage Volume This section contains information on creating volumes, and includes the following topics: • Create base volumes • Create snapshot volumes NOTE: Any user with Super or Edit role, or any role granted the vv_create right (for base volumes) or sv_create (for snapshot volumes), can create a volume. Creating Base Volumes To create a storage volume, use the HTTP POST method in the URI: https://:8080/api/v1/volumes NOTE: The parameter will be replaced with the actual storage system's host name or IP address. Message Body Members The message body is a JSON object with the members shown in Table 31 (page 41). Most of the message-body JSON object members are optional. The definition of members can be found in the HP 3PAR Command Line Interface Reference or in the column help for the CLI command createvv. Table 31 Message Body JSON Objects for Base-volume Creation Member name cpg sizeMiB JSON Type API Type string name31 string name31 number uint32 id number igint32 comment string print511 policies snapCPG object policies object string name31 ssSpcAllocWarningPct number igint32 Ignored Values None (Required) None (Required) None (Required) Negative values None None, except caching and system, which are ignored if false. None Negative values Description Specifies a VV name up to 31 characters in length. Specifies the name of the CPG from which the volume user space will be allocated. Specifies the size for the volume in MiB. The volume size is rounded up to the next multiple of 256 MiB. Specifies the ID of the volume. If not specified, the next available ID is chosen. Specifies any additional information up to 511 characters for the volume. Specifies virtual volume policies. Specifies the name of the CPG from which the snapshot space will be allocated. Enables a snapshot space allocation Creating a Storage Volume 41

  • 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

Creating a Storage Volume
This section contains information on creating volumes, and includes the following topics:
Create base volumes
Create snapshot volumes
NOTE:
Any user with Super or Edit role, or any role granted the
vv_create
right (for base
volumes) or
sv_create
(for snapshot volumes), can create a volume.
Creating Base Volumes
To create a storage volume, use the HTTP POST method in the URI:
https://
<storage system>
:8080/api/v1/volumes
NOTE:
The
<storage system>
parameter will be replaced with the actual storage system’s
host name or IP address.
Message Body Members
The message body is a JSON object with the members shown in
Table 31 (page 41)
.
Most of the message-body JSON object members are optional. The definition of members can be
found in the
HP 3PAR Command Line Interface Reference
or in the column help for the CLI command
createvv
.
Table 31 Message Body JSON Objects for Base-volume Creation
Description
Ignored Values
API Type
JSON Type
Member
Specifies a VV name up
to 31 characters in
length.
None (Required)
name31
string
name
Specifies the name of the
CPG from which the
None (Required)
name31
string
cpg
volume user space will
be allocated.
Specifies the size for the
volume in MiB. The
None (Required)
uint32
number
sizeMiB
volume size is rounded
up to the next multiple of
256 MiB.
Specifies the ID of the
volume. If not specified,
Negative values
igint32
number
id
the next available ID is
chosen.
Specifies any additional
information up to 511
None
print511
string
comment
characters for the
volume.
Specifies virtual volume
policies.
None, except caching
and system, which are
ignored if false.
policies object
object
policies
Specifies the name of the
CPG from which the
None
name31
string
snapCPG
snapshot space will be
allocated.
Enables a snapshot
space allocation
Negative values
igint32
number
ssSpcAllocWarningPct
Creating a Storage Volume
41