Change in ovirt-engine[ovirt-engine-3.5]: restapi: add QoS RESTful interface for storage QoS

tnisan at redhat.com tnisan at redhat.com
Mon Aug 25 10:07:55 UTC 2014


Tal Nisan has submitted this change and it was merged.

Change subject: restapi: add QoS RESTful interface for storage QoS
......................................................................


restapi: add QoS RESTful interface for storage QoS

- POST: /ovirt-engine/api/datacenters/{datacenter:id}/qoss; body: qos; response: qos
<qos type="storage">
  <name>test_qos</name>
  <description>aaaaa</description>
  <max_throughput>1</max_throughput>
  <max_read_throughput>1</max_read_throughput>
  <max_write_throughput>1</max_write_throughput>
  <max_iops>1</max_iops>
  <max_read_iops>1</max_read_iops>
  <max_write_iops>1</max_write_iops>
</qos>
- GET: /ovirt-engine/api/datacenters/{datacenter:id}/qoss; response: qoss
- DELETE: /ovirt-engine/api/datacenters/{datacenter:id}/qoss/{qos:id};
- GET: /ovirt-engine/api/datacenters/{datacenter:id}/qoss/{qos:id}; response: qos
<qos type="storage" href="/ovirt-engine/api/datacenters/00000002-0002-0002-0002-000000000321/qoss/a66577ff-d5f1-40f7-aebb-0b350ad8bb8c" id="a66577ff-d5f1-40f7-aebb-0b350ad8bb8c">
  <name>test_qos</name>
  <description>aaaaa</description>
  <data_center href="/ovirt-engine/api/datacenters/00000002-0002-0002-0002-000000000321" id="00000002-0002-0002-0002-000000000321"/>
  <max_throughput>1</max_throughput>
  <max_read_throughput>1</max_read_throughput>
  <max_write_throughput>1</max_write_throughput>
  <max_iops>1</max_iops>
  <max_read_iops>1</max_read_iops>
  <max_write_iops>1</max_write_iops>
</qos>
- PUT: /ovirt-engine/api/datacenters/{datacenter:id}/qoss/{qos:id}; body: qos; response: qos

For more information see: http://www.ovirt.org/Features/aggregate_QoS,
http://www.ovirt.org/Features/blkio-support#RESTful_API

Change-Id: I1a9af59277b50554531522802f19046c0051d82f
Bug-Url: https://bugzilla.redhat.com/1085049
Signed-off-by: Gilad Chaplik <gchaplik at redhat.com>
---
A backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/model/QosType.java
M backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/resource/DataCenterResource.java
A backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/resource/QoSsResource.java
A backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/resource/QosResource.java
M backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/utils/LinkHelper.java
M backend/manager/modules/restapi/interface/definition/src/main/resources/api.xsd
M backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata.yaml
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendCapabilitiesResource.java
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendClustersResource.java
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendDataCenterClustersResource.java
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendDataCenterResource.java
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendDataCentersResource.java
A backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendQosResource.java
A backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendQossResource.java
A backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/validation/QosValidator.java
A backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/QosMapper.java
A backend/manager/modules/restapi/types/src/test/java/org/ovirt/engine/api/restapi/types/QosMapperTest.java
17 files changed, 581 insertions(+), 31 deletions(-)

Approvals:
  Juan Hernandez: Looks good to me, approved
  Gilad Chaplik: Verified



-- 
To view, visit http://gerrit.ovirt.org/31806
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I1a9af59277b50554531522802f19046c0051d82f
Gerrit-PatchSet: 4
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.5
Gerrit-Owner: Gilad Chaplik <gchaplik at redhat.com>
Gerrit-Reviewer: Gilad Chaplik <gchaplik at redhat.com>
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Tal Nisan <tnisan at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the Engine-commits mailing list