既存の iSCSI ターゲットを変更します。リクエスト本文には、変更される iSCSI ターゲットプロパティーを含む JSON オブジェクトが含まれます。成功時に HTTP ステータス 202 (Accepted) が返されます。応答本文には、JSON オブジェクトでエンコードされたターゲットの結果の iSCSI ターゲットプロパティーが含まれます。
リクエストの例:
PUT /api/san/v1/iscsi/targets/alias=test-target HTTP/1.1
Host: zfs-storage.example.com:215
Authorization: Basic abcd123MWE=
Host: zfs-storage.example.com
Content-Type: application/json
Content-Length: 54
Accept: application/json
{"targetchapsecret":"letmeinnowplease", "auth":"chap",
"targetchapuser":"argus"}
レスポンスの例:
HTTP/1.1 202 Accepted
Content-Type: application/json
Content-Length: 189
X-Zfssa-San-Api: 1.0
{
"target": {
"href": "/api/san/v1/iscsi/targets/alias=test-target",
"auth": "chap",
"targetchapsecret": "letmeinnowplease",
"alias": "test-arget",
"iqn": "iqn.1986-03.com.sun:02:31d26d2e-6aa0-6054-fe58-8b1fb508b008",
"targetchapuser": "argus",
"interfaces": ["ixgbe0"]
}
}