创建克隆卷 响应结果 名称 类型 描述 iSCSITargets Array of iSCSITarget iSCSI target属性集合,详见“表3 响应参数iSCSITarget说明”。 cloneDepth Integer 克隆卷的深度。 表3 响应参数iSCSITarget说明 名称 类型 描述 iqn String iSCSI target IQN。 status String 克隆卷对应的Target的状态: Active:主target。 Standby:热备target。 Unavailable:冷备target。 ips Array of ip iSCSI target的IP属性集合,详见“表4 响应参数ip说明”。 serverId String 服务器ID。 表4 响应参数ip说明 名称 类型 描述 ip String iSCSI target的IP。 port Integer iSCSI target的端口号。 请求示例1 单机版:创建克隆卷luna1C2。 plaintext POST /rest/v1/block/lun/clone HTTP/1.1 Date: Tue, 11 Mar 2025 06:55:43 GMT ContentType: application/json; charsetutf8 Authorization: HBlock userName:signature Connection: keepalive ContentLength: 211 Host:192.168.0.66:1443 { "lunName": "luna1C2", "snapshotName": "luna1snap4", "targetName": "targeta", "capacity": 500, "config": { "sectorSize": 512, "writePolicy": "WriteThrough" } } 响应示例1 plaintext HTTP/1.1 200 OK xhblockrequestid: 1e3c374dc4044830828d69d3657d996a Connection: keepalive ContentLength: 172 Date: Tue, 11 Mar 2025 06:55:43 GMT ContentType: application/json;charsetutf8 Server: HBlock { "data": { "iSCSITargets": [ { "iqn": "iqn.201208.cn.ctyunapi.oos:targeta.1", "status": "Active", "ips": [ { "ip": "192.168.0.66", "port": 3260 } ], "serverId": "hblock1" } ], "cloneDepth": 1 } }