Skip Navigation Links | |
Exit Print View | |
Oracle® ZFS Storage Appliance RESTful Application Programming Interface |
This command modifies an existing initiator. The request body contains the initiator properties that should be modified in JSON format. The IQN for the initiator is supplied in the URI. HTTP Status 202 (Accepted) is returned on success. The response body contains new iSCSI initiator properties as an object named “initiator” in JSON format.
Example Request:
PUT /api/san/v1/iscsi/initiators/iqn.1986-03.com.sun:01 /HTTP/1.1 Host: zfs-storage.example.com Content-Type: application/json Accept: application/json { "alias":"init-01-secure", "chapuser":"chuck", "chapsecret":"igottheintersect" }
Example Response:
HTTP/1.1 202 Accepted Content-Length: 167 Content-Type: application/json X-Zfs-Sa-Nas-Api: 1.0 { "initiator": { "alias": "init-01-secure", "href": "/api/san/v1/iscsi/initiators/iqn.1986-03.com.sun:01", "iqn": "iqn.1986-03.com.sun:1", "chapsecret": "igottheintersect", "chapuser": "chuck" } }