Skip to main content
Hitachi Vantara Knowledge

Get iSCSI logical units

Retrieves all iSCSI Logical Units.

HTTP request syntax (URI)
GET <base_URI>/v8/storage/iscsi-logical-units
Return codes
Code Data Description
200 iscsiLogicalUnits Array of the iSCSI logical unit objects
500 Error message Error associated with the storage system.

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.117:8444/v8/storage/iscsi-logical-units
Response example
HTTP/1.1 200 OK
{
  "iSCSILogicalUnits": [
    {
      "comment": "new lu",
      "filesystemId": "075E75858FF8164E0000000000000000",
      "iSCSILogicalUnitId": "new bob",
      "iSCSITargetIds": [
        "updatedAlias"
      ],
      "isBoundToTarget": true,
      "isMounted": true,
      "objectId": "313a3a3a6e657720626f623a3a3a3a3a3a303a3a3a4f49445f24232140255f56",
      "path": "/hellobob.iscsi",
      "percentageCreatedx100": 10000,
      "sizeInBytes": 567890,
      "virtualServerId": 1
    },
    {
      "comment": "hello",
      "filesystemId": "075E75858FF8164E0000000000000000",
      "iSCSILogicalUnitId": "clonedLu",
      "iSCSITargetIds": [
        "updatedName"
      ],
      "isBoundToTarget": true,
      "isMounted": true,
      "objectId": "313a3a3a636c6f6e65644c753a3a3a3a3a3a303a3a3a4f49445f24232140255f56",
      "path": "/folder/clonedlun.iscsi",
      "percentageCreatedx100": 10000,
      "sizeInBytes": 524288000,
      "virtualServerId": 1
    }
  ]
}

 

  • Was this article helpful?