删除iSCSI target的允许访问列表 本节主要介绍如何使用API删除iSCSI target的允许访问列表。 此操作用来删除iSCSI target的允许访问列表。 请求语法 plaintext DELETE /rest/v1/block/target/targetName/allowlist HTTP/1.1 Date: date ContentType: application/json; charsetutf8 ContentLength: length Host: ip:port Authorization: authorization { "iqns": [iqn,iqn,...] } 请求参数 参数 类型 描述 是否必须 targetName String iSCSI target名称。 取值:长度范围是1~16,可以由小写字母、数字、句点(.)和短横线()组成,且仅支持以字母或数字开头。 是 iqns Array of iqn 指定target IQN名称。 如果指定了target IQN名称,则代表删除target下指定IQN的允许访问列表;如果未指定target IQN名称,则代表删除target下所有IQN的允许访问列表。 否 请求示例 删除target07下iqn.201208.cn.ctyunapi.oos:target07.13的允许访问列表。 plaintext DELETE /rest/v1/block/target/target07/allowlist HTTP/1.1 Date: Thu, 24 Jul 2025 08:09:58 GMT ContentType: application/json; charsetutf8 Authorization: HBlock userName:signature ContentLength: 77 Host: 192.168.0.64:1443 { "iqns": [ "iqn.201208.cn.ctyunapi.oos:target07.13" ] } 响应示例 plaintext HTTP/1.1 204 No Content xhblockrequestid: 273048935a3e4f10a1a3a07a1e54bbdb Connection: keepalive Date: Thu, 24 Jul 2025 08:09:58 GMT Server: HBlock