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