Skip to main content

We've Moved!

Product Documentation has moved to docs.hitachivantara.com
Hitachi Vantara Knowledge

Get iSCSI targets

Retrieves all iSCSI targets.

HTTP request syntax (URI)
GET <base_URI>/v7/storage/iscsi-targets
Return codes
Code Data Description
200 iscsi iSCSI target retrieved successfully
400 No Data Missing or invalid request contents.
404 Error Message Requested resource not found.
500 Error message Error associated with the storage system.
501 No Data Server has not implemented the request operation on the resource.

Any HTTP status code other than 200 indicates that the API did not complete successfully.

Request example
curl -vk -H "X-Api-Key: zrxvSDAv9x.RIP4gkmKarG3beF.or.4Tc2im7oeqYN88C9XPGHxbXC" https://172.17.58.119:8444/v7/storage/iscsi-targets
Response example
HTTP/200 OK
{
   "iSCSITargets" : [
      {
         "accessConfig" : "172.17.58.37.0",
         "comment" : "test Modisy ISCSI Target",
         "globalUniqueName" : "iqn.2015-01.com.hds.sie:rickevs-58-112.iscsidev-0",
         "iSCSIId" : "iSCSIDEV-0-new",
         "iSCSILogicalUnits" : [],
         "objectId" : "313a3a3a69534353494445562d302d6e6577",
         "isAuthenticationEnabled" : true,
         "isRegenerateGUN" : false,
         "secret" : "testISCSILDEV0",
         "virtualServerId" : 1
      },
      {
         "accessConfig" : "172.17.37.0\n172.17.58.0",
         "comment" : "testModify ISCSI",
         "globalUniqueName" : "iqn.2015-01.com.hds.sie:rickevs-58-112.iscsidev-1",
         "iSCSIId" : "iSCSIDEV-1",
         "iSCSILogicalUnits" : [],
         "objectId" : "313a3a3a69534353494445562d31",
         "isAuthenticationEnabled" : true,
         "isRegenerateGUN" : false,
         "secret" : "testISCSIDEV11",
         "virtualServerId" : 1
      },
      {
         "accessConfig" : "*",
         "comment" : "test delete iscsilu",
         "globalUniqueName" : "iqn.2016-04.com.hds.sie:rickevs-58-112.iscsi-test",
         "iSCSIId" : "iscsi-test",
         "iSCSILogicalUnits" : [],
         "objectId" : "313a3a3a69736373692d74657374",
         "isAuthenticationEnabled" : true,
         "isRegenerateGUN" : false,
         "secret" : "secret",
         "virtualServerId" : 1
      },
      {
         "accessConfig" : "172.17.239.171",
         "comment" : "test for windows",
         "globalUniqueName" : "iqn.2016-04.com.hds.sie:rickevs-58-112.xyz-iscsi-for-windows",
         "iSCSIId" : "xyz-iscsi-for-windows",
         "iSCSILogicalUnits" : [
            {
               "logicalUnitId" : "xyz-iscsi-lu-test0111",
               "logicalUnit" : 0
            }
         ],
         "objectId" : "313a3a3a6e69636b2d69736373692d666f722d77696e646f7773",
         "isAuthenticationEnabled" : true,
         "isRegenerateGUN" : false,
         "secret" : "windows",
         "virtualServerId" : 1
      }
     ]
  }

 

  • Was this article helpful?