创建卷 上云卷 单机版 plaintext POST /rest/v1/block/lun HTTP/1.1 Date:date ContentType: application/json; charsetutf8 ContentLength: length Host: ip:port Authorization: authorization { "lunName": lunName, "targetName": targetName, "capacity": capacity, "storageMode": storageMode, "config": { "sectorSize": sectorSize, "writePolicy": writePolicy, "compress": { "algorithm": algorithm, "zstdLevel": zstdLevel }, "qosPolicy": { "qosName": qosName, "IOPS": IOPS, "readIOPS": readIOPS, "writeIOPS": writeIOPS, "Bps": Bps, "readBps": readBps, "writeBps": writeBps, "IOPSBurst": IOPSBurst, "readIOPSBurst": readIOPSBurst, "writeIOPSBurst": writeIOPSBurst, "BpsBurst": BpsBurst, "readBpsBurst": readBpsBurst, "writeBpsBurst": writeBpsBurst, "IOPSBurstSecs": IOPSBurstSecs, "readIOPSBurstSecs": readIOPSBurstSecs, "writeIOPSBurstSecs": writeIOPSBurstSecs, "BpsBurstSecs": BpsBurstSecs, "readBpsBurstSecs": readBpsBurstSecs, "writeBpsBurstSecs": writeBpsBurstSecs }, "path": path }, "cloud": { "provider": provider, "bucketName": bucketName, "prefix": prefix, "accessKey": accessKey, "secretKey": secretKey, "endpoint": endpoint, "signVersion": signVersion, "region": region, "objectSize": objectSize, "storageClass": storageClass, "compression": compression } } 集群版 plaintext POST /rest/v1/block/lun HTTP/1.1 Date:date ContentType: application/json; charsetutf8 ContentLength: length Host: ip:port Authorization: authorization { "lunName": lunName, "targetName": targetName, "capacity": capacity, "storageMode": storageMode, "config": { "localStorageClass": localStorageClass, "minReplica": minReplica, "ECfragmentSize": ECfragmentSize, "redundancyOverlap": redundancyOverlap, "sectorSize": sectorSize, "cachePool": poolName, "pool": poolName, "highAvailability": highAvailability, "writePolicy": writePolicy, "compress": { "algorithm": algorithm, "zstdLevel": zstdLevel }, "serverAffinity": { "autoFailback": autoFailback, "priority": [ ServerID,ServerID… ] }, "qosPolicy": { "qosName": qosName, "IOPS": IOPS, "readIOPS": readIOPS, "writeIOPS": writeIOPS, "Bps": Bps, "readBps": readBps, "writeBps": writeBps, "IOPSBurst": IOPSBurst, "readIOPSBurst": readIOPSBurst, "writeIOPSBurst": writeIOPSBurst, "BpsBurst": BpsBurst, "readBpsBurst": readBpsBurst, "writeBpsBurst": writeBpsBurst, "IOPSBurstSecs": IOPSBurstSecs, "readIOPSBurstSecs": readIOPSBurstSecs, "writeIOPSBurstSecs": writeIOPSBurstSecs, "BpsBurstSecs": BpsBurstSecs, "readBpsBurstSecs": readBpsBurstSecs, "writeBpsBurstSecs": writeBpsBurstSecs } }, "cloud": { "provider": provider, "bucketName": bucketName, "prefix": prefix, "accessKey": accessKey, "secretKey": secretKey, "endpoint": endpoint, "signVersion": signVersion, "region": region, "objectSize": objectSize, "storageClass": storageClass, "compression": compression } }