Getting information about iSCSI targets

Storage Advisor Embedded Guide

Version
88-08-0x
Audience
anonymous
Part Number
MK-97HM85022-18

The following request obtains information about the iSCSI target that corresponds to the specified server ID.

Execution permission

Storage Administrator (View Only)

Request line

GET base-URL/simple/v1/objects/servers/object-ID/target-iscsi-ports

Request message

Object ID

Specify the id value obtained by getting information about the server.

Attribute

Type

Description

id

int

(Required) Server ID

Query parameters
None.
Body
None.

Response message

Body

The following is an example of the output when getting information about the iSCSI target of an iSCSI-connected server (ID 11):

{
  "data": [
    {
      "portId": "CL1-B",
      "targetIscsiName": "iqn.rest.example.of.iqn.hostB"
    }
  ],
  "count": 1
}

Attribute

Type

Description

portId

string

Port ID of the assigned port

targetIscsiName

string

iSCSI name of the iSCSI target

Status codes

See HTTP status codes.

Coding example

curl -v -H "Accept:application/json" -H "Content-Type:application/json" -H "Authorization:Session b74777a3f9f04ea8bd8f09847fac48d3" -X GET https://192.0.2.100/ConfigurationManager/simple/v1/objects/servers/11/target-iscsi-ports