Change in ovirt-engine[master]: restapi: Document change in "action.iscsi_target"

juan.hernandez at redhat.com juan.hernandez at redhat.com
Thu Jul 14 08:33:15 UTC 2016


Juan Hernandez has submitted this change and it was merged.

Change subject: restapi: Document change in "action.iscsi_target"
......................................................................


restapi: Document change in "action.iscsi_target"

In version 3 of the API the operation to discover unregistered storage
domains used to receive a list of iSCSI targets, using multiple
iscsi_target elements:

  POST /hosts/{host:id}/unregisteredstoragedomaindiscover
  <action>
    <iscsi>
      <address>myiscsiserver</address>
    </iscsi>
    <iscsi_target>iqn.2016-07.com.example:mytarget1</iscsi_target>
    <iscsi_target>iqn.2016-07.com.example:mytarget2</iscsi_target>
  </action>

In version 4 of the API all repeating elements, like iscsi_target in
this case, are wrapped with another element, iscsi_targets in case. So
the same request should now look like this:

  POST /hosts/{host:id}/unregisteredstoragedomaindiscover
  <action>
    <iscsi>
      <address>myiscsiserver</address>
    </iscsi>
    <iscsi_targets>
      <iscsi_target>iqn.2016-07.com.example:mytarget1</iscsi_target>
      <iscsi_target>iqn.2016-07.com.example:mytarget2</iscsi_target>
    </iscsi_targets>
  </action>

Change-Id: Ic33c11c09714c003e5e8309156a19d14ffcf6820
Signed-off-by: Juan Hernandez <juan.hernandez at redhat.com>
---
M backend/manager/modules/restapi/README.adoc
1 file changed, 36 insertions(+), 0 deletions(-)

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



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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ic33c11c09714c003e5e8309156a19d14ffcf6820
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>



More information about the Engine-commits mailing list