Edit Data Store IOPS Limits

To edit a data store IOPS limits, use the following request:

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

XML Request Example

curl -i -X PUT http://onapp.test/settings/data_stores/12/io_limits.xml -d '<io_limits><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://onapp.test/settings/data_stores/12/io_limits.json -d '{"io_limits":{"read_iops":"100", "write_iops":"100",  "read_throughput":"1", "write_throughput":"1"}}' -u user:userpass -H 'Accept: application/json' -H 'Content-type: application/json'

Where: 

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)