Skip to main content

POST – Create a Volume

Use the POST method to initialize volume.

Request URL

POST https://<BMC_IPADDR>/redfish/v1/Systems/1/Storage/{StorageId}/Volumes

Request body

Field

Type

Description

Name

Note 1
String

The new name with at most 15 characters.

RAIDType

Note 1
String

RAID TYPEs that the RAID controller and current env support.

CapacityBytes

Note 2
String

At least 1048576.

ReadCachePolicy

String

“Off” or “ReadAhead”

WriteCachePolicy

String

“WriteThrough”, “UnprotectedWriteBack” or “ProtectedWriteBack”

Oem/Lenovo/IOPolicy

String

“DirectIO” or “CachedIO”

Oem/Lenovo/AccessPolicy

String

“ReadWrite”, “ReadOnly” or “Blocked”

Oem/Lenovo/DriveCachePolicy

String

“Unchanged”, “Disable” or “Enable”

StripSizeBytes

Number

The number of blocks (bytes) in a strip in a disk array that uses striped data mapping.
Note
If the storage is 7mm or M.2, this object will be hidden.

Links

Object

Expanded.

 

Drives

Array

An array of references to the drives that are used to create the volume.

Note 1: This property is mandatory and should not be an empty string when creating a volume.

Note 2: It will be converted to a unit of megabyte at backend, so the property in GET operation may be different with the input value in POST operation. The minimum of the value is 1048576 (1MB = 1024 * 1024).

Response

The response returns the created volumes information.

Status code

HTTP Status CodeError Message ID
201Created
500InternalError