| Skip Navigation Links | |
| Exit Print View | |
|
Oracle® ZFS Storage Appliance RESTful Application Programming Interface |
Creates a new iSCSI target group. The request body is a JSON object with a single name property that is the name of the new group.
Example Request:
POST /api/san/v1/iscsi/target-groups HTTP/1.1
Host: zfs-storage.example.com:215
Authorization: Basic abcd123MWE
Accept: application/json
Content-Type: application/json
Content-Length: 97
{"name":"test-group",
"targets": ["iqn.1986-03.com.sun:02:31d26d2e-6aa0-6054-fe58-8b1fb508b008"]}
Example Response:
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 154
X-Zfssa-San-Api: 1.0
Location: /api/san/v1/iscsi/target-groups/test-group
{
"group": {
"href": "/api/san/v1/iscsi/target-groups/test-group",
"name": "test-group",
"targets": [
"iqn.1986-03.com.sun:02:31d26d2e-6aa0-6054-fe58-8b1fb508b008"]
}
}