Skip to main content

PATCH – Update Volume settings

Use the PATCH method to update properties in volume for Redfish service.

Request URL

PATCH https://<BMC_IPADDR>/redfish/v1/Systems/1/Storage/{Id}/Volumes/{VolumeId}

Request body

Properties to be updated are shown as bellow, all of these properties can be changed individually.

Field

Type

Description

Name

String

The new name with at most 15 characters.

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”

Response

The response returns same content as GET operation with updated properties

Status code

HTTP Status CodeError Message ID
200OK
400BadRequest
500InternalError

Note that if the host is powered off, the 400 BadRequest with the Message ID: “ChassisPowerStateOnRequired” is returned.

Example

The following example is PATCH body

{
"ReadCachePolicy": "ReadAhead"
}