Skip Navigation Links | |
Exit Print View | |
Oracle® ZFS Storage Appliance RESTful Application Programming Interface |
Creates a new iSCSI initiator. You must supply the iSCSI Qualified Name (IQN). The request body contains the iSCSI initiator properties in JSON format. The response includes the location URI of the new iSCSI initiator in the HTTP header and Status Code 201 (Created) on success. The response body contains iSCSI initiator properties as an object named "initiator" in JSON format.
Example Request:
POST /api/san/v1.0/iscsi/initiators HTTP/1.1 Host: zfs-storage.example.com Content-Type: application/json Accept: application/json { "initiator": "iqn.1986-03.com.sun:02:02", "alias":"init-02" }
Example Response:
HTTP/1.1 201 Created Content-Type: application/json Content-Length: 181 X-Zfssa-San-Api: 1.0 Location: /api/san/v1/iscsi/initiators/iqn.1986-03.com.sun:02:02 { "initiator": { "alias": "init-02", "href": "/api/san/v1/iscsi/initiators/iqn.1986-03.com.sun:02:02", "initiator": "iqn.1986-03.com.sun:02:02", "chapsecret": "", "chapuser": "" } }