The following request obtains information about the WWN of an HBA (or the iSCSI name) of the server that corresponds to the specified server ID.
Execution permission
Storage Administrator (View Only)
Request line
GET base-URL/simple/v1/objects/servers/object-ID/hbas
Request message
Response message
- Body
-
The following is an example of the output when getting information about the WWN of an HBA of a server (ID 10) that is connected by using Fibre Channel.
{ "data": [ { "serverId": 10, "hbaWwn": "000000102cceccc9", "portIds": [ "CL1-A" ] }, { "serverId": 10, "hbaWwn": "1111111111111111", "portIds": [ "CL1-A" ] } ], "count": 2 }
The following is an example of getting information about the iSCSI name of a server (ID 11) that is connected by using iSCSI.
{ "data": [ { "serverId": 11, "iscsiName": "iqn.1994-05.com.redhat:496799ba93", "portIds": [ "CL1-B" ] }, { "serverId": 11, "iscsiName": "iqn.1994-05.com.redhat:a7526e46aa", "portIds": [ "CL1-B" ] } ], "count": 2 }
Attribute
Type
Description
serverId
int
Server ID
hbaWwn
string
WWN of the HBA
iscsiName
string
iSCSI name
portIds
string[]
List of port IDs of assigned ports
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/10/hbas