| Skip Navigation Links | |
| Exit Print View | |
|
Oracle® ZFS Storage Appliance RESTful Application Programming Interface |
Gets properties from a single target. The target can be selected by using the "iqn" property or by using "alias=<alias>".
Example Request:
GET /api/san/v1/iscsi/targets/alias=test-target HTTP/1.1 Host: zfs-storage.example.com:215 Authorization: Basic abcd123MWE= Accept: application/json
Example Response:
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 251
{
"target": {
"alias": "test-target",
"auth": "none",
"href": "/api/san/v1/iscsi/targets/alias=test-target",
"interfaces": ["ixgbe0"],
"iqn": "iqn.1986-03.com.sun:02:31d26d2e-6aa0-6054-fe58-8b1fb508b008",
"targetchapsecret": "",
"targetchapuser": ""
}
}