此操作用查询指定一致性快照。
请求语法
GET /rest/v1/block/conssnap/consistencySnapshotName HTTP/1.1
Date:date
Host: ip:port
Authorization: authorization
请求参数
参数 | 类型 | 描述 | 是否必须 |
---|---|---|---|
consistencySnapshotName | String | 指定要查询的一致性快照名称。 | 是 |
响应参数
名称 | 类型 | 描述 |
---|---|---|
consistencySnapshotName | String | 一致性快照名称。 |
description | String | 一致性快照描述信息。 |
status | String | 一致性快照的状态:
|
createTime | Long | 一致性快照的创建时间。 |
lunSnapshotNumbers | Integer | 一致性快照的卷快照数。 |
lunSnapshots | Array of lunSnapshot | 一致性快照中卷快照信息集合,详见“表1 响应参数lunSnapshot说明”。 |
表1 响应参数lunSnapshot说明
名称 | 类型 | 描述 |
---|---|---|
snapshotName | String | 一致性快照中卷快照名称。 |
description | String | 卷快照的描述信息。 |
lunName | String | 源卷名称。 |
lunCapacity | Integer | 创建快照时刻,源卷的容量,单位是GiB。 |
status | String | 卷快照的状态:
|
cloneNumbers | Integer | 卷快照关联的链接克隆卷的个数。 |
reclaimPolicy | String | 卷快照回收策略:
|
请求示例
查询一致性快照consistencysnapshot4。
GET /rest/v1/block/conssnap/consistencysnapshot4 HTTP/1.1
Date: Wed, 26 Mar 2025 06:02:53 GMT
Authorization: HBlock userName:signature
Host: 192.168.0.655:1443
Connection: keep-alive
响应示例
HTTP/1.1 200 OK
x-hblock-request-id: 1252f1c3862b479999d73c70481f2f24
Date: Wed, 26 Mar 2025 06:02:53 GMT
Connection: keep-alive
Content-Type: application/json;charset=utf-8
Content-Length: 723
Server: HBlock
{
"data": {
"consistencySnapshotName": "consistencysnapshot4",
"description": "The consistencysnapshot of lun01,lun01a,lun02,lun03.",
"status": "Normal",
"createTime": 1741079382519,
"lunSnapshotNumbers": 3,
"lunSnapshots": [
{
"snapshotName": "lun01-snap20250304170942",
"description": "The snapshot of consistencysnapshot4.",
"lunName": "lun01",
"lunCapacity": 100,
"status": "Normal",
"cloneNumbers": 1,
"reclaimPolicy": "Delete"
},
{
"snapshotName": "lun01a-snap20250304170942",
"description": "",
"lunName": "lun01a",
"lunCapacity": 100,
"status": "Normal",
"cloneNumbers": 1,
"reclaimPolicy": "Retain"
},
{
"snapshotName": "lun03-snap20250304170942",
"description": "",
"lunName": "lun03",
"lunCapacity": 100,
"status": "Normal",
"cloneNumbers": 0,
"reclaimPolicy": "Delete"
}
]
}
}