Resource Center/Hardware/SAN Storage Operations/iSCSI Server Operations
POSTiSCSI Server OperationsSince 3.0.0SynchronousAuth Required
RefreshIscsiServer
RefreshIscsiServer
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
This API requires no request parameters.
Responses
Endpoint
POST/zstack/v1/storage-devices/iscsi/servers/{uuid}
/zstack/v1/storage-devices/iscsi/servers/{uuid}
Request Example
curl -X POST 'http://{host}/zstack/v1/storage-devices/iscsi/servers/{uuid}' -H 'Authorization: OAuth {sessionUuid}'
Response Example
200{ "inventory": { "uuid": "a4a3ef3c3ed537e6b1040ee4b7d77686", "name": "iscsi-server-10.0.0.201", "ip": "10.0.0.201", "port": 3260.0, "chapUserName": "username", "chapUserPassword": "password", "state": "Enabled", "iscsiTargets": [ { "iscsiServerUuid": "a4a3ef3c3ed537e6b1040ee4b7d77686", "uuid": "3da0cdedd9763edfab39a897f87454e9", "iqn": "iqn.2018-01.io.zstack:tsn.00001", "iscsiLuns": [ { "uuid": "f569b3e3baf838e59d8a115458d72a9b", "iscsiTargetUuid": "3da0cdedd9763edfab39a897f87454e9", "wwid": "36b083fe000daf018000015505abbe00a", "vendor": "DELL", "model": "MD32xx", "wwn": "0x6b083fe000daf018", "serial": "6b083fe000daf018000015505abbe00a", "hctl": "6:0:1:1", "type": "mpath", "path": "ip-0.0.0.201:3260-iscsi-iqn.2018-01.io.zstack:tsn.00001-lun-0", "size": 3.000318820352E13, "multipathDeviceUuid": "36b083fe000daf018000015505abbe00a" } ], "createDate": "Nov 14, 2017 10:20:57 PM", "lastOpDate": "Nov 14, 2017 10:20:57 PM" } ], "iscsiClusterRefs": [ { "id": 1.0, "iscsiServerUuid": "a4a3ef3c3ed537e6b1040ee4b7d77686", "clusterUuid": "da1ddc379fc137789b12bcac0ed90148", "createDate": "Nov 14, 2017 10:20:57 PM", "lastOpDate": "Nov 14, 2017 10:20:57 PM" } ], "createDate": "Nov 14, 2017 10:20:57 PM", "lastOpDate": "Nov 14, 2017 10:20:57 PM" } }Change History
This API has no change history records yet.
