查询指定的iSCSI target 请求示例1 单机版:查询iSCSI target名称为targeta的信息。 plaintext GET /rest/v1/block/target/targeta HTTP/1.1 Date: Mon, 08 Sep 2025 01:29:15 GMT Authorization: HBlock userName:signature Host: 192.168.0.32:1443 Connection: keepalive 响应示例1 plaintext HTTP/1.1 200 OK xhblockrequestid: e66f2a16825240009d3de70b158ad161 Connection: keepalive ContentLength: 478 Date: Mon, 08 Sep 2025 01:29:15 GMT ContentType: application/json;charsetutf8 Server: HBlock { "data": { "targetName": "targeta", "maxSessions": 3, "iSCSITargets": [ { "iqn": "iqn.201208.cn.ctyunapi.oos:targeta.1", "ips": [ { "ip": "192.168.0.66", "port": 3260 } ], "serverId": "hblock1", "allowlist": { "initiator": [ { "names": [ "iqn.199405.com.redhat:c73bf5e45bd4" ], "IPs": [ "192.168.0.68" ] }, { "IPs": [ "192.168.0.70" ] } ], "target": [ { "IPs": [ "192.168.0.66" ] } ] } } ], "luns": [ { "lunName": "luna1", "number": 0 }, { "lunName": "luna1clone1", "number": 1 } ], "createTime": 1754375366254, "num": 1, "reclaimPolicy": "Delete" } } 请求示例2 集群版:查询iSCSI target名称为target03的信息。 plaintext GET /rest/v1/block/target/target03 HTTP/1.1 Date: Thu, 24 Jul 2025 08:36:15 GMT Authorization: HBlock userName:signature Host: 192.168.0.64:1443 Connection: keepalive