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 Code | Error Message ID |
---|---|
200 | OK |
400 | BadRequest |
500 | InternalError |
Note that if the host is powered off, the 400 BadRequest with the Message ID: “ChassisPowerStateOnRequired” is returned.
Give documentation feedback