Creating a Volume

POST /volume

Introduction

Creates a new Volume.

Caution
  • Creating a Volume of the following types is not supported by the ETERNUS RESTful API:

    • WSV

    • SDPV

    • SDV

    • FTV

  • You can find the Href of the created Volume in resource_href_list of GET /job/{job_id}.

  • Tenant users can only create TPV type volumes.

Request Examples

  • This is an example of creating a Volume (name = sample_vol) of 40 GB in Thin Provisioning Pool ID 0.

    $ curl -i -H "Content-Type:application/json" -H "Authorization: Bearer g17e4umvwYoHuhkG7yCSee.." -X POST "https://192.168.1.1:5665/api/v1/volume"
    -d
    '{"name":"sample_vol","capacity":40960,"tpp_id":0}'
  • This is an example of creating three Destination-Protection-enabled Volumes (name = test_vol) with a capacity of 5 GB on RAID Group ID 10.

    $ curl -i -H "Content-Type:application/json" -H "Authorization: Bearer g17e4umvwYoHuhkG7yCSee.." -X POST "https://192.168.1.1:5665/api/v1/volume"
    -d
    '{"name":"test_vol","capacity":5120,"raidgroup_id":10,"count":3,"is_copy_protection_enabled":"true"}'

Response Examples

{
  "job_id": 8192001,
  "job_href": "/api/v1/job/8192001"
}

Parameters

REQUEST BODY

name

(required)

string

Volume name.

If "count" is greater than 2, a sequential decimal number is automatically appended to the Volume name.

The starting number of the serial number that is added can be specified in "start_number".

The number of digits for the serial number that is added can be specified in "number_of_digits".

For example, if "name" is "Volume#", "count" is 2, "start_number" is 10, and "number_of_digits" is 3, the names of the created volumes are "Volume#010" and "Volume#011".

Input criteria:

  • The available number of characters allowed is 1 to 32.

  • Acceptable characters are single byte alphanumeric characters. However, "," and "?" are excluded.

  • You cannot use a Volume name that already exists.

  • The following Volume names are not allowed:
    • Volume name starting with "$VVOL_META".

    • Volume name starting with "$DATA_CNTNR".

    • Volume name starting with "$SYSVOL".

capacity

(required)

integer

Volume capacity.

The unit is MB.

Input criteria:

  • The allowed values are 24 to 134217728.

  • To create a Volume in the Thin Provisioning Pool, the following conditions must be met:
    • The total volume capacity that can be created in a single operation cannot exceed 2 PB.

    • The total TPV (except when Data Reduction is enabled) and FTV capacity of a device cannot exceed the Maximum Pool Capacity of the device.

    • The total capacity of Data Reduction Enabled Volumes cannot exceed 10 times the capacity of Data Container Volume in the destination Thin Provisioning Pool.

  • If you create a Volume in a RAID Group, you cannot specify more space than the maximum available space in the destination RAID Group.

tpp_id

integer

ID of the destination Thin Provisioning Pool.

This setting is required if the Volume is created in the Thin Provisioning Pool.

Input criteria:

  • This item cannot be specified when raidgroup_id is specified.

  • You cannot specify a Thin Provisioning Pool that does not exist.

  • For tenant users, only Thin Provisioning Pools that belong to the tenant of the current user can be specified.

  • For non tenant users, the volumes they create by specifying a Thin Provisioning Pool that belongs to a tenant belong to the same tenant as that of the Thin Provisioning Pool.

raidgroup_id

integer

ID of the destination RAID Group.

This setting is required if Volume is created in a RAID Group.

Input criteria:

  • This item cannot be specified if tpp_id is set.

  • You cannot specify a RAID Group that does not exist.

  • Tenant users cannot specify this item.

volume_number

integer

The Volume Number of the Volume to be created.

If omitted, the Volume is automatically numbered.

Input criteria:

  • The allowed values are 0 to 65535.

  • You cannot specify a Volume Number that is in use by an existing Volume.

  • If count is greater than or equal to 2, this item cannot be specified.

count

integer

Default: 1

The number of volumes to be created.

Input criteria:

  • If tpp_id or raidgroup_id is specified, the allowed values are 1 to 512.

start_number

integer

Default: 0

The starting number of the serial number to be appended to the end of the volume name when multiple volumes are created.

Input criteria:

  • The allowed values are 0 to 99999.

  • This item cannot be specified if "count" is set as 1 or is omitted.

number_of_digits

integer

Default: 1

The number of digits for the serial number to be appended to the end of the volume name when multiple volumes are created.

Input criteria:

  • The allowed values are 1 to 5.

  • This item cannot be specified if "count" is set as 1 or is omitted.

is_data_reduction_disabled

boolean

Default: false

Data Reduction disable settings.

If true, Deduplication and/or Compression is disabled for the data written to the Volume being created.

Input criteria:

  • This item can only be specified if the Volume is created in the Thin Provisioning Pool.

  • This item can only be specified if Data Reduction is enabled for the destination Thin Provisioning Pool.

is_copy_protection_enabled

boolean

Default: false

Copy destination protection settings.

If true, the Volume is not available as a Copy destination.

Specify this item if you want to prevent data corruption due to unexpected copying.

Input criteria:

  • The Advanced Copy License must be registered on the device.

is_exc_disabled

boolean

Default: false

Extreme Cache Pool configuration.

If true, Extreme Cache Pool is not used when the created Volume is accessed.

Input criteria:

  • You may specify this item only if the device's or Extreme Cache Pool is enabled.

  • If the destination Thin Provisioning Pool or RAID Group is configured with an SAS SSD or NVMe SSD, this item cannot be specified.

  • This item cannot be specified if Data Reduction in the destination Thin Provisioning Pool is enabled and the Volume Data Reduction is not disabled.

is_thick_provisioned

boolean

Default: false

Allocation method.

If true, physical space is allocated for the volume when it is created.

Specify this item if you want to prevent system outages due to physical capacity depletion in the Thin Provisioning Pool.

Input criteria:

  • This item can only be specified if the Volume is created in the Thin Provisioning Pool.

  • If this item is specified as true, volume creation fails if the unused capacity in the destination Thin Provisioning Pool is less than the Volume Size.

  • This item cannot be specified if Data Reduction in the destination Thin Provisioning Pool is enabled and the Volume Data Reduction is not disabled.

attention

integer

Default: 80

The Used Rate threshold at which the host sense is reported.

The unit is %.

Input criteria:

  • The allowed values are 1 to 100.

  • This item can only be specified if the Volume is created in the Thin Provisioning Pool.

is_cm_encryption_enabled

boolean

Default: false

Encryption via CM.

If true, the CM encrypts the data in the Volume.

Input criteria:

  • You can specify this setting only if the Volume is created in a RAID Group.

    For TPV encryption, the encryption settings of the Thin Provisioning Pool are reflected.

  • If the creation destination RAID Group is configured with SAS HDD SEDs, SAS SSD SEDs, or NVMe SSD SEDs, '"is_cm_encryption_enabled": true' cannot be specified.

  • This setting can be specified only when the encryption mode of the device is enabled.

Responses

If successful, the HTTP status code is 202 (Accepted) and the response body is returned.

RESPONSE BODY

job_id

integer

Job ID.

job_href

string

Resource link of the job.