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
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