Change in ovirt-engine[master]: restapi: Use matrix "host" parameter to remove storage serve...

juan.hernandez at redhat.com juan.hernandez at redhat.com
Mon Nov 2 07:53:51 UTC 2015


Juan Hernandez has submitted this change and it was merged.

Change subject: restapi: Use matrix "host" parameter to remove storage server connection
......................................................................


restapi: Use matrix "host" parameter to remove storage server connection

The operation that removes a storage server connection supports a "host"
parameter. In order to use it the "DELETE" method uses an optional
action parameter:

  DELETE /storageconnections/{storageconnection:id}
  <action>
    <host id="...">
      <name>...</name>
    </host>
  </action>

This patch remplaces the optional action parameter with an optional
matrix parameter:

  DELETE /storageconnections/{storageconnection:id};host=myhost

Change-Id: I3bad9f6f34cea4222dc1e0425a602c0d1fe31631
Signed-off-by: Juan Hernandez <juan.hernandez at redhat.com>
---
M backend/manager/modules/restapi/README.md
M backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/resource/StorageServerConnectionResource.java
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/BackendStorageServerConnectionResource.java
M backend/manager/modules/restapi/jaxrs/src/test/java/org/ovirt/engine/api/restapi/resource/BackendStorageServerConnectionResourceTest.java
5 files changed, 93 insertions(+), 55 deletions(-)

Approvals:
  Juan Hernandez: Verified
  Daniel Erez: Looks good to me, approved
  Jenkins CI: Passed CI tests



-- 
To view, visit https://gerrit.ovirt.org/47888
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I3bad9f6f34cea4222dc1e0425a602c0d1fe31631
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Daniel Erez <derez at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Tal Nisan <tnisan at redhat.com>
Gerrit-Reviewer: automation at ovirt.org



More information about the Engine-commits mailing list