创建卷 请求示例3 单机版上云卷:创建卷luna9。 plaintext POST /rest/v1/block/lun HTTP/1.1 Date: Mon, 13 May 2024 09: 50: 20 GMT ContentType: application/json; charsetutf8 Authorization: HBlock userName:signature ContentLength: 617 Host: 192.168.0.32: 1443 { "lunName": "luna9", "targetName": "targeta", "storageMode": "Storage", "capacity": 500, "config": { "sectorSize": 512, "writePolicy": "WriteThrough" }, "cloud": { "bucketName": "hblocktest3", "prefix": "hblock1", "accessKey": "cb22b08b1f9229f85874", "secretKey": "", "endpoint": "ooscn.ctyunapi.cn", "signVersion": "v4", "region": "cn", "objectSize": 1024, "storageClass": "STANDARD", "compression": "Enabled" } } 响应示例3 plaintext HTTP/1.1 200 OK xhblockrequestid: 2019e40fcec64256b68983a9b03e844e Connection: keepalive ContentLength: 157 Date: Mon, 13 May 2024 09: 50: 20 GMT ContentType: application/json;charsetutf8 Server: HBlock { "data": { "iSCSITargets": [ { "iqn": "iqn.201208.cn.ctyunapi.oos:targeta.2", "status": "Active", "ips": [ { "ip": "192.168.0.32", "port": 3260 } ], "serverId": "hblock1" } ] } } 请求示例4 集群版上云卷:创建卷lun03a。 plaintext POST /rest/v1/block/lun HTTP/1.1 Date: Thu, 9 May 2024 07: 15: 36 GMT ContentType: application/json; charsetutf8 Authorization: HBlock userName:signature ContentLength: 749 Host: 192.168.0.192: 1443 { "lunName": "lun03a", "targetName": "target03", "capacity": 300, "storageMode": "Cache", "config": { "localStorageClass": "EC 2+1", "minReplica": 3, "ECfragmentSize": 1024, "sectorSize": 512, "highAvailability": "ActiveStandby", "writePolicy": "WriteThrough" }, "cloud": { "bucketName": "hblocktest2", "prefix": "hblock", "accessKey": "d0434d3e9e8dd462d6e0", "secretKey": "", "endpoint": "ooscn.ctyunapi.cn", "signVersion": "v4", "region": "cn", "objectSize": 1024, "storageClass": "STANDARD", "compression": "Enabled" } }