Change in ovirt-engine[master]: restapi: Import block Storage Domain

juan.hernandez at redhat.com juan.hernandez at redhat.com
Mon Jan 12 13:54:48 UTC 2015


Juan Hernandez has submitted this change and it was merged.

Change subject: restapi: Import block Storage Domain
......................................................................


restapi: Import block Storage Domain

Add the possibility to import an existing iSCSI storage Domains.
Adding a boolean flag called "import" to indicate this block Storage
Domain should be imported.

The API should be called as folllow:

POST
http://localhost:8080/ovirt-engine/api/storagedomains/
HTTP/1.1
Accept: application/xml
Content-type: application/xml

<storage_domain id="39baf524-380e-407c-8625-50709fcaa9c2">
  <import>true</import>
  <host id="052a880a-53e0-4fe3-9ed5-01f939d1df66" />
  <type>data</type>
  <storage>
     <type>iscsi</type>
  </storage>
</storage_domain>

Change-Id: Ia7c9083be50ba83547446596b452041f52568da4
Bug-Url: https://bugzilla.redhat.com/1179246
Signed-off-by: Maor Lipchuk <mlipchuk at redhat.com>
---
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/BackendStorageDomainsResource.java
3 files changed, 73 insertions(+), 1 deletion(-)

Approvals:
  Juan Hernandez: Looks good to me, approved
  Maor Lipchuk: Verified



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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia7c9083be50ba83547446596b452041f52568da4
Gerrit-PatchSet: 5
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Maor Lipchuk <mlipchuk at redhat.com>
Gerrit-Reviewer: Daniel Erez <derez at redhat.com>
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Maor Lipchuk <mlipchuk at redhat.com>
Gerrit-Reviewer: Ori Liel <oliel at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the Engine-commits mailing list