Getting information about a specific iSCSI target

Storage Advisor Embedded User Guide

Version
93-07-2x
88-08-12
Audience
anonymous
Part Number
MK-97HM85022-25

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

Execution permission

Storage Administrator (View Only)

Request line

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

Request message

Object ID

Specify the id value and the portId value, obtained by using the API function for getting information about the server, in the following format:

id/target-iscsi-ports/portId

Attribute

Type

Description

id

int

(Required) Server ID

portId

string

(Required) Port 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 (server ID: 11, port ID: CL1-B):

{
  "portId": "CL1-B",
  "targetIscsiName": "iqn.rest.example.of.iqn.hostB"
}

For details about the attributes to obtain, see the description of the API function for getting information about iSCSI targets.

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/CL1-B