Product SiteDocumentation Site

13.5.7.  iSCSI Discover Action

The iscsidiscover action enables an iSCSI portal to be query for its list of LUNs.
Example 13.20. Action to query a list of LUNs for iSCSI portal
  POST /rhevm-api/hosts/2ab5e1da-b726-4274-bbf7-0a42b16a0fc3/iscsidiscover HTTP/1.1
  Content-Type: application/xml
  Accept: application/xml

  <action>
      <iscsi>
          <address>mysan.example.com</address>
      </iscsi>
  </action>

  HTTP/1.1 202 Accept
  Content-Type: application/xml

  <action id="e9126d04-0f74-4e1a-9139-13f11fcbb4ab"
    href="/rhevm-api/hosts/2ab5e1da-b726-4274-bbf7-0a42b16a0fc3/iscsidiscover/
    e9126d04-0f74-4e1a-9139-13f11fcbb4ab">
      <iscsi_target>iqn.2009-08.com.example:mysan.foobar</iscsi_target>
      ...
  <action>