ServerMania logo

Edit Disk IO Limits

To edit the disk IO limits, use the following request:

PUT /settings/disks/:id/io_limits.xml
PUT /settings/disks/:id/io_limits.json

XML Request Example

curl -i -X PUT http://test/settings/disks/2/io_limits.xml -d '<io_limits><io_limits_override>true</io_limits_override><read_iops>100</read_iops><write_iops>100</write_iops><read_throughput>1</read_throughput><write_throughput>1</write_throughput></io_limits>' -u user:userpass -H 'Accept: application/xml' -H 'Content-type: application/xml' 

JSON Request Example

curl -i -X PUT http://test/settings/disks/2/io_limits.json -d '{"io_limits":{"io_limits_override":true,"read_iops":"100", "write_iops":"100",  "read_throughput":"1", "write_throughput":"1"}}' -u user:userpass -H 'Accept: application/json' -H 'Content-type: application/json'


io_limits_override - set 'true' to override limits with the following settings. If you set 'false', the default settings will be applied.

read_iops - set the read IOPS amount

write_iops - set the write IOPS amount

read_throughput - specify the read throughput (in MB/s)

write_throughput - specify the write throughput (in MB/s)