创建iSCSI target 响应示例2 plaintext HTTP/1.1 200 OK xhblockrequestid: ca3aa28f0807489fa4af85833c4de8a7 Connection: keepalive ContentLength: 280 Date: Mon, 18 Aug 2025 02:25:34 GMT ContentType: application/json;charsetutf8 Server: HBlock { "data": { "iSCSITargets": [ { "iqn": "iqn.201208.cn.ctyunapi.oos:targetf.4", "ips": [ { "ip": "192.168.0.66", "port": 3260 } ], "allowlist": { "initiator": [ { "names": [ "iqn.199105.com.microsoft:songt0001" ], "IPs": [ "192.168.0.70" ] }, { "IPs": [ "192.168.0.67" ] } ], "target": [ { "IPs": [ "192.168.0.66" ] } ] } } ] } } 请求示例3 集群版:创建一个名称为target09的target。 plaintext POST /rest/v1/block/target HTTP/1.1 Date: Mon, 18 Aug 2025 02:19:06 GMT ContentType: application/json; charsetutf8 Authorization: HBlock userName:signature ContentLength: 910 Host: 192.168.0.64:1443 { "targetName": "target09", "maxSessions": 6, "serverNumbers": 3, "server": [ "hblock1", "hblock3" ], "allowlist": { "initiator": [ { "IPs": [ "192.168.0.70" ], "names": [ "iqn.199105.com.microsoft:songt0001" ] }, { "IPs": [ "192.168.0.66" ] } ], "target": [ { "IPs": [ "192.168.0.64", "192.168.0.67" ] }, { "IPs": [ "192.168.0.65" ], "NICs": [ "eth0" ] } ] } }