| Skip Navigation Links | |
| Exit Print View | |
|
Oracle® ZFS Storage Appliance RESTful Application Programming Interface |
Lists all of the SAN targets of the specified protocol available on the appliance.
Example Request:
GET /api/san/v1/iscsi/targets 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: 1337
{
"size": 7,
"targets": [{
"alias": "tst.volumes.py.12866.target",
"href": "/api/san/v1/iscsi/targets/iqn.1986-03.com.sun:02:
72b6fa9a-96c4-e511-db19-aadb9bac2052",
"iqn": "iqn.1986-03.com.sun:02:72b6fa9a-96c4-
e511-db19-aadb9bac2052",
...
}, {
"alias": "tst.volumes.py.96238.target",
"href": "/api/san/v1/iscsi/targets/iqn.1986-03.com.sun:02:
31d26d2e-6aa0-6054-fe58-8b1fb508b008",
"iqn": "iqn.1986-03.com.sun:31d26d2e-6aa0-6054-fe58-8b1fb508b008",
...
}
...]
}